Bulk Load: Latest version of POSTCODES.csv.
Data/Seed and Data/Test: Correction to apau.ctl to remove duplicates. Modules/compile.sql: Correction to 'report' query. Schema/ext...: Check whether external tables have been defined before attempting to drop them. Schema/v_...: Force creation of views that rely on PL/SQL code. Explicitly name the column returned by V_QUOTE_DETAILS.vw so that the comments can be applied. git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3452 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
@@ -5,7 +5,19 @@
|
||||
may be required.
|
||||
*/
|
||||
CREATE OR REPLACE FORCE VIEW V_QUOTE_DETAILS AS
|
||||
SELECT *
|
||||
SELECT enquiry_id
|
||||
,quote_id
|
||||
,enty_code
|
||||
,module_code
|
||||
,lead_time
|
||||
,additional_items
|
||||
,bas_code
|
||||
,hou_code
|
||||
,qmax
|
||||
,qmin
|
||||
,inlet_orientation
|
||||
,outlet_orientation
|
||||
,total_cost
|
||||
FROM (SELECT q.enqu_id AS enquiry_id
|
||||
,t.qute_id AS quote_id
|
||||
,MAX(t.enty_code) over(PARTITION BY qute_id) AS enty_code
|
||||
@@ -24,8 +36,9 @@ SELECT *
|
||||
,row_number() over(PARTITION BY qute_id ORDER BY qute_id) AS row_number
|
||||
FROM quote_items t
|
||||
,quotes q
|
||||
WHERE t.qute_id = q.ID
|
||||
and not (quit_type = 'AQI' and adit_code in ('LIFTING GEAR','PURGING'))
|
||||
WHERE t.qute_id = q.id
|
||||
AND NOT (quit_type = 'AQI' AND
|
||||
adit_code IN ('LIFTING GEAR', 'PURGING'))
|
||||
ORDER BY enqu_id
|
||||
,quote_id
|
||||
,t.id) all_quote_items
|
||||
|
||||
Reference in New Issue
Block a user