Hi,
I am looking for a single result from this query. I need the ONE record with the smallest date.
My table looks something like this...
Project SYSDATE SYSComp
ABC123 1/1/2008 1
ABC123 2/1/2008 0
And here is my query...
This query unfortunately outputs both records.
Thanks very much in advance for any help.
Scott
I am looking for a single result from this query. I need the ONE record with the smallest date.
My table looks something like this...
Project SYSDATE SYSComp
ABC123 1/1/2008 1
ABC123 2/1/2008 0
And here is my query...
Code:
SELECT Project, MIN(SYSDate), SYSComp
FROM dbo.Activity
GROUP BY Code, SYSComp, client, Project
HAVING (client LIKE '%STUFF%') AND (Code = '9')
This query unfortunately outputs both records.
Thanks very much in advance for any help.
Scott