Week 03: SQL – Data Modification & Advanced Queries (under construction)
SLOs for Week 03
Students will be able to:
- Use SQL aggregate and scalar functions and create expressions.
- Work with data types, including dates and strings, using
LIKE
,GLOB
,DATE
,TIME
,DATETIME
,JULIANDAY
andSTRFTIME
. 📔 Notebook 3.2 - Manipulate the records stored in a database using
INSERT INTO
,UPDATE
andDELETE FROM
,REPLACE
,UPSERT
andRETURNING
. - Table design principles using DDL commands, such as
CREATE TABLE
,DROP TABLE
,ALTER TABLE
,CREATE INDEX
,DROP INDEX
,CREATE VIEW
,DROP VIEW
. - Control columns values using constraints: primary keys, foreign keys, delete with
CASCADE
,CHECK
,UNIQUE
,NOT NULL
,AUTOINCREMENT
. - Create and manage indexes to optimize query performance using performance and debug commands, such as
CREATE INDEX
,ANALYZE
andEXPLAIN
. 📔 Notebook 3.6 - Optimizing database files with
VACUUM
.
Slides, videos, and application exercises
Homework 03:
Project 03: Classes