J
JeffC
I have two tables joined by a column named TestCaseNum. I
want to query for the latest test run in the child table
for a given TestCaseNum. I have the following query for
the child table that does this if I manually enter the
TestCaseNum value:
SELECT top 1 *
FROM TestRuns
WHERE TestRuns.TestCaseNum = [TestCaseNum?]
ORDER BY TestRuns.[Run #] DESC ;
But I can't figure out how to work this query into a query
that includes the parent table. I want to be able to
enter a parameter for the TestCaseFamily column that would
include many TestCaseNum values, and show the latest run
for each one.
Thanks in advance,
jeffc
want to query for the latest test run in the child table
for a given TestCaseNum. I have the following query for
the child table that does this if I manually enter the
TestCaseNum value:
SELECT top 1 *
FROM TestRuns
WHERE TestRuns.TestCaseNum = [TestCaseNum?]
ORDER BY TestRuns.[Run #] DESC ;
But I can't figure out how to work this query into a query
that includes the parent table. I want to be able to
enter a parameter for the TestCaseFamily column that would
include many TestCaseNum values, and show the latest run
for each one.
Thanks in advance,
jeffc