If you want to learn SQL for Data Analysis prioritise:
- Data Types
- SELECT Statements
- Filtering/Sorting
- JOINs
- Aggregation Functions
- Subqueries
- Window Functions (Analytic Functions)
If you want more help learning, here's my best SQL threads and free resources: