How to make a query which use column and table aliases but not using joins
Select
channel_id AS "ClAlias" from tblchannel TbAlias where
tblaias.IS_DEFAULT = 1;
Giving error of invalid identifier, how can I make such a query which uses both table and column
aliases but not related to joins.
My separate table alias
and column aliases queries are working fine:
(Table alias query)
SELECT
CHANNEL_ID, IS_DEFAULT from tblchannel ImTbAlias WHERE ImTbAlias.IS_DEFAULT =
1;
(Column alias query)
Select channel_id "ImClAlias" from tblchannel;
Thanks in advance.

Suthish NairRank #92 · 22.8K reputationPosted Oct 26, 2010, 2:54 AM EDT
Select channel_id AS "ClAlias" from tblchannel TbAlias where TbAlias.IS_DEFAULT = 1;
Koteswararao MallisettiRank #2,740 · 511 reputationPosted Oct 26, 2010, 12:27 AM EDT
select TbAlias.channel_id as "CIAlias" from tablechannel TbAlias where tblaias.IS_Default=1
Syed Arbab Ahmed88 reputationPosted Oct 26, 2010, 1:57 AM EDT
"invalid identifier".
Syed Arbab Ahmed88 reputationPosted Oct 26, 2010, 9:47 PM EDT
Suthish NairRank #92 · 22.8K reputationPosted Oct 28, 2010, 11:41 AM EDT
If this post helped you, then tick the checkbox above "Do you like this Answer"