Loading topic
SELECT statements, aliases, and common Oracle data types. A simple CASE expression compares one expression with several possible values. It returns the result associated with the first matching value.1 min readSELECT statements with WHERE and ORDER BY, recognize Oracle data types such as NUMBER and VARCHAR2, understand NULL, and use basic aggregate functions.2 min readSELECT statements and understand NULL, NUMBER, and VARCHAR2. You should also know the difference between a simple CASE expression and a searched CASE expression.2 min readSELECT statements, Oracle data types, and the meaning of NULL. This chapter focuses on how CASE evaluates NULL and how to write the correct test.2 min readSELECT statements and understand NULL, NUMBER, and VARCHAR2. DECODE is an Oracle SQL function for comparing one expression with several possible values. It returns the result for the first matching value.2 min readSELECT statements and understand that NULL means a missing or unknown value. In Oracle, comparing NULL with = does not produce TRUE. It produces UNKNOWN.1 min readSELECT statements, Oracle data types, NULL, and aggregate functions. This chapter focuses on choosing between the standard SQL CASE expression and Oracle's older DECODE function.2 min readSELECT, WHERE, ORDER BY, GROUP BY, aggregate functions, and Oracle data types such as NUMBER, VARCHAR2, and DATE. A CASE expression returns one value chosen from several alternatives. You can place it wherever an SQL expression is allowed.2 min readSELECT, GROUP BY, aggregate functions such as SUM and COUNT, and Oracle NULL behavior. Conditional aggregation means applying an aggregate function only to rows that meet a condition. It is useful when one query must produce several related totals or counts.2 min readSELECT statements, Oracle data types such as NUMBER, VARCHAR2, and DATE, and the difference between a SQL NULL and a value.2 min readSELECT statements, Oracle numeric values, and the equality-based form of DECODE. This chapter shows how to use SIGN with DECODE when you need to classify a number relative to a threshold.1 min readSELECT statements and understand that NULL means an unknown or missing value. These functions provide compact alternatives to common CASE expressions.2 min readSELECT statements, Oracle data types, NULL, variables, and simple PL/SQL blocks. PL/SQL supports two related forms:1 min readSELECT, WHERE, ORDER BY, GROUP BY, aggregate functions, and Oracle types such as NUMBER, VARCHAR2, and DATE. This chapter focuses on mistakes that produce wrong results or make SQL harder to maintain.2 min read