StudyBrixFree worksheets, study guides and courses

Subjects

Data systems

Choose questions individually, practise online, or create a worksheet with matching answers. Counts include generated variants, not only authored originals.

Make a worksheet478 question instances

Sample exercises

University · Data systems

Which clause specifies result ordering in an ordinary SQL query?

  1. ORDER BY
  2. SELECT alone always
  3. WHERE alone
  4. The table filename
Answer and explanation

ORDER BY

Without explicit ordering, result order should not be assumed.

University · Data systems

A table contains 12 rows and a stated filter matches 5. How many rows does SELECT without grouping return for that filter?

Answer and explanation

5

The filter retains exactly the five matching rows.

University · Data systems

What is a primary key intended to do?

  1. Uniquely identify rows under its constraint
  2. Make every column secret
  3. Sort every query automatically
  4. Guarantee that all text is accurate
Answer and explanation

Uniquely identify rows under its constraint

Uniqueness and non-null key constraints identify records, not all semantic truth.

University · Data systems

Why can joining a parent table to several matching child records repeat the parent values?

Answer and explanation

Each matching parent-child combination appears in the join result. A one-to-many relation naturally produces multiple rows.

Credit join cardinality.

University · Data systems

Why use parameterized SQL for user-supplied values?

  1. Remove all need for permissions
  2. Make every query return one row
  3. Keep values separate from executable SQL syntax
  4. Automatically correct every schema
Answer and explanation

Keep values separate from executable SQL syntax

Parameter binding reduces injection risk from data values.

University · Data systems

Three parent rows each match two child rows under the stated join. How many joined rows result?

Answer and explanation

6

3×2=6 combinations.

Study notes

Related courses

Computer science4 lessons

Python programming foundations

Learn core Python concepts with paper-based reasoning and small code-reading tasks.

32 quiz questions · University
Computer science4 lessons

Web development foundations

Study HTML, CSS, JavaScript and accessible web structure without a paid bootcamp.

32 quiz questions · University
Computer science4 lessons

SQL and relational databases

Learn tables, queries, joins and data modelling with original exercises.

32 quiz questions · University
Computer science4 lessons

Data science foundations

Work through data cleaning, visualization, modelling and interpretation.

32 quiz questions · University
Computer science4 lessons

Cybersecurity foundations

Study defensive security, privacy and risk management without offensive exploitation instructions.

32 quiz questions · University
Computer science4 lessons

Spreadsheet skills

Learn formulas, references, cleaning and charts for practical study and office work.

32 quiz questions · University