Users, Roles, GRANT, REVOKE and Least Privilege
Controlling who can do what: creating users, granting the minimum needed, grouping privileges into roles, and the accounts a typical application actua...
A complete SQL path: fundamentals, DDL and DML, querying, joins, subqueries, CTEs, window functions, design, indexing, transactions, performance and security.
91 notes in 31 topics
Controlling who can do what: creating users, granting the minimum needed, grouping privileges into roles, and the accounts a typical application actua...
One reference table for the differences that actually break code: paging, auto increment, strings, dates, upserts and the features each product lacks.
How much portability is worth paying for, which constructs are safe everywhere, and how to isolate the parts that can never be portable.
Twenty graded exercises on SELECT, filtering, sorting and simple functions, each with a worked solution and the reason it is written that way.
Fifteen exercises combining joins, grouping and having, each with the solution and a note on the trap it was designed to expose.
Twelve harder exercises - correlated subqueries, recursive CTEs, ranking, running totals and top N per group - with solutions and the reasoning behind...
Six end to end problems of the kind real work produces - a sales report, a retention table, a data quality audit, a duplicate cleanup and two optimisa...