SQL
SQ01 - SQL Basic Syntax
Complexity
Junior
Summary
You should know how to construct basic SQL queries for creating, reading, updating and deleting data.
Skill Breakdown
You shoud know how to read records using select:
- selecting all columns
- selecting specific columns
wherestatement- operators: numerical operators,
between and,in - sorting query results with
order by,ascanddesc - limiting query results with
limit,offset - writing simple expressions
You should know how to perform simple aggregation:
- grouping using
group by - grouping conditions with
having - common aggregate functions:
count,min,max,avg,sum
You should know how to insert records with insert.
You should know how to update records with update.
You should know how to delete records with delete.
You should understand the purpose of null.
Required Resources
Getting Things Done in Next.js:
- Setup (opens in a new tab)
- Inserting, Updating and Deleting Data (opens in a new tab)
- Selecting Data (opens in a new tab)
Optional Resources
SQLBolt:
- SQL Lesson 1: SELECT queries 101 (opens in a new tab)
- SQL Lesson 2: Queries with constraints (Pt. 1) (opens in a new tab)
- SQL Lesson 3: Queries with constraints (Pt. 2) (opens in a new tab)
- SQL Lesson 4: Filtering and sorting Query results (opens in a new tab)
- SQL Review: Simple SELECT Queries (opens in a new tab)
- SQL Lesson 8: A short note on NULLs (opens in a new tab)
- SQL Lesson 9: Queries with expressions (opens in a new tab)
- SQL Lesson 10: Queries with aggregates (Pt. 1) (opens in a new tab)
- SQL Lesson 11: Queries with aggregates (Pt. 2) (opens in a new tab)
- SQL Lesson 12: Order of execution of a Query (opens in a new tab)
- SQL Lesson 13: Inserting rows (opens in a new tab)
- SQL Lesson 14: Updating rows (opens in a new tab)
- SQL Lesson 15: Deleting rows (opens in a new tab)
SQ02 - SQL Multi-Table Queries
Complexity
Junior
Summary
You should understand the purpose of foreign keys and how to construct queries that read data from multiple tables.
Skill Breakdown
You should understand the purpose of foreign keys.
You should understand how to perform inner joins.
You should understand how to perform other joins:
- left outer joins
- right outer joins
- self-joins
- full joins
Required Resources
Getting Things Done in Next.js:
Optional Resources
SQLBolt:
- SQL Lesson 6: Multi-table queries with JOINs (opens in a new tab)
- SQL Lesson 7: OUTER JOINs (opens in a new tab)
PostgreSQL Documentation:
SQ03 - SQL Altering Tables
Complexity
Junior
Summary
You should understand how to create, alter and delete tables.
Skill Breakdown
You should understand how to create tables with create table.
You should understand how to alter tables with alter table.
You should understand how to drop tables with drop table.
Required Resources
SQLBolt:
- SQL Lesson 16: Creating tables (opens in a new tab)
- SQL Lesson 17: Altering tables (opens in a new tab)
- SQL Lesson 18: Dropping tables (opens in a new tab)
Optional Resources
The are no optional resources for this skill.