GATE 2022: Database Management system Quiz-4
Attempt now to get your rank among 361 students!
Question 1
Question 2
Identify the capabilities of SELECT statement.
- Projection
- Selection
- Data Control
- Transaction
Question 3
Sailors (sid: integer, sname: string, rating: integer, age: real)
Boats (bid: integer, bname: string, color: string)
Reserves (sid: integer, bid: integer, day: date)
Consider the Following Statements:
S1:SELECT S.sname
FROM Sailors S
WHERE NOT EXISTS (SELECT *
FROM Sailors S2
WHERE S2.age < 21 AND S.rating <= S2.rating )
S2: SELECT S.sname
FROM Sailors S
WHERE S.rating > ANY (SELECT S2.rating
FROM Sailors S2
WHERE S2.age < 21 )
Which of the following is true regarding S1 and S2?
Question 4
Question 5
Employee
Teaches
Select *
from Employee
Where exists( select count(*)) from teaches
where Cname = 'CO'
Question 6
Now consider the following query-
Select name from student where P>80 and M<50;
Number of Output after executing above query will be:
- 361 attempts
- 1 upvote
- 0 comments
Tags :
GATE & PSU CSDatabases