CPSC 343 Database Theory and Practice Fall 2026

CPSC 343 Review Information — Exam 1

Exam 1 is a written in-class (one hour) exam covering querying with SQL. Expect two kinds of questions:

Short answers should be short — generally 1-3 sentences, or 1-2 sentences per part for a question with several parts. A list rather than complete sentences is fine where appropriate. Time is limited, so don't write more than necessary!

The topics covered on the exam are listed below. The items under "Self check" are study goals — examples of the kinds of things you should be able to do rather than actual exam questions or a complete list of what the exam might ask. As a starting point for studying, try to explain each topic without notes (including an example of your own where appropriate) and then answer the associated self check items. As a pacing guide, you should be able to start writing answers for definition/recall questions right away and "read/write a query" questions after a minute or two of thinking.

For practice reading and writing queries, see the "Example question types" and "Practice" sections at the end.

SQL Foundations

Topics:

Self check:

Basic Queries

Topics:

Self check:

Joins

Topics:

Self check:

Aggregation and Grouping

Topics:

Self check:

Subqueries

Topics:

Self check:

Set Operations

Topics:

Self check:

Example Question Types

Beyond the conceptual questions above, expect questions that ask you to apply your knowledge to a given schema, query, or data. For example:

Practice