Skip to main content
Post Undeleted by Jack
added 23 characters in body
Source Link
Jack
  • 258
  • 2
  • 7
  • 15

Im not sure if I understood the question correctly.

 SELECT b.ID, a.ID FROM table_a a, table_b b WHERE a.ID = b.ID   AND b.ID = 1 

Im not sure if I understood the question correctly.

 SELECT b.ID, a.ID FROM table_a a, table_b b WHERE a.ID = b.ID   
 SELECT b.ID, a.ID FROM table_a a, table_b b WHERE a.ID = b.ID AND b.ID = 1 
Post Deleted by Jack
Source Link
Jack
  • 258
  • 2
  • 7
  • 15

Im not sure if I understood the question correctly.

 SELECT b.ID, a.ID FROM table_a a, table_b b WHERE a.ID = b.ID