SELECT
Event.Id, Event.Title, Event.StartDateTime, Event.DeadlineDate,
[File].ShortFileName, People.Initials
FROM
People
INNER JOIN
People2Event ON People.Id = People2Event.PeopleId
RIGHT OUTER JOIN
[File]
INNER JOIN
File2Event ON [File].Id = File2Event.FileId
RIGHT OUTER JOIN
Event ON File2Event.EventId = Event.Id ON People2Event.EventId = Event.Id
我有这个声明它可以打印所有记录。下面不起作用,它与 where 函数的语句相同。有谁知道如何解决?
SELECT
Event.Id, Event.Title, Event.StartDateTime, Event.DeadlineDate,
[File].ShortFileName, People.Initials
FROM
People
INNER JOIN
People2Event ON People.Id = People2Event.PeopleId
RIGHT OUTER JOIN
[File]
INNER JOIN
File2Event ON [File].Id = File2Event.FileId
RIGHT OUTER JOIN
Event ON File2Event.EventId = Event.Id ON People2Event.EventId = Event.Id
WHERE
Event.ID = 8888