Files
mip/Schema/v_current_quote_status.vw
hardya 12f2693a5c Changes to schema and code to place 'id' as PK field in quote_events and enquiry_events as part of ticket #78.
Changed BULK_LOAD.xls to have two tabs to represent costs. Also includes QMAX against module - none of these changes are represented in the current code.

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3480 248e525c-4dfb-0310-94bc-949c084e9493
2008-02-06 17:28:44 +00:00

13 lines
323 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