The Effects of Information Request Language and Template Usage on Query Formulation

The ability to retrieve accurate information from relational databases requires proficiency in structured query language (SQL). In spite of its declarative nature, teaching and learning SQL for complex data-retrieval tasks remains a challenge. Cognitive load theory (CLT) explains the interactions between working and long-term memories in acquiring complex knowledge and skills. We used CLT to identify two instructional interventions expected to improve query writing performance under conditions of high and low query (code) complexity. First, we presented information requests in pseudo-SQL language rather than manager English to clarify the relevant elements in the data model. Second, we provided a query template as an intermediate problem-solving step prior to coding. We conducted an experiment with 63 student participants in a 2 x 2 x 2 repeated measures design in which the request language was either pseudo SQL or manager English, the task included a query template or did not, and the task had either low or high query (code) complexity. Results show that both request language and template usage significantly affected query writing performance but in different situations. Pseudo SQL requests had a significant positive impact on query accuracy with less complex queries but had no impact with more complex queries. On the other hand, using a query template prior to writing SQL code improved task performance with more complex queries but not with less complex queries. We discuss the implications of these findings for instructional design and future research.

[1]  Qiuzhen Wang,et al.  An eye-tracking study of website complexity from cognitive load perspective , 2014, Decis. Support Syst..

[2]  T. Gog,et al.  Effects of pairs of problems and examples on task performance and different types of cognitive load , 2014 .

[3]  Klaus Meyer-Wegener,et al.  Speaking in tongues: SQL access to NoSQL systems , 2014, SAC.

[4]  M. Hannafin,et al.  A Framework for Designing Scaffolds That Improve Motivation and Cognition , 2013, Educational psychologist.

[5]  Gretchen Irwin Casterella,et al.  An Experimental Investigation of Complexity in Database Query Formulation Tasks , 2013, J. Inf. Syst. Educ..

[6]  T. Gog,et al.  Development of an instrument for measuring different types of cognitive load , 2013, Behavior Research Methods.

[7]  Christopher D. Wickens,et al.  Effectiveness of Part-Task Training and Increasing-Difficulty Training Strategies , 2013, Hum. Factors.

[8]  F. Paas,et al.  Cognitive load theory: New directions and challenges , 2012 .

[9]  Donald D. Chamberlin,et al.  Early History of SQL , 2012, IEEE Ann. Hist. Comput..

[10]  T. Gog,et al.  Effects of worked examples, example-problem, and problem-example pairs on novices learning , 2011 .

[11]  Jeffrey Parsons,et al.  Is Query Reuse Potentially Harmful? Anchoring and Adjustment in Adapting Existing Database Queries , 2010, Inf. Syst. Res..

[12]  Paul L. Bowen,et al.  An Empirical Investigation of End-User Query Development: The Effects of Improved Model Expressiveness vs. Complexity , 2009, Inf. Syst. Res..

[13]  Michelle Cook Visual representations in science education: The influence of prior knowledge and cognitive load theory on instructional design principles , 2006 .

[14]  Paul Ayres Using subjective measures to detect variations of intrinsic cognitive load within problems , 2006 .

[15]  Salvatore T. March,et al.  The Effects of State-Based and Event-Based Data Representation on User Performance in Query Formulation Tasks , 2006, MIS Q..

[16]  K. Siau,et al.  Cognitive mapping techniques for user-database interaction , 2006, IEEE Transactions on Professional Communication.

[17]  Gregory J. Gerard,et al.  The REA Pattern, Knowledge Structures, and Conceptual Modeling Performance , 2005, J. Inf. Syst..

[18]  J. Sweller,et al.  Cognitive Load Theory and Complex Learning: Recent Developments and Future Directions , 2005 .

[19]  Paul L. Bowen,et al.  Analysis of Competing Data Structures: Does Ontological Clarity Produce Better End User Query Performance , 2006, J. Assoc. Inf. Syst..

[20]  Richard Catrambone,et al.  Designing Instructional Examples to Reduce Intrinsic Cognitive Load: Molar versus Modular Presentation of Solution Procedures , 2004 .

[21]  Cheri Speier,et al.  The Influence of Query Interface Design on Decision-Making Performance , 2003, MIS Q..

[22]  Slava Kalyuga,et al.  The Expertise Reversal Effect , 2003 .

[23]  P. Chandler,et al.  Assimilating complex information , 2002 .

[24]  Donald R. Jones,et al.  The effects of information request ambiguity and construct incongruence on query development , 2001, Decis. Support Syst..

[25]  A. Faye Borthick,et al.  A Model for and the Effects of Information Request Ambiguity on End-user Query Performance , 2001, ICIS.

[26]  Peter Rob,et al.  Database systems : design, implementation, and management , 2000 .

[27]  Hock Chuan Chan,et al.  The relationship between user query accuracy and lines of code , 1999, Int. J. Hum. Comput. Stud..

[28]  F. Paas,et al.  Cognitive Architecture and Instructional Design , 1998 .

[29]  Sangkyu Rho,et al.  An analysis of semantic overload in database access systems using multi-table query formulation , 1997 .

[30]  P. Chandler,et al.  Cognitive Load While Learning to Use a Computer Program , 1996 .

[31]  Ramez Elmasri,et al.  Fundamentals of database systems (2nd ed.) , 1994 .

[32]  J. Sweller COGNITIVE LOAD THEORY, LEARNING DIFFICULTY, AND INSTRUCTIONAL DESIGN , 1994 .

[33]  Keng Siau,et al.  User-Database Interface: The Effect of Abstraction Levels on Query Performance , 1993, MIS Q..

[34]  Vinod Goel,et al.  The Structure of Design Problem Spaces , 1992, Cogn. Sci..

[35]  Heikki Topi,et al.  Modern Database Management , 1999 .

[36]  William C. Ogden IMPLICATIONS OF A COGNITIVE MODEL OF DATABASE QUERY: COMPARISON OF A NATURAL LANGUAGE, FORMAL LANGUAGE AND DIRECT MANIPULATION INTERFACE , 1986, SGCH.

[37]  R. Wood Task complexity: Definition of the construct , 1986 .

[38]  Michelene T. H. Chi,et al.  Expertise in Problem Solving. , 1981 .

[39]  Bill Curtis,et al.  Measuring the Psychological Complexity of Software Maintenance Tasks with the Halstead and McCabe Metrics , 1979, IEEE Transactions on Software Engineering.

[40]  L. S. Vygotskiĭ,et al.  Mind in society : the development of higher psychological processes , 1978 .

[41]  Phyllis Reisner,et al.  Use of Psychological Experimentation as an Aid to Development of a Query Language , 1977, IEEE Transactions on Software Engineering.

[42]  Maurice H. Halstead,et al.  Elements of software science , 1977 .

[43]  J. Bruner,et al.  The role of tutoring in problem solving. , 1976, Journal of child psychology and psychiatry, and allied disciplines.

[44]  Herbert A. Simon,et al.  The Structure of Ill Structured Problems , 1973, Artif. Intell..

[45]  H. Simon,et al.  Perception in chess , 1973 .

[46]  G. A. Miller THE PSYCHOLOGICAL REVIEW THE MAGICAL NUMBER SEVEN, PLUS OR MINUS TWO: SOME LIMITS ON OUR CAPACITY FOR PROCESSING INFORMATION 1 , 1956 .

[47]  E. Williams Experimental Designs Balanced for the Estimation of Residual Effects of Treatments , 1949 .