i have a table dir having directors
insert into dir values ('d1','mov1','us',3);
insert into dir values ('d1','mov1','ind',3);
insert into dir values ('d2','mov2','uk',4);
insert into dir values ('d2','mov3','ind',3);
want those only which are present in all three us ,ind and uk.
my code:
select directornaame from (
Select Distinct directornaame, country
From
dir
Where country = 'ind' or country='uk' or country='us'
) as s
Group By directornaame
Having count(directornaame)>=2
but it is should not give any result but it is giving both d1 and d2 in output window.
THanks!!