WorksheetsCS IGCSE Database + SQL recap quiz
Total questions: 47
Worksheet time: 24mins
In a database, Multiple _________ can be created.
Tables
Documents
Primary Key
All of these
___________________ Key uniquely identifies each record in table.
Fields
Record
Row
Primary
In a Database, each row is called a _____________
Field
Data
Record
Table
In a Database, each column is called a _____________
Field
Data
Record
Table
This table has ___________ records.
2
4
5
6
This table has ___________ fields.
2
4
5
6
___________, ___________ & ___________ are fields.
S. No, Product Code & Description
1021, Beverages & Soft drinks, coffees, teas
Dairy Products, Beverages & Seafood.
All of these are fields.
Consider attributes ID, CITY, and NAME. Which one if this can be considered as a primary key?
Name
ID
City
All of these
Which one of the following attributes cannot be taken as a primary key?
ID
RegistrationNo
DepartmentID
Street
Database if the collection of information or group of facts in a structured way.
Maybe
No
Yes
Not Always
______________ datatype you'd select for entering "Address".
Number
Date
Text
Time
You have to enter Sam's DOB, What datatype would you use for this field.
Time
Date
Text
Number
Information corresponding to each field is called (a) .
______________ symbol indicates that a field is the Primary Key of the table.
All of these
What type of data stored in the Name field?
Date and time
Numeric
text
yes/no
What type of data is stored in the shoe size field?
Numeric
yes/no
alphanumeric
text
what data type is stored in Sports field?
text
numeric
yes/no
alphanumeric
What type of data is stored in Hair Colour field?
yes/no
alphanumeric
Data / time
text
This type of data can only have two values: TRUE or FALSE and YES or NO?
Alphanumeric/text
Logical Boolean
Date/Time
Numeric
This data type refers to data made up to letters and numbers symbols and spaces?
Numeric
Date and time
Alphanumeric/text
Currency
Name the part of this database.
(a)
Name the type of field used to hold unique data that is used to identify each record.
(a)
Which statement is used to extract data from a database?
Extract
Get
Open
Select
If you were wanting to filter data, which clause would you use?
Where
Order by
From
Select
Which word is missing from the following SQL statement?
Select * table_name
With
Where
From
And
What is the correct order of clauses in a SQL statement?
SELECT, FROM, ORDER BY, WHERE
SELECT, FROM, WHERE, ORDER BY
SELECT, WHERE, FROM, ORDER BY
WHERE, FROM, SELECT, ORDER BY
How do we select all rows for the "Designer" table?
SELECT * FROM Designer
SELECT [All] FROM Designer
SELECT Designer.*
SELECT FROM Designer
How would we script a SQL query to select "Description" from the Item table?
SELECT Item.Description
EXTRACT Description FROM Item
SELECT Item FROM Description
SELECT Description FROM Item
Which query would return only the fields DesignerID and Designer?
SELECT * FROM Designers
SELECT DesignerID, Name FROM Designers
SELECT DesignerID AND Designer FROM Designers
SELECT DesignerID, Designer FROM Designers
With SQL how can I return all items in the Item table sorted from the lowest priced to the highest priced?
SELECT * FROM Items ORDER BY Price ASCENDING
SELECT * FROM Items ORDER BY Price ASC
SELECT * FROM Items BY Price LOWEST TO HIGHEST
SELECT * FROM Items ORDER BY Price DESC
How would you display Chairs in the Items table that have a Price greater than £50.
SELECT * FROM Items WHERE Type = 'Chair' AND Price > 50
SELECT * FROM Items WHERE Type = 'Chair' OR Price < 100
SELECT * FROM Iterms WHERE Type = 'Chair' AND Price >= 50
SELECT * FROM Items WHERE Price > 50
What does SQL stands for?
Standard Query Language
Structured Query Language
Structured Query Link
Standard Query Link
