A Feasibility Study on Automated SQL Exercise Generation with ChatGPT-3.5
Open Access
- 9 June 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 13-19
Abstract
SQL is the standard for database query languages and is taught in most introductory database courses. Query languages are illustrated and tested through toy examples: small, accessible, instances of databases. These are not always engaging, but coming up with new examples and questions is time-consuming. Existing research in Computer Science Education has shown that Large Language Models (LLMs) can generate coding exercises. However, this has not been demonstrated for SQL yet but could save teachers much time. In this paper, we study whether it is feasible to have ChatGPT-3.5 generate database schemas and associated SQL questions for teachers through a two-part study. Through a survey of educators, we found that creating a story and database schema for the SQL part is more time-consuming than the questions themselves. In our prompt engineering study, we identified prompts that were successful at creating database schemas, mock data, and exercises. However, although ChatGPT could help reduce the time required to create exams, some participants indicated that they are skeptical about using LLMs.Keywords
This publication has 26 references indexed in Scilit:
- SQLRepair: Identifying and Repairing Mistakes in Student-Authored SQL Queries2021
- Explaining Causes Behind SQL Query Formulation Errors2020
- AsseSQL2014
- Integrating authentic learning into a software development course2013
- Assessment of programming2013
- eledSQL2012
- Automating exercise generation2012
- Reviewing CS1 exam question content2011
- Teaching computer science in contextACM Inroads, 2010
- Semantic errors in SQL queries: A quite complete listJournal of Systems and Software, 2006