292 views
0 votes
0 votes

HI

Why it is necessary to assume ? why do we nned that line ?

1 Answer

Best answer
1 votes
1 votes

Option D would be correct. 

Now if the statement  " Each of the Employee makes sale to at least one customer " is removed then their might exist an employee who does not have made any sale (suppose E1) and as E1 has not made any sale it would not be present in SalesRepID (FK referring to Empid in Employee Table) in Customer Table.

Now if the above query is run on such case then E1 would be selected (Internal Query will return NULL for E1) along with other Valid Employee Names who have good Rating with all their customers even though E1 has not made any sale.   

selected by

Related questions

0 votes
0 votes
0 answers
1
kd..... asked Apr 30, 2019
689 views
Here why does the 5th query select * from employees natural join works_on where PID = 'X' AND PID='Y'; is not workingThe queries are The output are
0 votes
0 votes
2 answers
2
Mk Utkarsh asked Dec 2, 2018
1,036 views
Select Rating From professor P2 Where 5>=(Select count (*) From professor P3 Where P2.Rating <= P3.Rating);Can someone please explain the query?
0 votes
0 votes
1 answer
3
Shamim Ahmed asked Nov 12, 2018
417 views
In this question:-https://gateoverflow.in/8225/gate2015-1-27I am not understanding how the query is returning 2 .I think DISTINCT must be there to give the correct answer...