A Quantitative Study of the Relative Difficulty for Novices of Writing Seven Different Types of SQL Queries
Alireza Ahadi, Julia Coleman Prior, Vahid Behbood, Raymond Lister · 2015
This paper presents a quantitative analysis of data collected by an online testing system for SQL "select" queries. The data was collected from almost one thousand students, over eight years. We examine which types of queries our students found harder to write. The seven types of SQL queries studied are: simple queries on one table; grouping, both with and without "having"; natural joins; simple and correlated sub-queries; and self-joins. The order of queries in the preceding sentence reflects the order of student difficulty we see in our data.