Method for executing a query having multiple distinct key columns
Abstract
A method for executing a query to access data stored in a database, wherein the query includes a plurality of DISTINCT keys, is disclosed. The method of the present invention includes providing a first DISTINCT operation on a first DISTINCT key, storing data fetched from the first DISTINCT operation in a master workfile if more than one sort process is needed to execute the query, and utilizing the master workfile to perform subsequent DISTINCT operations for the other DISTINCT keys.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 28 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method for executing a query to access data stored in a database with a sort process, wherein the query includes a plurality of DISTINCT keys, the method comprising the steps of: (a) determining if more than one sort is needed to execute the query; (b) performing a first DISTINCT operation on a first DISTINCT key of the plurality of DISTINCT keys comprising (b1) optimizing the query; and (b2) analyzing the query comprising (b2i) identifying the plurality of DISTINCT keys; and (b2ii) writing the plurality of DISTINCT keys to a control block, wherein the control block is u
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (28)
Non-Patent Literature (3)
- A Framework for global optimization of aggregate queries. Chengwen Liu; Ursu A Proceedings of the Sixth International Conference on Information and Knowledge Management. CIKM' 97, pp. 262-269, Published: New York, NY, USA, 1997, ix+368 pp.
- Deciding distinctness of query results by discovered constraints. Bell S. Pact 96. Proce dings of the Second International Conference on the Practical Application of Constraint Technology, pp. 399-416, Published: Blackpool, UK, 1996, 464 pp.
- Optimization of sequences of relational queries in decision-support environments. Badia A; Niehues M. Data Warehousing and Knowledge Discovery. First International Conference, DawaK '99. Proceedings (Lecture Notes in Computer Science vol. 1676), pp. 126-131, Published Berlin Germany, 1999, xii+400 p