I have two tables and I want to get the data from both tables.
CustomerDetails
Id Customer1 Customer2
1 1 2
2 2 1
3 1 3
CustomerName
Id Name
1 a
2 b
3 c
output should be
Id Customer1 Customer2
1 a b
2 b a
3 a c
I tried with inner join but it only worked for one column and not for both.
How do i get this data from a sql query.
Please help me find this.
Thanks
ONclause withOR. what you tried ?