SQL
Cambridge IGCSE Computer Science (0478) · Unit 9: Databases · 10 flashcards
SQL is topic 9.2 in the Cambridge IGCSE Computer Science (0478) syllabus , positioned in Unit 9 — Databases , alongside Database concepts. In one line: SQL stands for Structured Query Language. It is a programming language designed for managing and manipulating data held in a relational database management system (RDBMS). Its primary purpose is to query, insert, update, and delete data.
This topic is examined in Paper 1 (computer systems theory) and Paper 2 (algorithms, programming and logic).
The deck below contains 10 flashcards — 4 definitions and 6 key concepts — covering the precise wording mark schemes reward. Use the 4 definition cards to lock down command-word answers (define, state), then move on to the concept and application cards to handle explain, describe and compare questions.
SQL and what is its primary purpose
SQL stands for Structured Query Language. It is a programming language designed for managing and manipulating data held in a relational database management system (RDBMS). Its primary purpose is to query, insert, update, and delete data.
Questions this SQL deck will help you answer
- › Explain the function of the `SELECT` statement in SQL, providing an example.
- › Describe the function of the `WHERE` clause in SQL and give an example of its usage.
- › How does the `ORDER BY` clause affect the output of an SQL query? Give an example.
- › What is the purpose of the `INSERT` statement in SQL? Give an example.
- › Describe the functionality of the `UPDATE` statement in SQL and give an example.
What is SQL and what is its primary purpose?
SQL stands for Structured Query Language. It is a programming language designed for managing and manipulating data held in a relational database management system (RDBMS). Its primary purpose is to query, insert, update, and delete data.
Explain the function of the `SELECT` statement in SQL, providing an example.
The `SELECT` statement retrieves data from one or more tables in a database.
What is the purpose of the `FROM` keyword in an SQL query?
The `FROM` keyword specifies the table(s) from which to retrieve data. It is essential as it tells the database where to find the data specified in the `SELECT` statement.
Describe the function of the `WHERE` clause in SQL and give an example of its usage.
The `WHERE` clause filters records based on a specified condition.
How does the `ORDER BY` clause affect the output of an SQL query? Give an example.
The `ORDER BY` clause sorts the result-set in ascending or descending order.
Explain the difference between the `AND` and `OR` operators in a `WHERE` clause.
The `AND` operator displays a record if all the conditions are true. The `OR` operator displays a record if any of the conditions are true. `AND` requires all conditions to be met, `OR` requires at least one.
What is the purpose of the `INSERT` statement in SQL? Give an example.
The `INSERT` statement adds new rows of data into a table.
Describe the functionality of the `UPDATE` statement in SQL and give an example.
The `UPDATE` statement modifies existing records in a table.
Explain how the `DELETE` statement is used in SQL and provide an example.
The `DELETE` statement removes existing records from a table.
What is the purpose of the `CREATE TABLE` statement in SQL?
The `CREATE TABLE` statement creates a new table in the database. It defines the table name and the structure of its columns (name, data type, constraints).
Key Questions: SQL
What is SQL and what is its primary purpose?
SQL stands for Structured Query Language. It is a programming language designed for managing and manipulating data held in a relational database management system (RDBMS). Its primary purpose is to query, insert, update, and delete data.
What is the purpose of the `FROM` keyword in an SQL query?
The `FROM` keyword specifies the table(s) from which to retrieve data. It is essential as it tells the database where to find the data specified in the `SELECT` statement.
Explain the difference between the `AND` and `OR` operators in a `WHERE` clause.
The `AND` operator displays a record if all the conditions are true. The `OR` operator displays a record if any of the conditions are true. `AND` requires all conditions to be met, `OR` requires at least one.
What is the purpose of the `CREATE TABLE` statement in SQL?
The `CREATE TABLE` statement creates a new table in the database. It defines the table name and the structure of its columns (name, data type, constraints).
Tips to avoid common mistakes in SQL
- ● For SQL statements in 9(c), memorize each piece: SELECT names the output fields, FROM specifies the data table, and WHERE filters the rows.
More topics in Unit 9 — Databases
SQL sits alongside these Computer Science decks in the same syllabus unit. Each uses the same spaced-repetition system, so progress in one informs the next.
Cambridge syllabus keywords to use in your answers
These are the official Cambridge 0478 terms tagged to this section. Mark schemes credit responses that use the exact term — weave them into your answers verbatim rather than paraphrasing.
Key terms covered in this SQL deck
Every term below is defined in the flashcards above. Use the list as a quick recall test before your exam — if you can't define one of these in your own words, flip back to that card.
How to study this SQL deck
Start in Study Mode, attempt each card before flipping, then rate Hard, Okay or Easy. Cards you rate Hard come back within a day; cards you rate Easy push out to weeks. Your progress is saved in your browser, so come back daily for 5–10 minute reviews until every card reads Mastered.
Study Mode
Space to flip • ←→ to navigate • Esc to close
You're on a roll!
You've viewed 10 topics today
Create a free account to unlock unlimited access to all revision notes, flashcards, and study materials.
You're all set!
Enjoy unlimited access to all study materials.
Something went wrong. Please try again.
What you'll get:
- Unlimited revision notes & flashcards
- Track your study progress
- No spam, just study updates