SELECT
d.fid, trim(a.value) district, b.nom commune, c.numero, d.geom
FROM
district_tbd a, commune b, immeuble c, bf_tsur d, bf_tcen e, bien_fonds f
WHERE
a.id = b.no_district AND
substr(c.identdn,4,3) =
decode(length(b.numcom),1,'00'||b.numcom,2,'0'||b.numcom,b.numcom) AND
f.fid_bien_fonds_de = c.fid AND
e.fid_centroid = f.fid AND
e.fid_tsur = d.fid
ORDER BY
a.value, b.nom, length(c.numero), c.numero
Cette vue peut s'avérer très complexe. Soyez attentif aux performances. L'ordre des attributs d'entrée n'importe pas, mais il doit en exister au moins un.
Entrée |
Valeur |
Nom de table |
V_Immeuble |
Description de l'attribut 1 |
District |
Attribut 1 |
DISTRICT |
Description de l'attribut 2 |
Commune |
Attribut 2 |
COMMUNE |
Description de l'attribut 3 |
Numéro |
Attribut 3 |
NUMERO |
Attribut de clé |
FID |
Attribut de géométrie |
GEOM |
SELECT FID,DISTRICT,COMMUNE,NUMERO
FROM V_IMMEUBLE
WHERE UPPER(DISTRICT) LIKE UPPER('Lau%') AND
UPPER(NUMERO) LIKE UPPER('1002')
SELECT GEOM FROM V_IMMEUBLE WHERE FID=20407749