Object Query Language
The Object Query Language ( OQL ) is a strongly SQL ajar query language for object databases .
The language is standardized by the Object Database Management Group (ODMG).
Despite the close similarity to SQL, the language should not be confused with it because of its object-oriented approach. OQL was developed to simplify the interaction between object-oriented programs and a database. The classic relational approach leads to breaks in the software architecture .
The Object Definition Language ( ODL ) can be used to define the objects in the database .
Illustrated with a simple example (search for all students who are not also tutors ):
SELECT student.name
FROM student in StudentTUM
WHERE not (student.name in SELECT tutor.name FROM tutor in TAs)