B158 res_v_res_ruimte_gegevens aangepast zodat deze voor gecombineerde ruimten maar een regel ophaalt.
svn path=/Database/trunk/; revision=7485
This commit is contained in:
@@ -4332,3 +4332,33 @@ CREATE_VIEW (prs_v_perslid_print,PRS_NORMAAL_PRIVILEGE) AS
|
||||
AND PRS_SP.prs_srtperslid_key(+) = PRS_P.prs_srtperslid_key;
|
||||
|
||||
#endif // PRS
|
||||
|
||||
#ifdef RES
|
||||
|
||||
CREATE_VIEW(res_v_res_ruimte_gegevens, RES_BIBLIOTHEEK_PRIVILEGE)
|
||||
( alg_locatie_key
|
||||
, alg_gebouw_key
|
||||
, alg_verdieping_key
|
||||
, res_ruimte_key
|
||||
, res_ruimte_nr
|
||||
, res_ruimte_prijs)
|
||||
AS SELECT DISTINCT ALG_L.alg_locatie_key
|
||||
, ALG_G.alg_gebouw_key
|
||||
, ALG_V.alg_verdieping_key
|
||||
, RES_R.res_ruimte_key
|
||||
, RES_R.res_ruimte_nr
|
||||
, RES_R.res_ruimte_prijs
|
||||
FROM alg_locatie ALG_L
|
||||
, alg_gebouw ALG_G
|
||||
, alg_verdieping ALG_V
|
||||
, alg_v_aanwezigruimte ALG_R
|
||||
, res_v_aanwezigruimte RES_R
|
||||
, res_alg_ruimte RES_RA
|
||||
WHERE RES_R.res_ruimte_key = RES_RA.res_ruimte_key
|
||||
AND ALG_R.alg_ruimte_key = RES_RA.alg_ruimte_key
|
||||
AND ALG_R.alg_verdieping_key = ALG_V.alg_verdieping_key
|
||||
AND ALG_V.alg_gebouw_key = ALG_G.alg_gebouw_key
|
||||
AND ALG_G.alg_locatie_key = ALG_L.alg_locatie_key;
|
||||
|
||||
#endif // RES
|
||||
|
||||
|
||||
Reference in New Issue
Block a user