Conjunctive Query - Relationship To Other Query Languages

Relationship To Other Query Languages

Conjunctive queries also correspond to select-project-join queries in relational algebra (i.e., relational algebra queries that do not use the operations union or difference) and to select-from-where queries in SQL in which the where-condition uses exclusively conjunctions of atomic equality conditions, i.e. conditions constructed from column names and constants using no comparison operators other than "=", combined using "and". Notably, this excludes the use of aggregation and subqueries. For example, the above query can be written as an SQL query of the conjunctive query fragment as

select l.student, l.address from attends a1, gender g1, attends a2, gender g2, lives l where a1.student=g1.student and a2.student=g2.student and l.student=g1.student and a1.course=a2.course and g1.gender='male' and g2.gender='female';

Read more about this topic:  Conjunctive Query

Famous quotes containing the words relationship to, relationship, query and/or languages:

    ... the Wall became a magnet for citizens of every generation, class, race, and relationship to the war perhaps because it is the only great public monument that allows the anesthetized holes in the heart to fill with a truly national grief.
    Adrienne Rich (b. 1929)

    We must introduce a new balance in the relationship between the individual and the government—a balance that favors greater individual freedom and self-reliance.
    Gerald R. Ford (b. 1913)

    Such condition of suspended judgment indeed, in its more genial development and under felicitous culture, is but the expectation, the receptivity, of the faithful scholar, determined not to foreclose what is still a question—the “philosophic temper,” in short, for which a survival of query will be still the salt of truth, even in the most absolutely ascertained knowledge.
    Walter Pater (1839–1894)

    Wealth is so much the greatest good that Fortune has to bestow that in the Latin and English languages it has usurped her name.
    William Lamb Melbourne, 2nd Viscount (1779–1848)