Pulling the rows and columns you want from a database: SELECT, WHERE, ORDER BY, LIMIT and NULL.
Key ideas
SELECTsays which columns,FROMwhich table andWHEREwhich rows you want.- Order is only guaranteed by
ORDER BY;LIMITcuts after sorting. NULLmeans "unknown":= NULLfinds nothing,IS NULLdoes.
Pattern
SELECT name, salary FROM employees WHERE salary > 40000 ORDER BY salary DESC LIMIT 5;
Lessons
Each lesson explains one idea from zero and ends with a few tasks. Lessons open in order; the explanation can be read at any time.
Boss
04
Team leads
SQL query
The boss opens when every lesson of the topic is finished. Solve it too and the topic is complete, and the topics after it open.