Query By Example - As A General Technique

As A General Technique

The term also refers to a general technique influenced by Zloof's work whereby only items with search values are used to "filter" the results. It provides a way for a software user to perform queries without having to know a query language (such as SQL). The software can automatically generate the queries for the user (usually behind the scenes). Here are some examples:

Example Form B:

.....Name: Bob ..Address: .....City: ....State: TX ..Zipcode:

Resulting SQL:

SELECT * FROM Contacts WHERE Name='Bob' AND State='TX'

Note how blank items do not generate SQL terms. Since "Address" is blank, there is no clause generated for it.

Example Form C:

.....Name: ..Address: .....City: Sampleton ....State: ..Zipcode: 12345

Resulting SQL:

SELECT * FROM Contacts WHERE City='Sampleton' AND Zipcode=12345

More advanced versions of QBE have other comparison operator options, often via a pull-down menu, such as "Contains", "Starts With", "Greater-Than", and so forth.

Read more about this topic:  Query By Example

Famous quotes containing the words general and/or technique:

    Towards him they bend
    With awful reverence prone; and as a God
    Extoll him equal to the highest in Heav’n:
    Nor fail’d they to express how much they prais’d,
    That for the general safety he despis’d
    His own: for neither do the Spirits damn’d
    Loose all thir vertue; lest bad men should boast
    Thir specious deeds on earth, which glory excites,
    Or close ambition varnisht o’er with zeal.
    John Milton (1608–1674)

    A successful social technique consists perhaps in finding unobjectionable means for individual self-assertion.
    Eric Hoffer (1902–1983)