levo

Databases

Query By Example and alternatives to SQL

  • 3 things to know
  • A2 Unit 1
Start revising · £5/month

Overview

Query By Example, wizard in a database package and stored procedure.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Evaluation

State two advantages of Query By Example over SQL.

Key term

Why is Query By Example usually specific to one product?

Key term

How do most database products relate Query By Example to SQL?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is Query By Example?

    Model answer

    Query By Example is a graphical way of building a query. The user is shown the tables and their fields and fills in a grid to choose the fields, set the criteria and set the sort order, and the software generates the query from it.

  2. 2

    How does a user express a condition in Query By Example?

    Model answer

    The user types the condition into the criteria row beneath the field it applies to, so entering greater than the first of January 2026 under the join date restricts the result to members who joined after that.

  3. 3

    How are two conditions combined in Query By Example?

    Model answer

    Conditions typed on the same criteria row must all be met, giving an AND; conditions typed on different rows are alternatives, giving an OR.

  4. 4

    State two advantages of Query By Example over SQL.

    Model answer

    Query By Example needs no knowledge of syntax, so a non-specialist can build a query, and it shows the available tables and fields on screen, which removes mistyped names and reminds the user what data exists.

  5. 5

    State two disadvantages of Query By Example compared with SQL.

    Model answer

    Query By Example cannot express everything SQL can, particularly nested queries and complex conditions, and a query built in a grid cannot easily be stored in a program, version controlled or reused inside application code.

  6. 6

    Why is Query By Example usually specific to one product?

    Model answer

    The grid is part of a particular database management system's interface rather than a standard, so a query built in one product cannot be moved to another, whereas standard SQL is largely portable.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Systems Analysis and Development Approaches
Design, Development and Testing
Implementation and System Security
Programming

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

A check requires a value.
presencerangeformat

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

One byte is made up of 8 bits.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Databases, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.