Hey guys.. I think i have an ID 10 T error on this one.
I need to remove [status] and query it after the distinct on the first five columns. So basically i need something like:
Code:
SELECT distinct [Location],[Environment], [Page], [Action], [Type], [Status]
FROM [default_bsd_qa_db].[dbo].[SQA_DASH_SYNT_TRAN_LOG]
WHERE [DateTime] >= DATEADD(minute,-15,GETDATE())
I need to remove [status] and query it after the distinct on the first five columns. So basically i need something like:
Code:
SELECT distinct [Location],[Environment], [Page], [Action], [Type], *Inner query that joins Status... based off of the distincts*
FROM [default_bsd_qa_db].[dbo].[SQA_DASH_SYNT_TRAN_LOG]
WHERE [DateTime] >= DATEADD(minute,-15,GETDATE())