Récupéré le dernier enregistrement uniquement si la valeur est X
Résolu/Fermé
alex5200
Messages postés
3
Date d'inscription
vendredi 14 avril 2017
Statut
Membre
Dernière intervention
14 avril 2017
-
14 avril 2017 à 12:21
alex5200 Messages postés 3 Date d'inscription vendredi 14 avril 2017 Statut Membre Dernière intervention 14 avril 2017 - 14 avril 2017 à 23:04
alex5200 Messages postés 3 Date d'inscription vendredi 14 avril 2017 Statut Membre Dernière intervention 14 avril 2017 - 14 avril 2017 à 23:04
A voir également:
- Récupéré le dernier enregistrement uniquement si la valeur est X
- Mon compte facebook est piraté comment le récupérer - Guide
- Le dernier iphone - Guide
- Direct x runtime - Télécharger - Pilotes & Matériel
- Vba récupérer valeur cellule ✓ - Forum VB / VBA
- Manga origine x - Forum Réseaux sociaux
3 réponses
yg_be
Messages postés
22724
Date d'inscription
lundi 9 juin 2008
Statut
Contributeur
Dernière intervention
25 avril 2024
1 476
14 avril 2017 à 12:59
14 avril 2017 à 12:59
que donne ceci?
select DECISION.iddecision, DECISION.iddemande, DECISION.typedecision from DECISION INNER JOIN (select iddemande as iddem1, max(iddecision) as maxid from DECISION group by iddemande) as maxdec ON maxdec.iddem1 = DECISION.iddemande AND DECISION.iddecision = maxdec.maxid HAVING DECISION.typedecision = "6 accord partiel"
yg_be
Messages postés
22724
Date d'inscription
lundi 9 juin 2008
Statut
Contributeur
Dernière intervention
25 avril 2024
1 476
14 avril 2017 à 12:42
14 avril 2017 à 12:42
Tu nous confirmes que ceci fonctionne?
Select DECISION.typedecision,DEMANDE.iddemande,max(DECISION.iddecision) from DECISION INNER JOIN DEMANDE ON DEMANDE.iddemande=DECISION.iddemande group by DEMANDE. iddemande;
alex5200
Messages postés
3
Date d'inscription
vendredi 14 avril 2017
Statut
Membre
Dernière intervention
14 avril 2017
14 avril 2017 à 23:04
14 avril 2017 à 23:04
C'est parfait, merci bcp. j'ai plus qu'a l'adapter a ma requête complète
14 avril 2017 à 23:01