I have Table1:
id|name|city
-------------
1 | bat|nyc
2 | cat|del
2 | rat|bom
3 | mat|xyz
Table2
id|name|city
--------------
1 |bat|dsada
2 |cat|sadasd
3 |rat|sdasdas
2 |rat|asdas
I need a query to display rows where BOTH id and name are same among two tables in above example the query must return
i need a query to display the rows
1|bat|nyc
2|cat|del
from first table
Try to join both the table like as below