SO3229185

0

Please login or register to vote for this query.

(click on this box to dismiss)

Trying to combine implicit and explicit joins

Stack Overflow en español

Preguntas y respuestas para programadores y profesionales de la informática

-- SO3229185
-- Trying to combine implicit and explicit joins

CREATE TABLE #Period (
PeriodID INT NOT NULL,
PeriodQuarter INT NOT NULL,
PeriodYear INT NOT NULL
)

CREATE TABLE #Member (
Name VARCHAR(50) NOT NULL,
AuditTypeID INT NOT NULL
)

CREATE TABLE #Audits (
AuditID INT NOT NULL,
PeriodID INT NOT NULL
)

select  P.PeriodID,
        P.PeriodQuarter,
        P.PeriodYear,
        A.AuditId
from #Period P
LEFT JOIN #Audits A 
ON P.PeriodId = A.PeriodId

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results