Brief
Read a simple table and write a SELECT ... FROM query that shows useful columns without changing data.
In the story, Imani gives you a few minutes before Voss’s hearing. She sets down the practice passages table: P1 / NOCTIS-01 / North / 21:10; P2 / TEST-02 / South / 21:20; P3 / NOCTIS-01 / South / 21:25. Voss has already drawn a North → South arrow to accuse you of moving the car. Mara asks you for an exact, limited reading of the data.
Your mission
- Name the table, its four columns and what one row represents.
- Write a query showing passage ID, vehicle code and gate.
- Give the three result rows on paper with those columns.
- Explain two things this result does not prove and why display order is no guaranteed timeline.
How to check your work
- The table is
passages; a row is a recorded passage; columns areid,vehicle,gate,time. - The query is
SELECT id, vehicle, gate FROM passages;. - P1 / NOCTIS-01 / North, P2 / TEST-02 / South, P3 / NOCTIS-01 / South are recovered.
- The result proves neither the actual route nor an authorization’s author; no
ORDER BYfixes order.
Course example
SELECT vehicle, gate FROM passages;
SQLite schema and synthetic input
CREATE TABLE passages (id TEXT PRIMARY KEY, vehicle TEXT, gate TEXT, time TEXT);
INSERT INTO passages VALUES ('P1', 'NOCTIS-01', 'North', '21:10'), ('P2', 'TEST-02', 'South', '21:20'), ('P3', 'NOCTIS-01', 'South', '21:25');