gradinumcp
IS-IT--Management
Hi! I have 2 tables Projects_Units and customers and I am doing a LEFT OUTER JOIN. The customers table has duplicate entries--like TOM SELLECK appears 5 times.
When I am displaying the records of the LEFT OUTER JOIN, it shows the duplicate entries--so TOM SELLECK still appears 5 times on my ASP Page.
How do i do something like DISTINCT or UNIQUE to it. Someone suggested i remove the LEFT OUTER JOIN and then have a "Unique" SELECT--any ideas what that means???
HERES the query:-
mysql="SELECT * From Project_Units left outer join lcdb.dbo.customers on Project_Units.Contract_Holder=lcdb.dbo.customers.customerid left outer join Project_Buildings on Project_Units.Building_ID=Project_Buildings.Building_ID WHERE Project_Units.ProjectID='"& request.cookies("EFC")("Condo") &"' and unit_number <> '0' order by Building_Number ,floor, Unit_number"
set Cust=cnn.execute(mysql)
When I am displaying the records of the LEFT OUTER JOIN, it shows the duplicate entries--so TOM SELLECK still appears 5 times on my ASP Page.
How do i do something like DISTINCT or UNIQUE to it. Someone suggested i remove the LEFT OUTER JOIN and then have a "Unique" SELECT--any ideas what that means???
HERES the query:-
mysql="SELECT * From Project_Units left outer join lcdb.dbo.customers on Project_Units.Contract_Holder=lcdb.dbo.customers.customerid left outer join Project_Buildings on Project_Units.Building_ID=Project_Buildings.Building_ID WHERE Project_Units.ProjectID='"& request.cookies("EFC")("Condo") &"' and unit_number <> '0' order by Building_Number ,floor, Unit_number"
set Cust=cnn.execute(mysql)