Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using a column alias in a sql select where clause.
Message
De
13/08/2002 08:59:44
 
 
À
13/08/2002 08:36:11
Information générale
Forum:
Oracle
Catégorie:
Rapports
Divers
Thread ID:
00689055
Message ID:
00689075
Vues:
25
Thanks for your help. We've found the answer now. We needed to put the decode statement into a HAVING clause:
SELECT order_id,
decode(status, 'Held', '1 - Held', 'Shipped', '2 - Shipped', '') as ordstatus
from order_header
having decode(status, 'Held', '1 - Held', 'Shipped', '2 - Shipped', '') = 'Shipped'
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform