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:
@@ -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
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user