SQL series
A query is a question with strict grammar Get the grammar right and the database answers Get it wrong and it answers something you did not mean
flowchart TD
A["SQL series"] --> B["01 model"]
A --> C["02 ddl"]
A --> D["03 dml"]
A --> E["04 select"]
A --> F["05 joins"]
A --> G["06 aggregates"]
A --> H["07 transactions"]
A --> I["08 views and indexes"]
A --> J["09 safety"]
A --> K["10 recipes"]
Where to go
- new to tables -> 01 model
- building structure -> 02 ddl
- putting data in -> 03 dml
- getting data out -> 04 select
- connecting tables -> 05 joins
- counting and grouping -> 06 aggregates
- all or nothing -> 07 transactions
- speed and reuse -> 08 views and indexes
- not helping an attacker -> 09 safety
- copyable patterns -> 10 recipes
Dialect note
The statement shapes here are standard SQL Detail differs between engines Check the target engine documentation before copying a type name or a window clause
Problem solving
Syntax alone is not enough, use the algorithms and problem solving track for data structures, complexity, and method