Mark Tabor

Mark Tabor

  • 548
  • 2k
  • 460.3k

How to get related records from sql table

Aug 11 2017 2:08 AM
I have one table in which i have fields like below 

 
 ID1 ID1-Details ID2 ID2-Details
 1 ABC 8 GGG
 2 HH 3 GGG
 3 hhy 1 jjj
Now i want to get data like for ID1=1 and ID2=1 how i make a query to get the details of ID1=1 and ID2=1 as id1=1 is in first row and ID2=  1 is in third row 

Answers (3)