Query formulation in SQL is difficult for novices, and many errors are made in query formulation. Existing research has focused on registering error types and frequencies. Not much attention has been paid to solving these problems.
One of the problems in SQL is with the debugging process: it is not standardized and as such is typically not taught. Recent work by Gathani et al. surveyed the tools and techniques available for SQL debugging. They found that the users’ approaches to debugging, and the available tools for it, do not match at all. As a result, most users apply a trial-and-error approach.
To reduce the number of errors made, various visual systems have been developed to support SQL learners. In the Database group, we have developed SQLVis, a visual query representation for SQL. In quantative and qualitative evaluation, we have found promising results regarding query formulation progress.
One drawback in SQL is that, when syntax errors occur, most of these visual systems do not work. It is close to impossible for parsers to evaluate the query. In SQLVis, it is therefore not possible to generate a SQL representation if the user’s query contains a syntax error.
In this project you select a subset of syntax errors, find a way to amend the parsing tree in case of such errors and create a visual representation for them. Two examples include data-type related errors and aggregation-related errors.
With the creation of such error visualizations and messages, you can help learners understand and repair their errors faster, leading to better learning outcomes for our students.
Further reading: