MySQL Forums
Forum List  »  French

tri sur deux colonnes
Posted by: eric hazebrouck
Date: June 22, 2015 04:40AM

bonjour

j'ai 4 colonnes dont deux avec des prix :

nom | detail | prix_brut | promo

livre | detail | 100 | 10
chien | detail | 80 |
chat | detail | 110 | 40
coq | detail | 70 | 50

et je voudrai trier les résultats comme si on avait une nouvelle colonne prix article avec le prix promo qui remplace le prix_brut si la colonne promo est renseignée

J'essai de faire des tri mais je n'arrive pas à mon résultat

Merci

Options: ReplyQuote


Subject
Views
Written By
Posted
tri sur deux colonnes
1999
June 22, 2015 04:40AM
1178
June 22, 2015 11:40AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.