Files
mip/Schema/v_current_quote_status.vw
hardya 60256b0834 Include missing '/'
git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3491 248e525c-4dfb-0310-94bc-949c084e9493
2008-02-07 17:09:34 +00:00

14 lines
326 B
Plaintext

CREATE OR REPLACE FORCE VIEW v_current_quote_status
AS
SELECT qute_id
,event_date
,qust_code
FROM (SELECT qute_id
,event_date
,qust_code
,id
,MAX(id) over(PARTITION BY qute_id) AS max_event
FROM quote_events)
WHERE id = max_event
/