<quiz shuffle=none display=simple>
{Select the code which gives the name of countries beginning with U
|type="()"}
- SELECT name FROM bbc WHERE name BEGIN with C
- SELECT name FROM bbc WHERE name LIKE '%C'
- SELECT name FROM bbc WHERE name LIKE '%C%'
- SELECT name FROM bbc WHERE name LIKE U
+ SELECT name FROM bbc WHERE name LIKE 'U%'

{Select the code which shows just the population of United Kingdom?
|type="()"}
- SELECT name FROM bbc WHERE name Like 'United%'
- SELECT name FROM bbc WHERE population = 'United Kingdom'
- SELECT name, population FROM bbc WHERE name = 'United Kingdom'
+ SELECT population FROM bbc WHERE name = 'United Kingdom'
- SELECT population FROM bbc WHERE name = United Kingdom

{Select the answer which shows the problem with this SQL code:SELECT name FROM "bbc" WHERE population > '2000000'
|type="()"}
- Apostrophes should be used around 'bbc' instead of speech marks
- There are apostrophes surrounding '2000000'
+ There are speech marks surrounding "bbc"
- There are speech marks surrounding "bbc" and there is apostrophes surrounding '2000000'
- The use of a WHERE function is incorrect

{Select the result that would be obtained from the following code: SELECT name, population / 10 FROM bbc WHERE population < 10000

Table-A

Andorra

6400

Nauru

990

Table-B

Andorra

64000

Nauru

9900

Table-C

Nauru

99

Table-D

Nauru

990

Table-E

Nauru

9900

|type="()"}
- Table-A
- Table-B
- Table-C
+ Table-D
- Table-E

{Select the code which would reveal the name and population of countries in Europe, North America and South America
|type="()"}
- SELECT name FROM bbc WHERE region IN ('Europe', 'North America', 'South America')
+ SELECT name, population FROM bbc WHERE region IN ('Europe', 'North America', 'South America')
- SELECT name, population FROM bbc WHERE region IN (Europe North America South America)
- SELECT name, population FROM bbc WHERE region IS ('Europe', 'North America', 'South America')
- SELECT population FROM bbc WHERE region IN ('Europe', 'North America', 'South America')

{Select the code which would give two rows
|type="()"}
- SELECT name FROM bbc WHERE name = 'United Kingdom'
- SELECT name FROM bbc WHERE name = 'United Kingdom' AND name = 'Algeria'
- SELECT name FROM bbc WHERE name EITHER ('United Kingdom', 'Algeria')
+ SELECT name FROM bbc WHERE name IN ('United Kingdom', 'Algeria')
- SELECT name FROM WHERE name IS 'Scotland'