GATE 2024 Databases Rank Booster Quiz 40
Attempt now to get your rank among 87 students!
Question 1
Which of the following is return by the above SQL query?
Question 2
Question 3
Question 4
Consider the following SQL query:
SELECT Dept_name, avg_salary
FROM (SELECT Dept_name, avg (salary) as avg_salary
FROM instructor
GROUP by Dept_name)
WHERE avg_salary > 42000;
The number of tuple returned by the above SQL query is ________.
Question 5
S1: Select operation in SQL is equivalent to the projection operation in relational algebra, except that
select SQL contain duplicates.
S2: A SQL query can have a ‘having’ clause without containing ‘group by’ clause.
S3: Operator ‘between’ can be used between main query and the sub query.
S4: If two relations R and S are joined, then the non-matching tuples of both R and S are ignored in full outer join.
Which of the above statements are correct?
Question 6
Employee (emp-name, street, city)
Work (emp-name, company-name, salary)
Company (company-name, city)
Manages (emp-name, manager-name)
What does the following query return?
Select a.emp-name
From employee a, employee b, managers m
Where a.emp-name = m.emp-name and m.manager-name = b.emp-name
and a.street = b street and a.city = b.city;
Question 7
DEPENDENT (Eno, DFname, DLname, Age)
What is true about these queries?
Query 1:
Query 2:
- 87 attempts
- 0 upvotes
- 0 comments
Tags :
GATE & PSU CSDatabases