Posted by: virusno1 November 16, 2015
SQL statement help needed
Login in to Rate this Post:     0       ?        
lol, ok Then why are you joining a table which can not be joined? Now I know what's your problem is. There must be a table which has a mapping between your customer table and address table in your database. Find that table and above query
i.e
Select C.FirstName, C.LastName,A.City,A.State,A.Zipcode
From Customer C
join customeraddressBridge CAB
on CAB.CustomerID=C.CustomerID
join Address A
on A.AddressID=CAB.AddressID


You are completely missing key table which is a bridge or mapping table
Read Full Discussion Thread for this article