Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Community ▾
A
A
Quizzes
/
A student wants every member of the Green team and writes SELECT Name FROM Members WHERE Team = Green;. What is wrong?
Computer Science
Medium
High School (9–10)
Algorithms, Programming and Logic › Databases and SQL
IGCSE
Created by
StemPy Lab
A student wants every member of the Green team and writes
SELECT Name FROM Members WHERE Team = Green;
. What is wrong?
Green is text, so it must be in quotes: 'Green'
WHERE must come before FROM
Team must also be in the SELECT list
The = sign must be <>
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← The table Buses has the fields Route and Depot, and these 4 records: (B1, North), (B2, South), (B3, North), (B4, East). How many records does SELECT Route FROM Buses WHERE Depot <> 'North'; output?
The table Parcels has the fields ParcelID and Kg, and these 5 records: (X1, 11), (X2, 7), (X3, 15), (X4, 9), (X5, 21). A courier wants the light parcels, lightest first, and runs SELECT ParcelID, Kg FROM Parcels WHERE Kg < 15 ORDER BY Kg ASC;. Which output does she get? →
More on
Algorithms, Programming and Logic › Databases and SQL
Discussion (0)
Log in
to join the discussion.
Loading…
All questions on this topic →
Problems on this topic
A restaurant stores its staff in a table Staff…
Hard
A town library stores its readers in a table Readers…
Medium
A gym stores its members in a table Gym…
Easy
A school garden club records each plot in a table Plots: the water it needs each day in litres, its…
Hard
All problems on this topic →