Besoin d'aide commande SQL
Fermé
stevengren
Messages postés
164
Date d'inscription
dimanche 25 janvier 2009
Statut
Membre
Dernière intervention
11 décembre 2012
-
13 mai 2010 à 00:43
fiu - 13 mai 2010 à 04:13
fiu - 13 mai 2010 à 04:13
A voir également:
- Besoin d'aide commande SQL
- Invite de commande - Guide
- Commande terminal mac - Guide
- Récupération serveur sql - Télécharger - Gestion de données
- Supprimer historique commande amazon - Forum Consommation & Internet
- Commande chkdsk - Guide
1 réponse
Salut
Un début qui soulève un coin du voile serait
select t1.*, t2.*
from triangle t1, triangle t2
where (t1.a = t2.a and t1.b = t2.c and t1.c = t2.b)
or (t1.a = t2.c and t1.b = t2.b and t1.c = t2.a)
or (t1.a = t2.b and t1.b = t2.a and t1.c = t2.c)
dommage qu'il y ait tous ces doublons dans les réponses.
car on affichera 2-3-4 avec 2-4-3
puis 2-4-3 avec 2-3-4
Un début qui soulève un coin du voile serait
select t1.*, t2.*
from triangle t1, triangle t2
where (t1.a = t2.a and t1.b = t2.c and t1.c = t2.b)
or (t1.a = t2.c and t1.b = t2.b and t1.c = t2.a)
or (t1.a = t2.b and t1.b = t2.a and t1.c = t2.c)
dommage qu'il y ait tous ces doublons dans les réponses.
car on affichera 2-3-4 avec 2-4-3
puis 2-4-3 avec 2-3-4