Databases and SQL – A Level Computer Science (9618)

31 questions · page 1 of 3

0 / 0Answer a question to start your score.
Quick quiz (10)Saved 0
Advertisement
1
9618/11/M/J/26 · Question 4May/June 2026Paper 1118 marks
Loading question…
Question text

4
A shop allows customers to pay to borrow toys. The shop uses a database to record information
about the customers and the toys they have borrowed.
CUSTOMER(CustomerID, ContactFirstName, Phone)
TOY(ToyID, ToyName, CostPerDay)
TOY_INSTANCE(UniqueToyID, ToyID, Quality)
BORROW(BorrowID, CustomerID, UniqueToyID, StartDate, NumberDays)
(a) Complete the table by describing the relationship between each pair of tables. Include the
primary key(s) and foreign key(s) and how these create each relationship.
pair of tables
description of relationship
…
CUSTOMER
…
and BORROW
…
…
…
TOY_INSTANCE
…
and TOY
…
…
[4]
(b) Write a Structured Query Language (SQL) script to return the total number of days of all toys
borrowed by each customer. The customer ID and first name for each customer also need to
be returned.
The result needs to include a suitable field name for the total number of days.
…
…
…
…
…
…
… [4]
© Cambridge University Press & Assessment 2026
,
,
(c) The table BORROW needs amending to include an additional field.
(i)
The field will store whether the toy has been returned and will store either Yes or No.
Write an SQL script to include the additional field in the table BORROW.
…
…
… [2]
(ii)
The toy that was borrowed with the borrow ID A2226 has been returned.
Write an SQL script to amend the record and store that the toy has been returned.
…
…
…

2
9618/12/M/J/26 · Question 3May/June 2026Paper 1216 marks
Loading question…
Question text

3
A computer game developer stores data about a computer game in a database. The database
has three entities:
•
the users, who are called players
•
the characters that users can create
•
the groups that users can create and allow characters to join.
(a) Describe the relationships between the three entities.
…
…
…
… [2]
(b) The database is created with four tables:
PLAYER(PlayerID, PlayerName, DateJoined)
CHARACTER(CharacterID, CharacterName, DateCreated, Level,
NumberOfPoints, PlayerID)
GROUP(GroupID, GroupName, Category)
CHARACTER_GROUP(CharacterGroupID, CharacterID, GroupID,
DateJoinedGroup)
Sample data for the table CHARACTER is given:
CharacterID
CharacterName
DateCreated
Level
NumberOfPoints
PlayerID
00123
Crystal
05/05/2025
5
35687
85AD
00124
Diamond
06/06/2025
4
21055
69CD
00125
Ruby
07/10/2025
1
1002
85AD
© Cambridge University Press & Assessment 2026
(i)
The given Structured Query Language (SQL) script is written to define the
table CHARACTER.
01
CREATE TABLE CHARACTER(
02
CharacterID INT,
03
CharacterName VARCHAR,
04
DateCreated DATE,
05
TheLevel INT,
06
NumberOfPoints INT,
07
PlayerID VARCHAR,
08
PRIMARY KEY CharacterID,
09
FOREIGN KEY(PlayerID)
10
);
The SQL script contains four errors.
Give the line number of each error and the corrected line.
error line 1 …
corrected line …
error line 2 …
corrected line …
error line 3 …
corrected line …
error line 4 …
corrected line …
[4]
(ii)
Write an SQL script to return each player’s name and the number of characters each
player has created.
The result needs to include a suitable field name for the number of characters.
Order the results in descending order of player ID.
…
…
…
…
…
… [5]
© Cambridge University Press & Assessment 2026
(c) Complete the description of database key terms by writing the missing words.
The … stores data about the data in the database. The table
names, field names and relationships will be stored. Two other examples of data that will be
stored are …

3
9618/13/M/J/26 · Question 4May/June 2026Paper 1317 marks
Loading question…
Question text

