pda4me
asked on
MySQL SQL Syntax question multiple table query
I have two tables 'Residential' and 'property_coordinates' that feature both feature a sMLSNumber field and the Residential table has a sSubdivision field. I am trying to select all data where the sSubdivision equals Pines in table Residential and the sMLSNumber matches in both tables. What am I doing wrong? Can someone edit my syntax to work properly?
SELECT * FROM Residential, property_coordinates
WHERE sSubdivision='Pines'
AND sMLSNumber=sMLSNumber"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Is there a performance increase in one versus the other?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
ASKER
#1052 - Column 'sMLSNumber' in where clause is ambiguous