Seed/enst.ctl - add INVALID status
Documentation/Design/DatabaseItemToFunctionalSpecificationReference.xls - add rule O-M5 Documentation/pldoc - regenerated Modules/mip_helper_special_cases.pck - make reference to Tripartite rule O-M5 (handled by mip_quotation.pck and mip_tripartite.pck Schema - removed DATA_ITEM_ROLES_IMPORT, added views of enquiries and quote statuses git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3354 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
40
Schema/v_current_quote_status.vw
Normal file
40
Schema/v_current_quote_status.vw
Normal file
@@ -0,0 +1,40 @@
|
||||
CREATE OR REPLACE VIEW v_current_quote_status
|
||||
AS
|
||||
SELECT qute_id
|
||||
,event_date
|
||||
,qust_code
|
||||
FROM (SELECT qute_id
|
||||
,event_date
|
||||
,qust_code
|
||||
,decode(qust_code
|
||||
,'INP'
|
||||
,1
|
||||
,'AV'
|
||||
,2
|
||||
,'SELREJ'
|
||||
,3
|
||||
,'SELECTED'
|
||||
,5
|
||||
,'REJECTED'
|
||||
,6
|
||||
,'ACCEPTED'
|
||||
,7
|
||||
,'LAPSED'
|
||||
,8) AS this_event
|
||||
,MAX(decode(qust_code
|
||||
,'INP'
|
||||
,1
|
||||
,'AV'
|
||||
,2
|
||||
,'SELREJ'
|
||||
,3
|
||||
,'SELECTED'
|
||||
,5
|
||||
,'REJECTED'
|
||||
,6
|
||||
,'ACCEPTED'
|
||||
,7
|
||||
,'LAPSED'
|
||||
,8)) over(PARTITION BY qute_id) AS max_event
|
||||
FROM quote_events)
|
||||
WHERE this_event = max_event
|
||||
Reference in New Issue
Block a user