Abstract
SQL (Structured Query Language) is the industry standard for querying databases. Unfortunately, users commit many errors when using SQL. To understand the causes of user errors, the author analyzed the task of query writing while considering the characteristics of human cognition. This analysis revealed multiple cognitive causes of a frequent and troublesome error, join clause omission. This error not only wastes users' time for error correction, but it also returns answers from the database that may be undetectably wrong. The cognitive causes of this onerous error were tested experimentally, and that experiment revealed that the four possible causes of join clause omission all contributed to the error. Specifically, the frequency of this error increased because 1)some people never learned the procedure, 2)an explicit clue to write the “join clause” was absent from the problem statement, 3)the load on working memory caused by writing intervening clauses made the users forget to include the “join clause,” and 4)users inappropriately reused the procedure appropriate for a single table query (which requires no join clause) when a “join clause” is indeed necessary.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
More From: Proceedings of the Human Factors and Ergonomics Society Annual Meeting
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.