Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using a column alias in a sql select where clause.
Message
From
13/08/2002 08:09:20
 
 
To
All
General information
Forum:
Oracle
Category:
Reports
Title:
Using a column alias in a sql select where clause.
Miscellaneous
Thread ID:
00689055
Message ID:
00689055
Views:
75
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.
Next
Reply
Map
View

Click here to load this message in the networking platform