4
A database needs designing for a school library.
The library stores data about books including the author, title, category and number of pages.
The library will also store data about the students and the books they have borrowed. The data
needs to include the student’s name and student’s class.
Books are borrowed for 14 days. A book is late if it has not been returned within the 14 days. The
database needs to store whether the book is late, or not late.
(a) Create a 3-table design for the library database normalised to Third Normal Form (3NF).
Give your table design in the format:
TableName(Field1, Field2, Field3, …)
A primary key is underlined with a solid line.
A foreign key is underlined with a broken line.
table 1 …
…
…
table 2 …
…
…
table 3 …
…
…
[6]
(b) Explain the reasons why the library database should enforce referential integrity.
…
…
…
… [2]
© Cambridge University Press & Assessment 2026
,
,
© Cambridge University Press & Assessment 2026
,
,
(c) The school is also creating a database to store data about the departments, the staff and
classes in the school. The database is called SCHOOLDATA. The database has four tables:
STAFF(StaffID, FirstName, FamilyName, DepartmentID)
DEPARTMENT(DepartmentID, DepartmentName, DepartmentLeader)
CLASS(ClassID, YearGroup, SubjectCode)
SUBJECT(SubjectCode, SubjectName, DepartmentID)
(i)
The table shows some sample data for SUBJECT.
SubjectCode
SubjectName
DepartmentID
CS1
Computer Science IGCSE
ITCS
CS2
Computer Science IAS-level
ITCS
MA3
Mathematics IGCSE
MTS
ME4
Media IGCSE
ITCS
The Structured Query Language (SQL) scripts to create the database and the table
SUBJECT are shown.
01
CREATE DATA BASE SCHOOLDATA;
02
CREATE TABLE SUBJECT(
03
SubjectCode VARCHAR NONULL,
04
SubjectName VARCHAR
05
DepartmentID VARCHAR,
06
PRIMARY KEY (SubjectCode),
07
FOREIGN KEY (DepartmentID) REFERENCES (DepartmentID)
08
);
The SQL scripts contain four errors.
Give the line number of each error and the corrected line.
error line 1 …
corrected line …

Advertisement
4
9618/11/O/N/25 · Question 2Oct/Nov 2025Paper 1113 marks
Loading question…
Question text

2
A relational database, WORKEXPERIENCE, stores data about students and the companies where
they complete work experience.
Students can complete multiple work experience placements but can only complete one placement
at a time.
Students can complete more than one placement at the same company.
Part of the database is shown:
STUDENT(StudentID, FirstName, TelephoneNumber, UniversityName)
PLACEMENT( PlacementID, StudentID, CompanyID, StartDate, EndDate,
Complete)
COMPANY(CompanyID, CompanyName, MaxStudentsPerPlacement)
(a) Complete the entity-relationship (E-R) diagram for the database WORKEXPERIENCE.
STUDENT
PLACEMENT
COMPANY
[2]
(b) Explain why the database WORKEXPERIENCE is in Third Normal Form (3NF).
…
…
…
… [2]
ĬÍĊ®Ġ´íÈõÏĪÅĊàû·Ā×
,
,
(c) Some example data from the PLACEMENT table is shown:
PlacementID
StudentID
CompanyID
StartDate
EndDate
Complete
PC001
LDEA01
MSCM
01/01/2023
12/07/2023
TRUE
PC002
LDEA01
MSCM
01/04/2024
08/05/2024
FALSE
PC003
ALAU02
NEAM
09/03/2020
10/03/2021
FALSE
PC004
LOLI75
GOUZ
07/06/2018
11/09/2018
TRUE
(i)
Write a Structured Query Language (SQL) script to delete all placements that have been
completed.
…
…
…
… [2]
(ii)
Write an SQL script to return the total number of placements completed by the student
with ID LDEA01 at the company with ID NEAM. The total should be given an appropriate
name.
…
…
…
…
…
… [4]
ĬÏĊ®Ġ´íÈõÏĪÅĊàù·Ā×
,
,
(d) The database tables are repeated here:
STUDENT(StudentID, FirstName, TelephoneNumber, UniversityName)
PLACEMENT( PlacementID, StudentID, CompanyID, StartDate, EndDate,
Complete)
COMPANY(CompanyID, CompanyName, MaxStudentsPerPlacement)
Explain what is meant by referential integrity, and how it applies to this database.
…
…
…

5
9618/12/O/N/25 · Question 4Oct/Nov 2025Paper 1210 marks
Loading question…
Question text

