0% found this document useful (0 votes)
72 views

GCSE Computer Science Questions On Relational Databases and SQL

Uploaded by

skilzababy
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views

GCSE Computer Science Questions On Relational Databases and SQL

Uploaded by

skilzababy
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

GCSE Computer Science Questions on Relational Databases and SQL

Flat File and Relational Databases (8 Marks)

1. Define a flat file database. (1 Mark)


2. Explain one advantage of using a relational database over a flat file database. (2
Marks)
3. What is a primary key? (1 Mark)
4. Why is it important to have a primary key in a database table? (2 Marks)
5. Describe what a foreign key is in a relational database. (2 Marks)

Questions Based on the Database (5 Marks)

1. How many students are enrolled in the Science course? (1 Mark)


2. What is the CourseName for CourseID 101? (1 Mark)
3. Which student has StudentID 3? (1 Mark)
4. List the FirstName and LastName of all students enrolled in the English course. (2
Marks)

SQL Questions (12 Marks)

1. Write an SQL query to retrieve all records from the Students table. (2 Marks)
2. Write an SQL query to add a new student to the Students table. (2 Marks)
3. Write an SQL query to update the CourseID for StudentID 2 to 103. (2 Marks)
4. Write an SQL query to delete the student with StudentID 6 from the Students table. (2
Marks)
5. Write an SQL query to retrieve the names of students enrolled in the Mathematics
course. (4 Marks)

You might also like