论文标题

博士学位论文:SQL理解和综合

PhD thesis: SQL Comprehension and Synthesis

论文作者

Obaido, George

论文摘要

结构化查询语言(SQL)仍然是关系数据库管理系统(RDBMSS)中使用的标准语言,并在医疗保健(患者注册表),企业(库存,趋势分析),军事,军事,教育等中找到了应用程序。尽管SQL陈述是英语的,但撰写SQL查询的过程通常是对非室内技术的撰写问题的问题。同样,制定和理解书面查询可能会造成混乱,尤其是对于本科生而言。这些困难给出的关键原因之一在于SQL的简单语法,这通常是误导性的,难以理解。理想的解决方案是介绍这两个受众:本科生和非技术最终用户的学习和练习工具。这些工具主要是电子的,可以用来帮助他们的理解,并使其能够编写正确的SQL查询。这项工作提出了一种新方法,旨在使用正式语言和自动机理论的原理理解和编写正确的SQL查询。我们根据以下算法介绍:识别简单查询构建体的正则表达式,无上下文的语法识别嵌套查询,以及从自然语言描述中综合SQL查询的跳跃有限自动机。作为概念证明,这些算法进一步实施了旨在提高SQL理解的交互式软件工具。对这些工具的评估表明,大多数参与者都同意这些工具是直观的,并有助于他们对SQL查询的理解。因此,这些工具应在协助高等教育机构的SQL理解中找到应用程序,并协助在以数据为中心的行业中撰写正确的查询。

Structured Query Language (SQL) remains the standard language used in Relational Database Management Systems (RDBMSs) and has found applications in healthcare (patient registries), businesses (inventories, trend analysis), military, education, etc. Although SQL statements are English-like, the process of writing SQL queries is often problematic for nontechnical end-users in the industry. Similarly, formulating and comprehending written queries can be confusing, especially for undergraduate students. One of the pivotal reasons given for these difficulties lies with the simple syntax of SQL, which is often misleading and hard to understand. An ideal solution is to present these two audiences: undergraduate students and nontechnical end-users with learning and practice tools. These tools are mostly electronic and can be used to aid their understanding, as well as enable them to write correct SQL queries. This work proposes a new approach aimed at understanding and writing correct SQL queries using principles from Formal Language and Automata Theory. We present algorithms based on: regular expressions for the recognition of simple query constructs, context-free grammars for the recognition of nested queries, and a jumping finite automaton for the synthesis of SQL queries from natural language descriptions. As proof of concept, these algorithms were further implemented into interactive software tools aimed at improving SQL comprehension. Evaluation of these tools showed that the majority of participants agreed that the tools were intuitive and aided their understanding of SQL queries. These tools should, therefore, find applications in aiding SQL comprehension at higher learning institutions and assist in the writing of correct queries in data-centered industries.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源