4
A relational database, SHIPPING, stores data about the ships in a company and the containers
that are carried on the ships.
The database has the following tables:
CONTAINER(ContainerID, Type, Weight, OwnerName, ShipID)
SHIP(ShipID, Type, Capacity, ShipName)
(a) Describe the relationship between the two tables. Refer to the primary and foreign keys in
your answer.
…
…
…
… [2]
(b) The table CONTAINER needs an additional field to store the data for the last inspection date.
Write a Structured Query Language (SQL) script to add one field to the table CONTAINER to
store the date of last inspection of the container, for example 08/07/2019.
…
…
…
… [2]
(c) Write an SQL script to return the number of containers stored in the database for the ship with
the name Caledonia.
…
…
…
…
…
… [4]
ĬÑĊ®Ġ´íÈõÏĪÅĊÞü¶þ×
,
,
(d) Describe the purpose of a developer interface in a Database Management System (DBMS).
…
…
…
… [2]
ĬÓĊ®Ġ´íÈõÏĪÅĊÞú¶þ×

6
9618/13/O/N/25 · Question 5Oct/Nov 2025Paper 1316 marks
Loading question…
Question text

5
A company creates a relational database to store data about its customers.
The database, REVIEWS, stores data about the customers, products, complaints and staff.
The database has four tables:
CUSTOMER(CustomerID, CustomerFirstName, CustomerLastName, CustomerEmail)
PRODUCT(ProductID, ProductName, ProductDetail, Price, Rating)
COMPLAINT(ComplaintID, ProductID, CustomerID, ComplaintDetails, StaffID)
STAFF(StaffID, StaffFirstName, StaffLastName, Department, RemoteWorker)
(a) Complete the entity‑relationship (E‑R) diagram for the database REVIEWS.
CUSTOMER
PRODUCT
COMPLAINT
STAFF
[3]
ĬÑĊ®Ġ´íÈõÏĪÅĊÝùµþ×
,
,
(b) Some example data from the STAFF table is shown.
StaffID
StaffFirstName
StaffLastName
Department
RemoteWorker
1
Ralph
Jura
E
Yes
2
Luca
Emcee
A
Yes
3
Darwin
Acula
F
No
Write a Structured Query Language (SQL) script to define the table STAFF.
…
…
…
…
…
…
…
…
…
…
…
… [4]
(c) Products are given a rating between 1 and 10 inclusive.
Write an SQL script to return only the ProductID, ProductName and ComplaintDetails
for all products with a rating of 5 or less. The results need to be displayed in descending order
of rating.
…
…
…
…
…
…
…
…

7
9618/11/M/J/25 · Question 5May/June 2025Paper 1113 marks
Loading question…
Question text

5
A company builds and sells furniture to customers. The company stores data about customers,
their payment cards and their furniture orders in a database.
The database, FURNITURE, has the following tables:
CUSTOMER(CustomerID, Name, Phone)
CUSTOMER_CARD_DATA(CardID, CustomerID, CardType, CardNumber, EndDate)
ORDER(OrderID, CustomerID, TotalCost, Paid, OrderDate, Complete)
ORDER_ITEM(OrderItemID, OrderID, Type, Height, Width, Depth, Details)
The primary keys are underlined in each table.
The attribute Complete in the table ORDER stores the Boolean value TRUE if the order has been
built and FALSE if the order has not been built.
(a) Complete the entity‑relationship (E‑R) diagram for the database.
CUSTOMER
CUSTOMER_CARD_DATA
ORDER
ORDER_ITEM
[3]
(b) Identify one attribute in the table CUSTOMER_CARD_DATA that could be a candidate key.
… [1]
(c) Identify two tables in the database that contain one or more foreign keys.
Give one attribute that is a foreign key in each table.
Table
Foreign key
1
2
[2]
ĬÙĊ®Ġ´íÈõÏĪÅĊÞûµĀ×
,
,
(d) Explain the reasons why the data in the table ORDER_ITEM cannot be stored in the table
ORDER
…
…
…
…
…
… [3]
(e) Write an Structured Query Language (SQL) script to output the customer ID, the customer’s
name and the total cost of the customer’s orders that have not been paid.
The output of the total cost must have an appropriate title.
…
…
…
…
…
…
…
… [4]
ĬÛĊ®Ġ´íÈõÏĪÅĊÞùµĀ×

8
9618/12/M/J/25 · Question 5May/June 2025Paper 1216 marks
Loading question…
Question text

