首页> 外文期刊>Journal of computers in mathematics and science teaching >Complex Quantification in Structured Query Language (SQL): A Tutorial Using Relational Calculus
【24h】

Complex Quantification in Structured Query Language (SQL): A Tutorial Using Relational Calculus

机译:结构化查询语言(SQL)中的复杂量化:使用关系演算的教程

获取原文
获取原文并翻译 | 示例
           

摘要

The Structured Query Language (SQL) forms a substantial component of introductory database courses and is supported by almost every commercial database product. One disadvantage of SQL is that it does not provide a universal quantification construct. Queries that have twisted universal and existential quantifiers can be stunning for students, practitioners, or even instructors. Universal quantification exists in natural languages and proliferates in our daily logic. Experience shows that students can infer the rigorous logic, such as the tuple relational calculus, from natural language queries, but find it cumbersome to translate it to SQL. To bridge this gap, this article develops a systematic method to translate tuple relational calculus queries to SQL. This is accomplished by introducing the SQL-Normal-From of tuple relational calcu-lus from which generating SQL code is straightforward. The approach is illustrated by a series of examples. This method was voluntarily adopted by a vast majority of students when it was introduced in a third-year introductory course on database systems.
机译:结构化查询语言(SQL)构成数据库入门课程的重要组成部分,几乎所有商业数据库产品都支持它。 SQL的一个缺点是它不提供通用的量化构造。扭曲了通用量词和存在量词的查询对于学生,从业者甚至是指导者而言都是惊人的。通用量化以自然语言存在,并在我们的日常逻辑中激增。经验表明,学生可以从自然语言查询中推断出严格的逻辑,例如元组关系演算,但将其转换为SQL则很麻烦。为了弥合这种差距,本文开发了一种将元组关系演算查询转换为SQL的系统方法。这是通过引入元组关系计算的SQL-Normal-From来实现的,从中可以直接生成SQL代码。通过一系列示例说明了该方法。在数据库系统三年级入门课程中介绍了此方法后,绝大多数学生都自愿采用了该方法。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号