View Single Post
Old 22-Oct-2007, 12:27 AM   #2 (permalink)
Anilrgowda
Administrator
 
Anilrgowda's Avatar

Posts: 18,715
Join Date: Jan 2006
Rep Power: 10 Anilrgowda is on a distinguished road

IM:
Default Re: SQL query to join three tables

SELECT Distinct *
from Customer_Details
Left Outer join EMAS
on Customer_Details.street_name = EMAS.street_name
Left Outer join work_orders
on Customer_Details.ID = work_orders.customer_ID
where Proceed_Retrofit = 'yes'


what is street name?
i gues this is where the "duplicates" arise...
do you not have a proper key to this table..?


------------------


Anilrgowda is offline   Reply With Quote