Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2014 Set 3
Questions

Q54

MCQ2 marks, −0.67DatabasesEasy

Consider the following relational schema: employee (empId,empName,empDept) customer (custId,custName,salesRepId,rating) salesRepId is a foreign key referring to empId of the employee relation. Assume that each employee makes a sale to at least one customer. What does the following query return?

SELECT empName FROM employee E
WHERE NOT EXISTS (SELECT custId
    FROM customer C
    WHERE C.salesRepId = E.empId
      AND C.rating <> 'GOOD');
Sign in to save attempts.

The solution is hidden while you attempt this question. It opens once you check or show the answer.