SQLScholar
Programmer
Hey all,
I have a bit of a bizaar query. Please dont try and ask the reasoning behind this - its just sorting out some errors.
If i am doing a select statement which joins a few tables and ends up with something like below
LenderAref LenderBref Client
3 2 bob
2 10 chris
10 4 dave
So basically what its doing is finding records in different tables where the lenderRef is different (should be the same).
Now what i want is to be able to get the name off the lender table. Now how in an SQL select query would i define that i want the lender name for lenderAref, and then lenderBref.
hope this makes sense.
D
----------------------------------------
There are 2 types of computer, the prototype and the obsolete!!
I have a bit of a bizaar query. Please dont try and ask the reasoning behind this - its just sorting out some errors.
If i am doing a select statement which joins a few tables and ends up with something like below
LenderAref LenderBref Client
3 2 bob
2 10 chris
10 4 dave
So basically what its doing is finding records in different tables where the lenderRef is different (should be the same).
Now what i want is to be able to get the name off the lender table. Now how in an SQL select query would i define that i want the lender name for lenderAref, and then lenderBref.
hope this makes sense.
D
----------------------------------------
There are 2 types of computer, the prototype and the obsolete!!