Skip to content

Database Systems (CSC270) Labs

The topics include: the SELECT statement and filtering/sorting; single-row and group functions; joins (inner, outer, self); subqueries and set operators; data manipulation (DML) and table definition (DDL); views, indexes, and other schema objects; transaction control and data control (GRANT/REVOKE); stored procedures, functions, and triggers; and MongoDB — documents, CRUD, the aggregation pipeline, and replication/sharding.

Each lab below includes solved lab activities (with SQL/MongoDB code and solutions) and graded lab tasks, run against the standard HR sample database (SQL labs) or an HR-flavored document collection (MongoDB labs).

Lab # Main Topic
Lab 01 The SELECT Statement
Lab 02 Restricting & Sorting Data
Lab 03 Single-Row Functions
Lab 04 Group Functions
Lab 05 Joins I: Inner Joins
Lab 06 Joins II: Outer & Self-Joins
Lab 07 Subqueries & Set Operators
Lab 08 Manipulating Data (DML)
Lab 09 Creating & Managing Tables (DDL)
Lab 10 Schema Objects & Data Dictionary
— Mid Term Exam
Lab 11 Transaction Control & Data Control
Lab 12 Stored Procedures, Functions, Triggers & Transaction Management
Lab 13 Introduction to MongoDB & the Document Model
Lab 14 MongoDB Querying & the Aggregation Pipeline
Lab 15 MongoDB Sharding, Replication & NoSQL vs. SQL Trade-offs
— Final Term Exam

Ready? Start with Lab 01 — The SELECT Statement.

// share