5
An online game has a database that stores data about users and the characters each user
creates in the game. Each user can create multiple characters and purchase multiple items for
each character.
The normalised database has the following design:
USER(Username, Password, DateOfBirth)
CHARACTER(CharacterName, CharacterID, Username, Level, Money)
ITEM(ItemName, MinimumLevel, Cost)
CHARACTER_ITEM(CharacterID, ItemName)
(a) Explain the purpose of the table CHARACTER_ITEM in the database.
…
…
…
… [2]
(b) Underline the attribute, or attributes, that form the primary key in each of the tables.
USER(Username, Password, DateOfBirth)
CHARACTER(CharacterName, CharacterID, Username, Level, Money)
ITEM(ItemName, MinimumLevel, Cost)
CHARACTER_ITEM(CharacterID, ItemName)
[2]
ĬÑĊ®Ġ´íÈõÏĪÅĊàúµĀ×
,
,
(c) A Database Management System (DBMS) provides data security.
(i)
Identify two methods the DBMS can use to protect the data in the table USER from
unauthorised access.
Explain how each method protects the data.
Method 1 …
Explanation …
…
…
Method 2 …
Explanation …
…
…
[4]
(ii)
The DBMS also supports data integrity.
Give two ways that a DBMS can support data integrity.
1 …
…
2 …
…
[2]
ĬÓĊ®Ġ´íÈõÏĪÅĊàüµĀ×
,
,
(d) (i)
Write a Structured Query Language (SQL) script to count the number of items purchased
by the user with the username "KAT123".
…
…
…
…

Advertisement
9
9618/13/M/J/25 · Question 6May/June 2025Paper 1318 marks
Loading question…
Question text

6
A shop sells pens to customers. Customers place an order with the shop and collect the items the
next day. The shop uses a database to store the information about the orders.
The database contains the following tables:
CUSTOMER(CustomerID, CustomerName, Email)
ORDER(OrderID, CustomerID, Date, Collected)
ORDER_PRODUCT(OrderID, ProductID, Quantity)
PRODUCT(ProductID, ProductName, QuantityInBox, Cost, SupplierID)
SUPPLIER(SupplierID, SupplierName, SupplierEmail)
The primary keys are underlined.
(a) Complete the entity-relationship (E-R) diagram for the database.
CUSTOMER
ORDER
SUPPLIER
ORDER_PRODUCT
PRODUCT
[4]
ĬÕĊ®Ġ´íÈõÏĪÅĊßú¶Ă×
,
,
(b) A new product needs to be entered into the database. The product has the ID 002323, the
product name ‘Blue ball point 2mm’, there are 50 in a box, the product costs $5.00 and the
supplier has the ID SFX223.
Write a Structured Query Language (SQL) script to enter the new product into the table
PRODUCT.
…
…
…
…
…
…
…
… [4]
(c) The attribute Collected in the table ORDER stores the Boolean value TRUE if the order has
been collected and FALSE if the order has not been collected.
Write an SQL script to return the customer name for each customer that has orders they
have not collected. Include the number of orders each customer has not collected with an
appropriate title.
An example output might be:
CustomerName
NotCollected
Jack Wright
2
Lin Cho
1
Santaya Yui
1
…
…
…
…
…
…
…
… [4]
Ĭ×Ċ®Ġ´íÈõÏĪÅĊßü¶Ă×
,
,
(d) The shop uses a Database Management System (DBMS).
(i)
One feature provided by a DBMS is a data dictionary.
The data dictionary stores the attribute names, table names, foreign keys a

10
9618/11/O/N/24 · Question 2Oct/Nov 2024Paper 1117 marks
Loading question…
Question text

