The Comparison of SQL, QBE, and DFQL as Query Languages for Relational Databases

Abstract

Structure Query Language (SQL) and Query By Example (QBE) are the most widely used query languages for Relational Database Management Systems (RDBMS's). However, both of them have problems concerning ease-of-use issues, especially in expressing universal quantification, specifying complex nested queries, and flexibility and consistency in specifying queries with respect to data retrieval. To alleviate these problems, a new query language called 'DataFlow Query Language' (DFQL) was proposed. This thesis investigates the relative strengths and weaknesses of these three languages. We divide queries into four categories: single-value, set-value, statistical result, and set-count value. In each category, a representative set of queries from each language is specified and compared. Some of the queries specified are logical extensions of the other (already defined) queries, which are used to analyze the query languages' flexibility and consistency in formulating logically related queries. We perform a simple experiment of asking NPS CS students to write a small set of queries in all three languages. Based on the analysis, we conclude that DFQL eliminates the problems of SQL and QBE mentioned above. The relative strengths of DFQL comes mainly from its strict adherence to relational algebra and dataflow-based visuality.

Open PDF

Document Details

Document Type
Technical Report
Publication Date
Mar 01, 1994
Accession Number
ADA280415

Entities

People

  • Paruntungan Girsang

Organizations

  • Naval Postgraduate School

Tags

DTIC Thesaurus Topics

  • Calculus
  • Computer Programming
  • Computer Science
  • Computers
  • Consistency
  • Construction
  • Database Management Systems
  • Databases
  • Department Of Defense
  • Employee Relations
  • Indonesia
  • Language
  • Programming Languages
  • Relational Database Management Systems
  • Relational Databases
  • Schools
  • Students

Fields of Study

  • Computer science
  • Engineering

Readers

  • Computational Linguistics
  • Database Systems and Applications
  • Theoretical Analysis.