0

私は現在このコードを持っています

SELECT JOB.JobID, A.adID, AR.ARNum
FROM dbo.vEvent AS E, dbo.[vAd] as A, dbo.[vAR] as AR, dbo.JOB_EVENT as JOB
INNER JOIN A ON A.eventID = E.eventID
INNER JOIN AR ON AR.eventID = A.eventID
INNER JOIN JOB ON JOB.EVENT_ID = E.eventID
WHERE year = '' AND season = '' AND month = ''

でも; SQlサーバーで実行すると、このエラーが発生します。

Msg 208, Level 16, State 1, Line 1
Invalid object name 'A'.

私の変数はすべて私には正しいように見えるので、私にはわかりません。

どんな助けでもいただければ幸いです。

4

1 に答える 1

5

あなたが欲しい

SELECT JOB.JobID, A.adID, AR.ARNum
FROM dbo.vEvent AS E
INNER JOIN dbo.[vAd] as A ON A.eventID = E.eventID
INNER JOIN dbo.[vAR] as AR ON AR.eventID = A.eventID
INNER JOIN dbo.JOB_EVENT as JOB ON JOB.EVENT_ID = E.eventID
WHERE year = '' AND season = '' AND month = ''
于 2012-07-18T13:56:12.063 に答える