For teachers
← Caso Abierto for the classroom
The querying learning outcome of Spain's ASIR, DAM and DAW vocational programmes, with its official BOE wording, and which cases, arcade levels, lessons and exam questions cover each assessment criterion. Ready to paste into a course plan.
Both modules have a querying learning outcome (RA) with almost the same assessment criteria (CE), but lettered differently: that's why there are two tables. The RA and CE text is quoted verbatim, in Spanish, from each programme's royal decree, with a short English gloss.
"Free" is what your group gets without paying: cases 00 to 04 (open for anyone who joins your group), the SQL arcade, and the lessons and practice exam (in Spanish). "License" means cases from the classroom license, to go further later.
«4. Consulta la información almacenada manejando asistentes, herramientas gráficas y el lenguaje de manipulación de datos.»
| CE | Assessment criterion (BOE, Spanish) | Free | License |
|---|---|---|---|
| a) | Se han identificado las herramientas y sentencias para realizar consultas. Identify the tools and statements for querying. | Case 00 "The First Query": the game's SQL console, the table schema and a first guided SELECT. Lesson 1 (SELECT and FROM, in Spanish). Arcade 1-1. | All of them: in every case the student picks which tables to look at and submits the query that proves their answer. |
| b) | Se han realizado consultas simples sobre una tabla. Simple queries on one table. | Cases 00, 01 and 02 (WHERE, date ranges, ORDER BY, LIKE, IN, NULL). Arcade world 1: 1-1, 1-2, 1-3 and the boss (IS NULL). Lessons 1 and 2. Exam: questions 2, 4, 5 and 8. | T2·01 "The Account That's Bleeding" (ORDER BY on a computed value). |
| c) | Se han realizado consultas que generan valores de resumen. Summary (aggregate) queries. | Case 04 "The Regular" (GROUP BY, COUNT, HAVING; filtering before and after grouping). Arcade world 2: 2-1 (COUNT, GROUP BY), 2-2 (SUM, MAX, AVG), 2-3 (ORDER BY, LIMIT) and the boss (HAVING). Lessons 3 and 4. Exam: questions 1, 3, 6 and 7. | T2·01 (SUM, GROUP BY), T3·01 "The Report That Multiplied Itself" (COUNT DISTINCT, aggregate before joining), T2·06 "The Decoy" (aggregates with FILTER*), T4·08 "File 88-C" (conditional aggregates). |
| d) | Se han realizado consultas sobre el contenido de varias tablas mediante composiciones internas. Multi-table queries with inner joins. | Case 03 "The 23:40 Call" (JOIN, table aliases, two chained JOINs). Arcade 3-1 (JOIN … ON) and 3-3 (JOIN + GROUP BY). Lesson 5. Exam: question 9. | T1·06 "Private Room 3" (self-join), T2·02 "Trading Against the Mirror" (JOIN on two keys), T4·02 "The Cash" (JOIN on amount and date window), T2·05 "The One Who Knew" (ASOF JOIN*). |
| e) | Se han realizado consultas sobre el contenido de varias tablas mediante composiciones externas. Multi-table queries with outer joins. | No free case. Arcade 3-2 (LEFT JOIN) and the world 3 boss (LEFT JOIN … IS NULL). Lesson 6. Exam: question 10. | T1·05 "Eleven Alibis and One That Isn't" (LEFT JOIN, anti-join), T2·03 "The Entry Nobody Wrote" (LEFT JOIN … IS NULL). |
| f) | Se han realizado consultas con subconsultas. Queries with subqueries. | No free case. Exam: questions 11 (NOT IN with a subquery and the NULL trap) and 12 (scalar subquery against the average). The cheat sheet has the pattern. | T1·05 and T2·03 (correlated NOT EXISTS), T4·01 "The Night in March" (subquery as a reference), T4·04 and T4·08 (HAVING against a subquery), T1·06 and T1·08 (WITH, named subqueries). |
| g) | Se han valorado las ventajas e inconvenientes de las distintas opciones válidas para llevar a cabo una consulta determinada. Weigh the pros and cons of the valid options for a given query. | Exam: questions 10 and 11, the same question with LEFT JOIN and with NOT IN. Case 01: BETWEEN versus >= and < with dates and times (the trap's page). The class guide's discussion: "why your first query failed". | T2·03 (NOT IN, NOT EXISTS or LEFT JOIN … IS NULL), T3·01 (aggregate before or after joining). |
«3. Consulta la información almacenada en una base de datos empleando asistentes, herramientas gráficas y el lenguaje de manipulación de datos.»
| CE | Assessment criterion (BOE, Spanish) | Free | License |
|---|---|---|---|
| a) | Se han identificado las herramientas y sentencias para realizar consultas. Identify the tools and statements for querying. | Case 00 "The First Query": the game's SQL console, the table schema and a first guided SELECT. Lesson 1 (SELECT and FROM, in Spanish). Arcade 1-1. | All of them: in every case the student picks which tables to look at and submits the query that proves their answer. |
| b) | Se han realizado consultas simples sobre una tabla. Simple queries on one table. | Cases 00, 01 and 02 (WHERE, date ranges, ORDER BY, LIKE, IN, NULL). Arcade world 1: 1-1, 1-2, 1-3 and the boss (IS NULL). Lessons 1 and 2. Exam: questions 2, 4, 5 and 8. | T2·01 "The Account That's Bleeding" (ORDER BY on a computed value). |
| c) | Se han realizado consultas sobre el contenido de varias tablas mediante composiciones internas. Multi-table queries with inner joins. | Case 03 "The 23:40 Call" (JOIN, table aliases, two chained JOINs). Arcade 3-1 (JOIN … ON) and 3-3 (JOIN + GROUP BY). Lesson 5. Exam: question 9. | T1·06 "Private Room 3" (self-join), T2·02 "Trading Against the Mirror" (JOIN on two keys), T4·02 "The Cash" (JOIN on amount and date window), T2·05 "The One Who Knew" (ASOF JOIN*). |
| d) | Se han realizado consultas sobre el contenido de varias tablas mediante composiciones externas. Multi-table queries with outer joins. | No free case. Arcade 3-2 (LEFT JOIN) and the world 3 boss (LEFT JOIN … IS NULL). Lesson 6. Exam: question 10. | T1·05 "Eleven Alibis and One That Isn't" (LEFT JOIN, anti-join), T2·03 "The Entry Nobody Wrote" (LEFT JOIN … IS NULL). |
| e) | Se han realizado consultas resumen. Summary (aggregate) queries. | Case 04 "The Regular" (GROUP BY, COUNT, HAVING; filtering before and after grouping). Arcade world 2: 2-1 (COUNT, GROUP BY), 2-2 (SUM, MAX, AVG), 2-3 (ORDER BY, LIMIT) and the boss (HAVING). Lessons 3 and 4. Exam: questions 1, 3, 6 and 7. | T2·01 (SUM, GROUP BY), T3·01 "The Report That Multiplied Itself" (COUNT DISTINCT, aggregate before joining), T2·06 "The Decoy" (aggregates with FILTER*), T4·08 "File 88-C" (conditional aggregates). |
| f) | Se han realizado consultas con subconsultas. Queries with subqueries. | No free case. Exam: questions 11 (NOT IN with a subquery and the NULL trap) and 12 (scalar subquery against the average). The cheat sheet has the pattern. | T1·05 and T2·03 (correlated NOT EXISTS), T4·01 "The Night in March" (subquery as a reference), T4·04 and T4·08 (HAVING against a subquery), T1·06 and T1·08 (WITH, named subqueries). |
"Copy the table" copies it tab-separated: it pastes as is into a spreadsheet or a Word or Google Docs table.
The game runs DuckDB, which follows standard SQL for the basics: SELECT, WHERE, JOIN, LEFT JOIN, GROUP BY, HAVING and subqueries are written the same way in MySQL, Oracle or PostgreSQL. What differs, and where it appears: LIMIT (arcade 2-3, exam question 8, case 01; in Oracle, FETCH FIRST n ROWS ONLY); TIMESTAMP '…' literals (cases 00, 01 and 03; in MySQL a plain string works); BOOLEAN columns with TRUE/FALSE (case 02; Oracle lacks them before 23ai); strftime to format a time (solutions of cases 00 and 01; DATE_FORMAT in MySQL, TO_CHAR in Oracle and PostgreSQL); FILTER on aggregates (solution of case 04 and T2·06; PostgreSQL has it, MySQL and Oracle use SUM(CASE WHEN … END)). Items marked * are DuckDB-specific: QUALIFY (T1·07, T3·02; elsewhere, a subquery with ROW_NUMBER()), ASOF JOIN (T2·05; a JOIN with a nearest-value subquery) and date functions such as date_diff or date_part.
The next RA (ASIR RA 5, DAM/DAW RA 4: "Modifica la información almacenada…": INSERT, UPDATE, DELETE, transactions) isn't covered by the game: everything is solved with queries and there are no INSERT, UPDATE, DELETE or transaction exercises.
Text copied from the BOE on December 3, 2026 (for DAW, from the original published text). If your region or a later regulation changes the wording, the current BOE text prevails.
Write to us from your institutional email and we'll send you the answer key and, if you need it, the classroom license with all 28 cases: contacto@casoabiertogame.com