<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Object_Query_Language</id>
	<title>Object Query Language - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Object_Query_Language"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Object_Query_Language&amp;action=history"/>
	<updated>2026-04-30T13:37:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Object_Query_Language&amp;diff=2680434&amp;oldid=prev</id>
		<title>imported&gt;Citation bot: Alter: pages, url. URLs might have been anonymized. Added chapter-url. Removed or converted URL. Formatted dashes. | Use this bot. Report bugs. | Suggested by Abductive | Category:Articles lacking in-text citations from March 2025 | #UCB_Category 400/690</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Object_Query_Language&amp;diff=2680434&amp;oldid=prev"/>
		<updated>2025-04-01T07:16:29Z</updated>

		<summary type="html">&lt;p&gt;Alter: pages, url. URLs might have been anonymized. Added chapter-url. Removed or converted URL. Formatted &lt;a href=&quot;/wiki143/index.php?title=WP:ENDASH&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:ENDASH (page does not exist)&quot;&gt;dashes&lt;/a&gt;. | &lt;a href=&quot;/wiki143/index.php?title=En:WP:UCB&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;En:WP:UCB (page does not exist)&quot;&gt;Use this bot&lt;/a&gt;. &lt;a href=&quot;/wiki143/index.php?title=En:WP:DBUG&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;En:WP:DBUG (page does not exist)&quot;&gt;Report bugs&lt;/a&gt;. | Suggested by Abductive | &lt;a href=&quot;/wiki143/index.php?title=Category:Articles_lacking_in-text_citations_from_March_2025&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Articles lacking in-text citations from March 2025 (page does not exist)&quot;&gt;Category:Articles lacking in-text citations from March 2025&lt;/a&gt; | #UCB_Category 400/690&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Query language for object-oriented databases}}&lt;br /&gt;
{{inline|date=March 2025}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Object Query Language&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;OQL&amp;#039;&amp;#039;&amp;#039;) is a [[query language]] standard for [[object database|object-oriented databases]] modeled after [[SQL]] and developed by the [[Object 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 as [[JDOQL]] and [[EJB QL]], though none are considered to be any version of OQL.&lt;br /&gt;
&lt;br /&gt;
==General rules==&lt;br /&gt;
The following rules apply to OQL statements:&lt;br /&gt;
* All complete statements must be terminated by a semi-colon.&lt;br /&gt;
* A list of entries in OQL is usually separated by commas but not terminated by a comma(,).&lt;br /&gt;
* Strings of text are enclosed by matching quotation marks.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
===Simple query===&lt;br /&gt;
The following example illustrates how one might retrieve the [[CPU]]-speed of all PCs with more than 64MB of [[random-access memory|RAM]] from a fictional [[Personal computer|PC]] database:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
SELECT pc.cpuspeed&lt;br /&gt;
FROM PCs pc&lt;br /&gt;
WHERE pc.ram &amp;gt; 64;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Query with grouping and aggregation===&lt;br /&gt;
The following example illustrates how one might retrieve the average amount of [[random-access memory|RAM]] on a [[Personal computer|PC]], grouped by manufacturer:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
SELECT manufacturer, AVG(SELECT part.pc.ram FROM partition part)&lt;br /&gt;
FROM PCs pc&lt;br /&gt;
GROUP BY manufacturer: pc.manufacturer;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note the use of the keyword &amp;lt;code&amp;gt;partition&amp;lt;/code&amp;gt;, as opposed to aggregation in traditional SQL.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{refbegin}}&lt;br /&gt;
&lt;br /&gt;
*{{cite book |last1=Dietrich |first1=Suzanne |last2=Urban |first2=Susan |title=Fundamentals of Object Databases |date=31 May 2022 |publisher=[[Springer Nature]] |isbn=978-3-031-01844-2 |pages=31–52 |chapter-url=https://books.google.com/books?id=JYdyEAAAQBAJ&amp;amp;dq=%22Object+Query+Language%22+-wikipedia&amp;amp;pg=PA31 |language=en |chapter=2.4 The ODMG Query Language}}&lt;br /&gt;
&lt;br /&gt;
*{{cite book |last1=Cattell |first1=Roderic Geoffrey Galton |last2=Barry |first2=Douglas K. |last3=Berler |first3=Mark |title=The Object Data Standard: ODMG 3.0 |date=2000 |publisher=[[Morgan Kaufmann]] |isbn=978-1-55860-647-0 |pages=89–152 |url=https://books.google.com/books?id=2-FF-aQ_twQC |access-date=31 March 2025 |language=en |chapter=Object Query Language}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{refend}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Object Data Management Group]] (ODMG)&lt;br /&gt;
* Object Definition Language&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
{{Query languages}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Query languages]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Soft-eng-stub}}&lt;br /&gt;
{{Compu-lang-stub}}&lt;/div&gt;</summary>
		<author><name>imported&gt;Citation bot</name></author>
	</entry>
</feed>