carto_enstec:questions_exploration
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| carto_enstec:questions_exploration [2018/09/28 15:47] – [Territoire] valamercery | carto_enstec:questions_exploration [2018/09/28 15:52] (Version actuelle) – valamercery | ||
|---|---|---|---|
| Ligne 9: | Ligne 9: | ||
| Comment procéder si je veux rechercher tous les établissements d' | Comment procéder si je veux rechercher tous les établissements d' | ||
| - | ==== Essai d' | + | ===== Essai d' |
| Requête générique : trouver une institution avec un statut et une activité | Requête générique : trouver une institution avec un statut et une activité | ||
| Ligne 17: | Ligne 17: | ||
| -- essai sans association au projet | -- essai sans association au projet | ||
| WITH | WITH | ||
| - | garçon | + | statut |
| ( | ( | ||
| SELECT | SELECT | ||
| Ligne 31: | Ligne 31: | ||
| fk_type_role = 140 | fk_type_role = 140 | ||
| ), | ), | ||
| - | agriculture | + | activite |
| ( | ( | ||
| SELECT | SELECT | ||
| Ligne 41: | Ligne 41: | ||
| bhp.information_role | bhp.information_role | ||
| WHERE | WHERE | ||
| - | fk_associated_object = 'AbOb1872' | + | fk_associated_object = 'AbOb1674' |
| AND | AND | ||
| - | fk_type_role = 140 | + | fk_type_role = 131 |
| ) | ) | ||
| SELECT | SELECT | ||
| ir.object_label as institution, | ir.object_label as institution, | ||
| - | garçon.object_label as statut, | + | statut.object_label as statut, |
| - | agriculture.object_label as activité | + | activite.object_label as activité |
| FROM | FROM | ||
| bhp.information_role ir, | bhp.information_role ir, | ||
| - | garçon, | + | statut, |
| - | agriculture | + | activite |
| WHERE | WHERE | ||
| - | garçon.fk_information = agriculture.fk_information | + | statut.fk_information = activite.fk_information |
| AND | AND | ||
| - | garçon.fk_information = ir.fk_information | + | activite.fk_information = ir.fk_information |
| AND | AND | ||
| ir.is_information_subject IS TRUE | ir.is_information_subject IS TRUE | ||
| ORDER BY | ORDER BY | ||
| ir.object_label | ir.object_label | ||
| - | |||
| </ | </ | ||
carto_enstec/questions_exploration.1538142468.txt.gz · Dernière modification : de valamercery
