SQL MCQ Questions and answers – 04

1
Created on By admin

SQL MCQ Questions and answers - 04

1 / 10

1. Find the name of those cities with temperature and condition whose condition is either sunny or cloudy but temperature must be greater than 70oF.

 

2 / 10

2. Find all the tuples having temperature greater than 'Paris'.

 

3 / 10

3. Find all the cities with temperature, condition and humidity whose humidity is in the range of 63 to 79

 

4 / 10

4. Find the names of the countries whose condition is sunny.

 

5 / 10

5. Find the name of all cities with their temperature, humidity and countries.

 

6 / 10

6. Find the name of cities with all entries whose temperature is in the range of 71 and 89

 

7 / 10

7. Which of the following query finds the names of the sailors who have reserved at least one boat?

 

8 / 10

8. Which of the following query finds colors of boats reserved by "Dustin"?

 

9 / 10

9. What does the following query find?
(SELECT DISTINCT r.sid
FROM boats b, reserves r
WHERE b.bid = r.bid
AND b.color = 'red')
MINUS
(SELECT DISTINCT r.sid
FROM boats b, reserves r
WHERE b.bid = r.bid
AND b.color = 'green')

 

10 / 10

10. Which of the following query finds the name of the sailors who have reserved at least two boats?

 

Your score is

The average score is 40%

0%

Leave a Reply

Your email address will not be published. Required fields are marked *