CONN#16095
svn path=/Customer/trunk/; revision=13919
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
-- Script containing customer specific configuration sql statements for CONN: Connexxion
|
||||
-- (c) 2005-2006 Dijkoraad IT bv
|
||||
-- $Revision: 142 $
|
||||
-- $Modtime: 9-04-09 10:47 $
|
||||
-- $Revision: 143 $
|
||||
-- $Modtime: 5-08-09 7:47 $
|
||||
--
|
||||
-- Support: +31 53 4800700
|
||||
|
||||
@@ -9,26 +9,31 @@ SET ECHO ON
|
||||
|
||||
SPOOL xconn.lst;
|
||||
|
||||
CREATE OR REPLACE VIEW CONN_V_BES_DIESEL (Aanvraagnr, Aantal, Omschrijving, Datum, FCLT_F_Afleveradres)
|
||||
CREATE OR REPLACE FORCE VIEW conn_v_bes_diesel(aanvraagnr,
|
||||
aantal,
|
||||
omschrijving,
|
||||
datum,
|
||||
fclt_f_afleveradres
|
||||
)
|
||||
AS
|
||||
SELECT b.bes_bestelling_key, bi.bes_bestelling_item_aantal,
|
||||
d.ins_srtdeel_omschrijving, k.bes_kenmerkbestell_waarde, a.mld_adres_naam
|
||||
SELECT b.bes_bestelling_key,
|
||||
bi.bes_bestelling_item_aantal,
|
||||
d.ins_srtdeel_omschrijving,
|
||||
b.bes_bestelling_leverdatum,
|
||||
a.mld_adres_naam
|
||||
FROM mld_adres a,
|
||||
bes_discipline d,
|
||||
ins_srtgroep g,
|
||||
ins_srtdeel d,
|
||||
bes_bestelling_item bi,
|
||||
bes_bestelling b,
|
||||
bes_kenmerkbestell k
|
||||
bes_bestelling b
|
||||
WHERE d.ins_discipline_key = g.ins_discipline_key
|
||||
AND g.ins_srtgroep_key = d.ins_srtgroep_key
|
||||
AND bi.ins_srtdeel_key = d.ins_srtdeel_key
|
||||
AND bi.bes_bestelling_key = b.bes_bestelling_key
|
||||
AND d.ins_discipline_key = 1442
|
||||
AND b.mld_adres_key_lev = a.mld_adres_key
|
||||
AND k.bes_bestelling_key = b.bes_bestelling_key
|
||||
AND k.bes_kenmerk_key = 3
|
||||
AND b.bes_bestelling_afgewezen is null;
|
||||
AND b.bes_bestelling_afgewezen IS NULL;
|
||||
|
||||
|
||||
--CONN#12801
|
||||
|
||||
Reference in New Issue
Block a user