Nova Patents
EP0803100A1

Database query system

Abstract

A database query system includes a query assistant that permits the user to enter only queries that are both syntactically and semantically valid (and that can be processed by an SQL generator to produce semantically valid SQL). Through the use of dialog boxes, a user enters a query in an intermediate English-like language which is easily understood by the user. A query expert system monitors the query as it is being built, and using information about the structure of the database, it prevents the user from building semantically incorrect queries by disallowing choices in the dialog boxes which would create incorrect queries. An SQL generator is also provided which uses a set of transformations and pattern substitutions to convert the intermediate language into a syntactically and semantically correct SQL query. The intermediate language can represent complex SQL queries while at the same time being easy to understand. The intermediate language is also designed to be easily converted into SQL queries. In addition to the query assistant and the SQL generator, an administrative facility is provided which allows an administrator to add a conceptual layer to the underlying database making it easier for the user to query the database. This conceptual layer may contain alternate names for columns and tables, paths specifying standard and complex joins, definitions for virtual tables and columns, and limitations on user access.

Term

Term ended

Projected expiry passed 23 March 2015, 11.5 years ago.

  1. Priority
  2. Filed
  3. Published
  4. Projected expiry
  5. Today

26 claims: 5 independent, 21 dependent

  1. 1
    Claims of equivalent WO 9526003 A1 WHAT IS CLAIMED IS:1. A database query system for interactively creating, with a user, semantically correct queries, in a target query language, of a database having a predetermined structure, said system comprising: a conceptual layer manager for storing conceptual information about the database including the predetermined structure;a query assistant, said query assistant providing the user a set of permissible selections from which to build a semantically correct database query for the database in an intermediate query language;and a query generator, said query generator receiving a query in said intermediate query language from said query assistant and converting said query into the target query language.
  2. 22
    A database query system for interactively creating, with a user, semantically correct queries in a target query language of a database having a predetermined structure, said system comprising:storage means for storing information about the database including the predetermined structure;and query creation means for building a semantically correct database query by providing the user a set of permissible selections from which to build said database query for said current database in an intermediate query language;and query conversion means for converting said intermediate query language into the target query language.
  3. 23
    A method for creating an intermediate database language from a target database language, said method comprising the steps of:removing constructs from the target database language which can be inferred;replacing each type of condition construct of the target database language which is to be included in the intermediate database language with a new pattern. replacing keywords in the target database language with new patterns;and defining a set of synonyms for constructs in the intermediate database language.
  4. 25
    A database query system for interactively creating, with a user, semantically correct queries, in a target query language, of a database having a predetermined structure, said system comprising:a query assistant providing the user a set of permissible selections from which to build a semantically correct database query for the database in an intermediate query language;and a query generator, said query generator receiving a query in said intermediate query language from said query assistant and converting said query into the target query language.
  5. 26
    A database query system for interactively creating, with a user, semantically correct queries, in a query language, of a database implemented in a database management system (DBMS), the DBMS accepting queries in a target query language, the database having a predetermined structure, information about the structure being maintained by the DBMS, said system comprising:a query assistant, said query assistant providing the user a set of permissible selections from which to build a semantically correct database query for the database in an intermediate query language;said permissible selections being determined at least in part from the information on the database structure, and a query generator, said query generator receiving a query in said intermediate query language from said query assistant and converting said query into the target query language.