Fixes made for #102, #103, #49, #108

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3504 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
hardya
2008-02-08 16:23:12 +00:00
parent 073c5f5230
commit 68f300c2ca
16 changed files with 150 additions and 58 deletions

View File

@@ -0,0 +1,11 @@
CREATE OR REPLACE VIEW V_CURRENT_DOCUMENT_STATUS AS
SELECT docu_id
,event_date
,dost_code
FROM (SELECT docu_id
,event_date
,dost_code
,id
,MAX(id) over(PARTITION BY docu_id) AS max_id
FROM document_events)
WHERE id = max_id;