Category Archives: Без рубрики

SQL.How can you compare two nullable values safely, and how does IS DISTINCT FROM differ from <>?

Posted in Без рубрики | Comments Off on SQL.How can you compare two nullable values safely, and how does IS DISTINCT FROM differ from <>?

SQL.How are NULL values ordered by ORDER BY, how do defaults differ between databases, and how can you control their placement?

Posted in Без рубрики | Comments Off on SQL.How are NULL values ordered by ORDER BY, how do defaults differ between databases, and how can you control their placement?

SQL.How does NULL propagate through arithmetic expressions, and how can COALESCE and NULLIF help handle missing values and division by zero?

Posted in Без рубрики | Comments Off on SQL.How does NULL propagate through arithmetic expressions, and how can COALESCE and NULLIF help handle missing values and division by zero?

SQL.How does NULL affect join conditions, and why can filtering the right-hand table in WHERE remove unmatched rows from a LEFT JOIN?

Posted in Без рубрики | Comments Off on SQL.How does NULL affect join conditions, and why can filtering the right-hand table in WHERE remove unmatched rows from a LEFT JOIN?

SQL.How do GROUP BY and DISTINCT treat NULL values, even though NULL = NULL evaluates to UNKNOWN?

Posted in Без рубрики | Comments Off on SQL.How do GROUP BY and DISTINCT treat NULL values, even though NULL = NULL evaluates to UNKNOWN?

SQL.How do aggregate functions handle NULL, and what is the difference between COUNT(*), COUNT(column), and COUNT(DISTINCT column)?

Posted in Без рубрики | Comments Off on SQL.How do aggregate functions handle NULL, and what is the difference between COUNT(*), COUNT(column), and COUNT(DISTINCT column)?

SQL.How does NULL affect IN and NOT IN, and why can NOT EXISTS be a safer choice when a subquery returns nullable values?

Posted in Без рубрики | Comments Off on SQL.How does NULL affect IN and NOT IN, and why can NOT EXISTS be a safer choice when a subquery returns nullable values?

SQL.How do WHERE, HAVING, and CHECK constraints treat conditions that evaluate to UNKNOWN?

Posted in Без рубрики | Comments Off on SQL.How do WHERE, HAVING, and CHECK constraints treat conditions that evaluate to UNKNOWN?

SQL.Why do column = NULL and column <> NULL not work as expected, and when should you use IS NULL and IS NOT NULL?

Posted in Без рубрики | Comments Off on SQL.Why do column = NULL and column <> NULL not work as expected, and when should you use IS NULL and IS NOT NULL?

SQL.What is SQL’s three-valued logic (TRUE, FALSE, UNKNOWN), and how do AND, OR, and NOT behave with UNKNOWN?

Posted in Без рубрики | Comments Off on SQL.What is SQL’s three-valued logic (TRUE, FALSE, UNKNOWN), and how do AND, OR, and NOT behave with UNKNOWN?