D
dbadmin
Please help. I am trying to build a query to return the top top remarks from
an inner join table within the following query:
SELECT tblMASTERINFO.[Work Request #], tblMASTERINFO.[Test Name],
tblMASTERINFO.SCHEDULEDSTARTCURRENT, tblMASTERINFO.SCHEDULEDENDCURRENT,
tblMASTERINFO.ActStart, tblMASTERINFO.ActEnd, tblMASTERINFO.TESTPHASE,
tblRemarks.Remark
FROM tblMASTERINFO INNER JOIN tblRemarks ON tblMASTERINFO.TMSSUBTESTNUMBER =
tblRemarks.TMSSUBTESTNUMBER
WHERE (((tblMASTERINFO.TESTPHASE) Like "Active" Or
(tblMASTERINFO.TESTPHASE)="Planning" Or
(tblMASTERINFO.TESTPHASE)="Reporting") AND ((tblMASTERINFO.TMSSUBTESTNUMBER)
Like "06-*"))
ORDER BY tblMASTERINFO.[Test Name];
I know I need to use "Top 2", but where and how do I keep the other fields
from duplicating, when I use the query for the report?
an inner join table within the following query:
SELECT tblMASTERINFO.[Work Request #], tblMASTERINFO.[Test Name],
tblMASTERINFO.SCHEDULEDSTARTCURRENT, tblMASTERINFO.SCHEDULEDENDCURRENT,
tblMASTERINFO.ActStart, tblMASTERINFO.ActEnd, tblMASTERINFO.TESTPHASE,
tblRemarks.Remark
FROM tblMASTERINFO INNER JOIN tblRemarks ON tblMASTERINFO.TMSSUBTESTNUMBER =
tblRemarks.TMSSUBTESTNUMBER
WHERE (((tblMASTERINFO.TESTPHASE) Like "Active" Or
(tblMASTERINFO.TESTPHASE)="Planning" Or
(tblMASTERINFO.TESTPHASE)="Reporting") AND ((tblMASTERINFO.TMSSUBTESTNUMBER)
Like "06-*"))
ORDER BY tblMASTERINFO.[Test Name];
I know I need to use "Top 2", but where and how do I keep the other fields
from duplicating, when I use the query for the report?