This article includes alist of references,related reading, orexternal links,but its sources remain unclear because it lacksinline citations. Please helpimprove this article byintroducing more precise citations.(March 2025) (Learn how and when to remove this message) |
Object Query Language (OQL) is aquery language standard forobject-oriented databases modeled afterSQL and developed by theObject Data Management Group (ODMG). Because of its overall complexity the complete OQL standard has not yet been fully implemented in any software. The OQL standard influenced the design of later query languages such asJDOQL andEJB QL, though none are considered to be any version of OQL.
The following rules apply to OQL statements:
The following example illustrates how one might retrieve theCPU-speed of all PCs with more than 64MB ofRAM from a fictionalPC database:
SELECTpc.cpuspeedFROMPCspcWHEREpc.ram>64;
The following example illustrates how one might retrieve the average amount ofRAM on aPC, grouped by manufacturer:
SELECTmanufacturer,AVG(SELECTpart.pc.ramFROMpartitionpart)FROMPCspcGROUPBYmanufacturer:pc.manufacturer;
Note the use of the keywordpartition, as opposed to aggregation in traditional SQL.
Thissoftware-engineering-related article is astub. You can help Wikipedia byexpanding it. |
Thisprogramming-language-related article is astub. You can help Wikipedia byexpanding it. |