levo

Databases

Query By Example and alternatives to SQL

  • 3 things to know
  • A2 Unit 1

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.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

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

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

A check requires a value.
presencerangeformat

Blank Blitz makes facts automatic

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

ANormal data is 12, which should be accepted.
BBoundary data is 1 and 50, which should be accepted.
C0 and 51, just outside the limits, should be rejected.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

One byte is made up of 8 bits.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

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.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

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