Understanding Help-Seeking Behavior of Students Using LLMs vs. Web Search for Writing SQL Queries
Harsh Kumar, Mohi Reza, Jeb Mitchell, Ilya Musabirov, Lisa Zhang,, Michael Liut

TL;DR
This study compares how students use web search and large language models like ChatGPT for writing SQL queries, revealing differences in interaction patterns, perceived mental demand, and query quality, with implications for programming education.
Contribution
It provides the first experimental comparison of web search versus LLMs in SQL query learning, highlighting differences in interaction and perceived effort.
Findings
Instructor-tuned LLMs require more interactions than ChatGPT and web search.
No significant difference in final query quality across conditions.
Students using instructor-tuned LLMs report lower mental demand.
Abstract
Growth in the use of large language models (LLMs) in programming education is altering how students write SQL queries. Traditionally, students relied heavily on web search for coding assistance, but this has shifted with the adoption of LLMs like ChatGPT. However, the comparative process and outcomes of using web search versus LLMs for coding help remain underexplored. To address this, we conducted a randomized interview study in a database classroom to compare web search and LLMs, including a publicly available LLM (ChatGPT) and an instructor-tuned LLM, for writing SQL queries. Our findings indicate that using an instructor-tuned LLM required significantly more interactions than both ChatGPT and web search, but resulted in a similar number of edits to the final SQL query. No significant differences were found in the quality of the final SQL queries between conditions, although the LLM…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsOpen Education and E-Learning · Educational Technology and Assessment
