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
This commit is contained in:
hardya
2008-02-06 17:28:44 +00:00
parent bba0394796
commit 12f2693a5c
13 changed files with 153 additions and 147 deletions

View File

@@ -5,19 +5,7 @@ SELECT enqu_id
FROM (SELECT enqu_id
,event_date
,enst_code
,decode(enst_code
,'INP'
,1
,'SUBMITTED'
,2
,'QUOTED'
,3) AS this_event
,MAX(decode(enst_code
,'INP'
,1
,'SUBMITTED'
,2
,'QUOTED'
,3)) over(PARTITION BY enqu_id) AS max_event
,id
,MAX(id) over(PARTITION BY enqu_id) AS max_id
FROM enquiry_events)
WHERE this_event = max_event;
WHERE id = max_id