2
A shop repairs electronic devices, for example mobile phones and tablet computers. The shop
owner stores the data about the repairs using a file-based approach.
(a) Give one limitation of using a file-based approach to store the data and explain how a
relational database addresses this limitation.
Limitation …
…
Explanation …
…
…
…
[3]
(b) The shop owner creates a relational database called FIXIT.
The database stores data about the customers and the devices for repair.
Some devices need new parts that are ordered from suppliers.
The database FIXIT is designed to include the following tables:
PART(PartID, Description, Price, SupplierID)
CUSTOMER(CustomerID, FirstName, LastName, ContactNumber)
REPAIR(RepairNumber, StartDate, EndDate, CustomerID, Device)
REPAIR_PART(PartID, RepairNumber, Quantity)
(i)
Complete the entity-relationship (E-R) diagram for the given tables.
REPAIR_PART
PART
REPAIR
CUSTOMER
[3]
ĬÍĊ®Ġ´íÈõÏĪÅĊàú·Ā×
,
,
(ii)
The table shows sample data for the table REPAIR_PART.
PartID
RepairNumber
Quantity
ACD128SA
0022
3
PPOR543DWW
0022
1
TR453
0023
1
PPOR543DWW
0023
2
WED5
0024
5
Write a Structured Query Language (SQL) script to define the table REPAIR_PART.
Include constraints (restrictions) on the data that can be entered into each field where
appropriate.
…
…
…
…
…
…
…
…
…
… [5]
ĬÏĊ®Ġ´íÈõÏĪÅĊàü·Ā×
,
,
(iii)
Suppliers send invoices to the company for the parts that are used. A new table,
INVOICE, stores the data about each invoice and whether it has been paid or not.
The design for the table INVOICE is shown:
INVOICE(InvoiceID, SupplierID, AmountDue, Paid, DatePaid)
The table shows sample data for the table INVOICE.
InvoiceID
SupplierID
AmountDue
Paid
DatePaid
000001
JK675
22.50
TRUE
01/01/2024
000002
WR443
358

11
9618/12/O/N/24 · Question 6Oct/Nov 2024Paper 1212 marks
Loading question…
Question text

6
A company uses a relational database to store data about its customers, employees and the
individual repair jobs that customers have booked.
(a) Explain the benefits of using a relational database instead of a file-based approach.
…
…
…
…
…
… [3]
(b) The company decides which employees will work on each repair job. An employee can log
into the database to access information about their repair jobs.
The database is normalised and includes these tables:
•
CUSTOMER stores personal data about each customer
•
EMPLOYEE stores personal data about each employee
•
LOGIN_DATA stores the username and password for each employee
•
JOB stores the data about each repair job
•
JOB_EMPLOYEE stores the employees that are working on each repair job.
(i)
Identify each relationship between the database tables and explain how each relationship
can be implemented in the normalised database.
…
…
…
…
…
…
…
…
…
…
…
… [6]
ĬÑĊ®Ġ´íÈõÏĪÅĊàùµĀ×
,
,
(ii)
The database also has the table INVOICE that stores data about each invoice that is
sent to a customer.
Example data from the table INVOICE is given.
InvoiceID
DateSent
Amount
Paid
JobID
29262
12/12/2023
105.20
Y
221
26765
11/11/2023
200.00
Y
315
13290
02/01/2024
50.00
Y
315
34090
05/02/2024
25.95
N
569
Write a Structured Query Language (SQL) script to return the total amount of all the
invoices sent in the year 2023 that have been paid.
…

12
9618/13/O/N/24 · Question 4Oct/Nov 2024Paper 1319 marks
Loading question…
Question text

4
A company makes ice cream and sells it to shops.
The ice cream is made in batches: a large quantity of one type and flavour of ice cream that is
then split into smaller quantities for sale.
The company’s owner has designed a relational database, ICECREAM, to store data about their
ice cream and customers.
Some of the tables in the database are given. The database is not normalised.
BATCH(BatchID, Type, Flavour, Size, SellingPrice, EndDate)
CUSTOMER(CustomerID, CompanyName, EmailAddress, TelephoneNumber)
SALE(SaleID, BatchID, CustomerID, Quantity, Date)
(a) Identify two foreign keys in the table SALE and the table that each foreign key references.
Foreign key 1 …
Table name 1 …
Foreign key 2 …
Table name 2 …
[2]
(b) Write an SQL script to return the total quantity of ice cream sold to the customer with the ID of
0034E in the year 2023.
…
…
…
…
…
… [3]
Ĭ×Ċ®Ġ´íÈõÏĪÅĊàû¸Ā×
,
,
(c) The table definition for BATCH is repeated here:
BATCH(BatchID, Type, Flavour, Size, SellingPrice, EndDate)
Sample data for the table BATCH is given:
BatchID
Type
Flavour
Size
SellingPrice
EndDate
KlV12
Plain
Vanilla
1
2.20
12/12/2024
RlC14
Plain
Chocolate
0.5
1.80
12/12/2024
TYL1
Non-dairy
Lemon
0.5
2.10
01/02/2025
FYV2
Non-dairy
Vanilla
0.25
1.50
02/02/2025
BIV13
Plain
Vanilla
1
2.20
02/02/2024
(i)
Write an SQL script to define the table BATCH.
Include constraints (restrictions) on the data that can be entered into each field where
appropriate.
…
…
…
…
…
…
…
…
…

