Union query 2616 error
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


Union query 2616 error Expand / Collapse
Author
Message
Posted 1/2/2006 12:06:06 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 5/23/2007 7:29:00 AM
Posts: 49, Visits: 1
select 127 from customer
union
select 131 from customer

The above query generates the subject mentioned the qorkaround is typecast the value 127 to Integer. the reason for the error is the value 127 is considered as Byte and 131 as Integer and the query optimizer tries to convert 131 to Byte, so it gives the subject mentioned error.


Is this the only solution?

Thanks,


vinod
Post #3276
Posted 1/2/2006 3:36:25 PM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 6/16/2007 11:57:00 AM
Posts: 293, Visits: 1

Make them the same type..

sel cast(127 as Integer) from customer
union
sel cast(131 as Integer) from customer;
Post #3278
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 4 ( 4 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 11:23pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.156. 8 queries. Compression Disabled.