With SQL, how do you select all the columns from a table named "Persons"?
GCSE Databases and SQL 2

Quiz
•
Computers
•
9th - 10th Grade
•
Hard

Konrad Meij
Used 4+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
FROM Persons SELECT*
SELECT all FROM Persons
SELECT * LIKE Persons
SELECT * FROM Persons
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which SQL statement which will display the registration numbers and make of all cars with 5 doors made in 2011 or after?
SELECT CarRegistration, Make FROM Cars LIKE Doors = 5 OR Year >= 2011
SELECT CarRegistration, Make FROM Cars WHERE Doors = 5 AND Year <= 2011
SELECT CarRegistration, Make FROM Cars WHERE Doors = 5 AND Year >= 2011
FROM CarRegistration, Make SELECT Cars WHERE Doors = 5 AND Year >= 2011
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write he missing code to an SQL query to find all teachers from the 'Teachers' table, whose surname begins with ‘B’ and whose title is ‘Mr’. Show all fields from the table.
SELECT*
FROM Teachers
WHERE
Surname LIKE 'B*' AND Title = 'Mr'
Surname LIKE 'B*' AND 'Mr'
Surname LIKE 'B*' Title = 'Mr'
Surname LIKE 'B*' OR Title = 'Mr'
4.
FILL IN THE BLANK QUESTION
2 mins • 3 pts
In the 'members' table, output the first and last name of everyone from Ipswich. Remember that the answer is case sensitive
NB: use single apostrophes (eg. 'Woodbridge')
NB: Put a space after a comma, but no space before the comma (eg. Gender, Town)
5.
FILL IN THE BLANK QUESTION
2 mins • 3 pts
In the 'Dogs' table, write an SQL statement to select all the names and breeds of female dogs.
NB: Use single apostrophes (eg. 'Black') with no spaces
NB: Put a space after a comma, but no space before the comma (eg. Gender, Town)
6.
FILL IN THE BLANK QUESTION
2 mins • 3 pts
In the 'Dogs' table, write an SQL statement to select all fields for dogs older than four (including those aged four).
7.
DRAG AND DROP QUESTION
1 min • 2 pts
In the 'members' table, output all the fields of everyone from Colchester or Ipswich. Remember that the answer is case sensitive.
(a) * (b) members (c) Town = 'Colchester' (d) Town = 'Ipswich'
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
TestOut CompTIA ITF Databases 20 Questions

Quiz
•
10th - 12th Grade
16 questions
Asas Sains Komputer Tingkatan 3 (Bab 4.1.5 - 4.1.9)

Quiz
•
9th - 11th Grade
15 questions
SQL Bronze Quiz

Quiz
•
8th - 10th Grade
20 questions
ULANGAN 1 BASIS DATA KELAS XII RPL

Quiz
•
1st - 10th Grade
21 questions
Mysql set 1

Quiz
•
9th - 12th Grade
15 questions
Chapter 9 - Databases (IGCSE Computer Science)

Quiz
•
9th - 12th Grade
15 questions
Bazy danych - SQL

Quiz
•
9th - 12th Grade
20 questions
Typy danych, polecenia bazy danych

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University