13
9618/11/M/J/24 · Question 6May/June 2024Paper 1115 marks
Loading question…
Question text

6
A company is developing a website that will allow users to create an account and then play a quiz
every day. The data about the users and the quizzes are stored in a database.
A user must select a unique username and enter a valid email address to create an account. All
users must be over the age of 16. A new quiz is given to the users every day. Each quiz is stored
in its own text file.
The database stores the filename of each quiz and the date it can be played. The user gets a
score for each quiz they complete, which is stored in the database. The scores are used to give
each user a rating, for example Gold.
(a) Create a 3-table design for this database normalised to Third Normal Form (3NF).
Give your table design in the format:
TableName(PrimaryKey, Field1, Field2, …)
…
…
…
…
…
…
…
…
…
… [6]
(b) The company is using a Database Management System (DBMS) to set up the database.
Describe what is meant by the following DBMS features:
Data dictionary …
…
…
…
Logical schema …
…
…
…
[4]
(c) The company has another database, FARMING, for a different game.
The database FARMING has a table named EVENT which is shown with some sample data.
PlayerID
EventID
Category
Points
000123
3
Build
100
000124
1
Grow
36
000123
4
Grow
22
000123
7
Create
158
000125
3
Grow
85
000125
4
Build
69
The database FARMING has a second table created named PLAYER that has the primary
(i)
key PlayerID.
The field P

Advertisement
14
9618/12/M/J/24 · Question 4May/June 2024Paper 1211 marks
Loading question…
Question text

4
An assessment board wants to store the marks students achieved in exams in a database named
RECORDS.
Part of the database design includes these two tables:
EXAM(ExamID, Subject, Level, TotalMarks)
EXAM_QUESTION(ExamQuestionID, ExamID, QuestionNumber, Question, MaxMark)
(a) Identify the relationship between EXAM and EXAM_QUESTION.
…
… [1]
(b) Sample data for the table EXAM is shown:
ExamID
Subject
Level
TotalMarks
00956124
Computer Science 2
75
00956125
Computer Science 3
120
00956126
Mathematics
2
100
00956127
Mathematics
3
150
00956128
Physics
2
70
00956129
Physics
3
80
Write a Structured Query Language (SQL) script to define the table EXAM.
…
…
…
…
…
… [3]
(c) The table EXAM_QUESTION has been created but the foreign key has not been linked.
Write an SQL script to update EXAM_QUESTION and link the foreign key to EXAM.
…
…
…
… [2]
(d) The database also needs to store data about the students, the exams the students have
taken and the marks the students achieved in each question of each exam.
Describe the additional tables that will need to be included in the database and explain how
all the tables in the database will be linked.
…
…
…
…
…
…
…
…

15
9618/13/M/J/24 · Question 4May/June 2024Paper 1314 marks
Loading question…
Question text

4
A theatre wants to use a database to store data about the shows that are scheduled, their
customers and the seats that the customers have booked.
In the theatre:
•
Each show can take place on multiple dates.
•
Some dates can have more than one performance.
•
There are multiple rows of seats.
•
Each seat can be individually booked by its row letter and seat number, for example row E
seat 2.
Part of the database design includes these tables:
SHOW(ShowID, Title, Duration)
SEAT(SeatID, RowLetter, SeatNumber)
PERFORMANCE(PerformanceID, ShowID, ShowDate, StartTime)
(a) Identify the relationship between the tables PERFORMANCE and SHOW.
…
… [1]
(b) Sample data for the table PERFORMANCE is shown:
PerformanceID
ShowID
ShowDate
StartTime
0001
MK12
5/5/2025
13:00
0002
MK12
5/5/2025
19:30
0003
MK12
6/5/2025
19:00
0004
OP3
7/5/2025
18:30
0005
OP3
8/5/2025
18:30
0006
OP3
9/5/2025
13:00
Write a Structured Query Language (SQL) script to define the table PERFORMANCE.
…
…
…
…
…
…
…
…
… [4]
,
,
(c) Write an SQL script to return the number of times each show is scheduled. For example, in
the sample data in part (b), the show MK12 is scheduled three times.
The result needs to include the show name and a suitable field name for the number of times
it is scheduled.
…
…
…
…
…
…
…
…

Advertisement