General Questions on Structured Query Language (SQL) related Questions and Answers - Page 4

Question 31 : Table employee has 10 records. It has a non-NULL SALARY column which is also UNIQUE.
The SQL statement
SELECT COUNT(*) FROM employee WHERE SALARY > ALL (SELECT SALARY FROM EMPLOYEE);
prints
1. 10
2. 9
3. 5
4. 0
View Answer   Discuss with Members

Question 32 : Let the statement
SELECT column1 FROM myTable;
return 10 rows. The statement
SELECT ALL column1 FROM myTable;
will return
1. less than 10 rows
2. more than 10 rows
3. exactly 10 rows
4. None of these
View Answer   Discuss with Members

Question 35 : The SELECT statement SELECT 'Hi' FROM DUAL WHERE NULL = NULL;Outputs
1. Hi
2. FLASE
3. TRUE
4. Nothing
View Answer   Discuss with Members

Question 36 : 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 = 'g
1. Find the sailor IDs of all sailors who have reserved red boats but not green boats
2. Find the sailor IDs of at least one sailor who have reserved red boats but not green boats
3. Find the sailor Ids of atmost one sailor who have reserved red boats but not green boats
4. None of These
View Answer   Discuss with Members


View 31 - 40 of 65 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter