I have a table
ID NAME -------- 1 AAA 2 BBB 2 AAA 2 CCC 1 DDD 2 DDD
I need to display entries that are associated with both identifiers 1 and 2
NAME ---- AAA DDD
I use the below query -
Select Name from table1 where ID IN (1,2);
But he shows me -
NAME ----- AAA BBB CCC DDD
How can I change my request to solve this problem?
akhil source share