Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 26th, 2010, 03:56 AM
Authorized User
 
Join Date: Sep 2008
Posts: 54
Thanks: 8
Thanked 1 Time in 1 Post
Default How to make a query which use column and table aliases but not using joins

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.
__________________
How to do programming?
 
Old October 26th, 2010, 04:28 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

You appear to have spelt the table alias incorrectly.
__________________
Joe
http://joe.fawcett.name/
 
Old October 26th, 2010, 06:07 AM
Authorized User
 
Join Date: Sep 2008
Posts: 54
Thanks: 8
Thanked 1 Time in 1 Post
Default Simply a great answer, buddy!

Simply a great answer, buddy, I am feeling bad on myself as I spent some time on it and did not check the spelling. lol

Thanks
__________________
How to do programming?





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make a query which use column and table aliases but not using joins arbab SQL Language 2 October 27th, 2010 01:37 AM
Can a Make Table Query produce a Linked table? kronik Access 5 May 16th, 2006 06:17 AM
Make Table query : table in Another Database marnik Access 1 March 19th, 2005 12:39 PM
how to make column of table 1 = to column of table gilgalbiblewheel Classic ASP Databases 4 October 11th, 2004 11:57 PM
Error on Make-Table Query In Union Query rylemer Access 1 August 20th, 2003 07:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.