Use of SQL to Search for Data (AQA GCSE Computer Science): Quizzes

📚Quizzes
Use of SQL to Search for Data
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

12 questions from this quiz

Show

What does SQL stand for?

Structured Query Language

Which two SQL keywords are compulsory in every query?

SELECT and FROM

Which SQL keywords are optional in a query?

WHERE and ORDER BY

What does the SELECT keyword do in SQL?

Chooses which fields/columns to show

What does the asterisk (*) mean in SELECT * FROM Student?

Select all fields from the table

What does ORDER BY Surname DESC do?

Sorts surnames Z to A

If you don't specify ASC or DESC, what is the default sort order?

ASC (ascending)

What does the WHERE clause do in an SQL query?

Filters records by conditions

What does the OR operator do in a WHERE clause?

Matches one condition OR another

What is a primary key in a database table?

A unique identifier for each record

What is a foreign key?

A reference to another table's key

How do you specify which table a field comes from in multi-table queries?

TableName.FieldName

Explore AQA GCSE Computer Science Revision Notes by Topics

Explore AQA GCSE Computer Science Model Answers by Topics

Explore AQA GCSE Computer Science Flashcards by Topics

Explore AQA GCSE Computer Science Exam Questions by Topics

Join 100,000+ GCSE students studying Quizzes with us.

Select your subjects, and get access to A+ resources today.