Eduqas A-Level Computer Science A500QS
Data Structures: Arrays, Records and Hash Tables
Stacks, Queues, Linked Lists and Trees
Boolean Logic and Simplification
Algorithms, Pseudo-Code and Programming Constructs
Variables, Scope, Parameters and Identifiers
Recursion and Modular Programming
Sorting Algorithms
Searching and Shortest-Path Algorithms
Big O Notation and Algorithm Efficiency
Validation, Verification and Testing
Data Compression
Programming Paradigms and Computer Languages
Systems Analysis, Maintenance and Documentation
System Design and Human-Computer Interaction
Software Engineering Tools and Translators
Computing, Society and the Law
Computer Architecture, the Processor and Assembly Language
Input, Output and Secondary Storage
Networks, Protocols and the Internet
Data Transmission and Network Performance
Number Systems and Binary Arithmetic
Data Types, Characters and Floating Point
Files, Records and File Organisation
Databases, Normalisation and Entity Modelling
SQL, Big Data and Distributed Systems
The Operating System and Its Modes
Interrupts, Memory Management and Scheduling
Types of Software System
Data Security, Cryptography and Attack
SQL, Big Data and Distributed Systems
Retrieving data with SELECT, FROM and WHERE
- 3 things to know
- Component 2
Overview
The three clauses of a retrieval query, what each supplies, and writing queries against a stated table to return particular columns and particular rows.
What you need to know
Answer each one before you reveal it.
A table Book holds Title, Author and Price. Write SQL to list every title.
What does SELECT * FROM Book return?
Questions from this subtopic
Each one with the model answer underneath.
- 1
State the three clauses of a basic SQL retrieval query and what each supplies.
Model answer
SELECT names the columns wanted and FROM names the table they come from. WHERE states the condition a row must satisfy to be returned.
- 2
A table Book holds Title, Author and Price. Write SQL to list every title.
Model answer
SELECT Title FROM Book. The query returns one column holding the title of every row in the table.
- 3
What does SELECT * FROM Book return?
Model answer
SELECT * FROM Book returns every column of every row in the table Book. The asterisk stands for all columns.
- 4
Book holds Title, Author and Price. Write SQL to list the title and author of books priced below 8.
Model answer
SELECT Title, Author FROM Book WHERE Price < 8. Only rows whose Price is less than 8 are returned.
- 5
Book holds Title, Author, Price and YearPub. Write SQL to list all details of books published in 2019.
Model answer
SELECT * FROM Book WHERE YearPub = 2019. The asterisk returns every column for each matching row.
- 6
Why does a WHERE clause reduce the work a program has to do?
Model answer
The WHERE clause makes the database system filter the rows before returning them. The program then receives only the rows it actually needs.
Other ways to work this
The same content, four other ways.
What is inside Levo
Six ways to work the same material.
Every question in SQL, Big Data and Distributed Systems, 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.