Past-paper question · 2016 October-November · Paper 12 · Q9(c)

Question 9(c) 2016 · October-November · Paper 12 · 6 marks

Original past-paper question for 9(C)
Original past-paper question for 9(C)
Reveal official mark-scheme answer Official mark-scheme answer for 9(C)

Official answer for Question 9

Part (c)

Part (c)

An example of a script is shown, but different syntax may be used.

✓
CREATE TABLE CLASS (
✓
ClassID VARCHAR(5),
✓
Description VARCHAR(30),
✓
StartDate DATE,
✓
ClassTime TIME,
✓
NoOfSessions INT,
✓
AdultsOnly BIT,
✓
PRIMARY KEY(ClassID)
✓
);
✓
Mark as follows:
✓
1 mark for CREATE TABLE CLASS and ();
✓
1 mark for PRIMARY KEY(ClassID)
✓
1 mark for both ClassID VARCHAR(5),and Description VARCHAR(30),
✓
1 mark for both StartDate DATE, and ClassTime TIME,
✓
1 mark for NoOfSessions INT,
✓
1 mark for AdultsOnly BIT,
[6]

Mark scheme 9608_w16_ms_12.pdf →

Show text version of question

Question 9

Part (c)

Question 9

A health club offers classes to its members. A member needs to book into each class in advance.

Part (c)

The CLASS table has primary key ClassID and stores the following data:

ClassID Description StartDate ClassTime NoOfSessions AdultsOnly

DAY01 Yoga beginners 12/01/2016 11:00 5 TRUE

EVE02 Yoga beginners 12/01/2016 19:00 5 FALSE

DAY16 Circuits 30/06/2016 10:30 4 FALSE

Write an SQL script to create the CLASS table.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...............................................................................................................................................[6]

effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.

To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge International Examinations Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cie.org.uk after the live examination series.

Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local Examinations Syndicate (UCLES), which is itself a department of the University of Cambridge.

Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Constructs

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9608_w16_qp_12.pdf

Keep practising this topic