|
Publicité | ||||||||||||||||||||||
|
|
#1 |
|
Invité régulier
![]() Inscription : avril 2009 Messages : 24 ![]() Détails du profil ![]() Informations personnelles : Âge : 35 Informations forums : Inscription : avril 2009 Messages : 24 Points : 7 |
Voici ma requête
et franchement, c'est peut-etre la fatigue, mais je vois pas mon SELECT l.description, ( SELECT a1.first_name||' '||a1.last_name FROM agents a1 WHERE a1.birth_date = (SELECT MAX(a.birth_date) FROM agents a WHERE a.location_id = l.location_id ) ), ( SELECT a2.first_name||' '||a2.last_name FROM agents a2 WHERE a2.birth_date = (SELECT MIN(a.birth_date) FROM agents a WHERE a.location_id = l.location_id) FROM locations l ; |
|
|
00
|
|
|
#2 | ||
![]() ![]() Fabien Ingénieur d'études en décisionnel Inscription : septembre 2008 Messages : 5 389 ![]() Détails du profil ![]() Informations personnelles : Nom : Fabien Âge : 34 Localisation : France, Yvelines (Île de France) Informations professionnelles : Activité : Ingénieur d'études en décisionnel Secteur : Arts - Culture Informations forums : Inscription : septembre 2008 Messages : 5 389 Points : 9 496 |
Vous ne pouvez pas faire de requête scalaire qui renvoie plus d'une ligne.
Comme vous cherchez par location mais pour toutes les locations, ça ne fonctionne pas. Essayez ceci : Code :
|
||
|
00
|
Copyright © 2000-2012 - www.developpez.com


















Fabien 
