changed view back to use the sequence id to report the most current document status

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3714 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
PriestJ
2008-02-26 13:43:24 +00:00
parent b713217f88
commit 78f7ea4b75

View File

@@ -6,7 +6,7 @@ SELECT docu_id
,event_date
,dost_code
,id
,MAX(event_date) over(PARTITION BY docu_id) AS max_date
,MAX(id) over(PARTITION BY docu_id) AS max_id
FROM document_events)
WHERE event_date = max_date
WHERE id = max_id
;