Estoy teniendo dificultades para hacer lo siguiente:SQL Server - INNER JOIN CON DISTINTO
select a.FirstName, a.LastName, v.District
from AddTbl a order by Firstname
inner join (select distinct LastName from
ValTbl v where a.LastName = v.LastName)
Quiero hacer una combinación en ValTbl pero sólo para valores distintos.
'NATURAL JOIN' es' sintaxis incorrecta 'en MSSQL 2008 R1 – itsho