SQLRepair: Identifying and Repairing Mistakes in Student-Authored SQL Queries
Authors:
- 1 May 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 199-210
Abstract
Computer science educators seek to understand the types of mistakes that students make when learning a new (programming) language so that they can help students avoid those mistakes in the future. While educators know what mistakes students regularly make in languages such as C and Python, students struggle with SQL and regularly make mistakes when working with it. We present an analysis of mistakes that students made when first working with SQL, classify the types of errors introduced, and provide suggestions on how to avoid them going forward. In addition, we present an automated tool, SQLRepair, that is capable of repairing errors introduced by undergraduate programmers when writing SQL queries. Our results show that students find repairs produced by our tool comparable in understandability to queries written by themselves or by other students, suggesting that SQL repair tools may be useful in an educational context. We also provide to the community a benchmark of SQL queries written by the students in our study that we used for evaluation of SQLRepair.Keywords
All Related Versions
This publication has 29 references indexed in Scilit:
- Automatic patch generation by learning correct code2016
- A Data Science Course for Undergraduates: Thinking With DataThe American Statistician, 2015
- Data Science in Statistics Curricula: Preparing Students to “Think with Data”The American Statistician, 2015
- On the Comprehension of Program ComprehensionACM Transactions on Software Engineering and Methodology, 2014
- Investigating novice programming mistakes2014
- On the Use of Input/Output Queries for Code Search2013
- A human study of patch maintainability2012
- Semantic errors in SQL queries: A quite complete listJournal of Systems and Software, 2006
- Experiments with Industry's “Pair-Programming” Model in the Computer Science ClassroomComputer Science Education, 2001
- A survey on usage of SQLACM SIGMOD Record, 1993