現在我有兩個單獨的查詢來實現結果,但我想要一個查詢。我正在使用MS Access。幫助SQL查詢
tblJournal tblArticle tblStatus
---------- ---------- ---------
JournalID ArticleID ID
JournalTitle JournalCode StatusName
JournalCode StatusID
Cancelled(yes/no) Date
ArticleTitle
SignedDate
查詢應具有:
tblJournal.JournalTitle,
tblJournal.JournalCode,
Year([tblArticle].[Date]),
Count of articles per year which have a tblArticle.SignedDate,
Count of articles per year with tblStatus.StatusName 'Published' and tblJournal.Cancelled NO.
是什麼表狀態ID代表什麼?日誌ID或文章ID? – bonsvr
@bonsvr tblArticle.StatusID => tblStatus.ID – tutu