JOURNAL ARTICLE

SQL#: A Language for Maintainable and Debuggable Database Queries.

  • Published In: International Journal of Software Engineering & Knowledge Engineering, 2023, v. 33, n. 5. P. 619 1 of 3

  • Database: Business Source Ultimate 2 of 3

  • Authored By: Hu, Yamin; Jiang, Hao; Tang, Hanlin; Lin, Xin; Hu, Zongyao 3 of 3

Abstract

Structured Query Language (SQL) is the dominant language for managing relational databases. However, complex SQL queries are hard to write and maintain because of the intricate inter-table and inter-column relations. To this end, we propose a novel query language called SQL#, which allows programmers to construct complex queries module by module and explicitly specify the relations between different modules according to the logical steps of constructing queries. Besides, we design a SQL#-based system, aiming to facilitate the maintenance of SQL# queries. Specifically, the system renders a SQL# program into a hierarchical graph, which could help programmers understand the high-level structures of SQL# programs and the intricate relations between different components within SQL# programs. In addition, the system can ease the generation of the intermediate tables that correspond to the logical steps of constructing queries, which could help programmers debug complex SQL# queries. Notably, the design of SQL# makes it easy for the system to generate the hierarchical graph and the intermediate tables. Controlled experiments suggest that the SQL#-based system reduces the durations of writing and understanding database queries by 79% and 39%, respectively, compared to raw SQL code. [ABSTRACT FROM AUTHOR]

Additional Information

  • Source:International Journal of Software Engineering & Knowledge Engineering. 2023/05, Vol. 33, Issue 5, p619
  • Document Type:Article
  • Subject Area:Computer Science
  • Publication Date:2023
  • ISSN:0218-1940
  • DOI:10.1142/S0218194023500109
  • Accession Number:163812908
  • Copyright Statement:Copyright of International Journal of Software Engineering & Knowledge Engineering is the property of World Scientific Publishing Company and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.)

Looking to go deeper into this topic? Look for more articles on EBSCOhost.