This is for SQL Server 2012 Express. Please see the statements below - they are part of a view creation.
SELECT
PE.*, ZOTable.DOCNAME AS 'ZO_DOCNAME', SOR.DOCNAME AS 'SoR_DOCNAME'
FROM
dbo.TAXPARCEL_EQUALIZER AS PE,
dbo.ZONINGORDINANCE AS ZOTable,
dbo.SCHEDULEOFREGULATION AS SOR
LEFT JOIN
dbo.TAXPARCEL_EQUALIZER AS te1 ON ZOTable.UNIT = te1.UNIT
LEFT JOIN
dbo.TAXPARCEL_EQUALIZER AS te2 ON SOR.ZONECLASS = te2.ZONING1
LEFT JOIN
dbo.TAXPARCEL_EQUALIZER AS te3 ON SOR.ZONECLASS = te3.ZONING2
I am getting error
Multipart identifier cannot be bound
on ZOTable.UNIT
inside SQL Server Management Studio.
I have looked online but can't find any example to fix mine. If I were to remove the , dbo.SCHEDULEOFREGULATION AS SOR
then the error goes away. But then I am not sure how to bring that table into the view?
Thanks!