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:09:20
 
 
À
Tous
Information générale
Forum:
Oracle
Catégorie:
Rapports
Titre:
Using a column alias in a sql select where clause.
Divers
Thread ID:
00689055
Message ID:
00689055
Vues:
74
I want to use a column alias in a where clause like the following:
select order_id,
decode(status, 'Held', '1 - Held', 'Shipped', '2 - Shipped) as ordstatus
from order_header
where ordstatus = '1 - Held'

I get 'invalid column name' on ordstatus. Any ideas would be appreciated.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform