sqlite3

2023

[sqlite3] How to Use EXISTS and IN

Explains when to use SQL's EXISTS versus IN using a customers and orders example, covering differences in NULL handling and query performance.

[sqlite3] Utilizing Self Join

Explains SQL self joins using an employee-manager hierarchy example, showing how to join a table with itself using aliases to look up related rows.

[sqlite3] Utilizing CASE Expressions

Explains how to use SQL's CASE expression to assign grades based on scores and combine it with aggregate functions to build conditional cross-tabulation queries.

[sqlite3] Common Table Expressions (CTE)

Explains SQL Common Table Expressions (CTEs) by comparing a subquery-based query with a CTE-based rewrite to show improved readability and reusability.

[sqlite3] Window Functions

Explains the differences between SQL window functions RANK, DENSE_RANK, and ROW_NUMBER for ranking data with tied scores, using a sample student scores table.