dbTalk Databases Forums  

Strange Behaviour

comp.databases.sybase comp.databases.sybase


Discuss Strange Behaviour in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
BugsBunny
 
Posts: n/a

Default Strange Behaviour - 01-14-2004 , 08:03 AM






I'm using Sybase IQ 12.5

I can execute the following query which is fine

select ROW_INSERT_DATE from ODS_MER.SBA_KARLILIK_SYSREC union
select ROW_INSERT_DATE from ODS_MER.BBA_KARLILIK_SYSREC

However if i add an order by clause I get an error. For instance I can
not execute the following query.

select ROW_INSERT_DATE from ODS_MER.SBA_KARLILIK_SYSREC union
select ROW_INSERT_DATE from ODS_MER.BBA_KARLILIK_SYSREC
order by ROW_INSERT_DATE

The error is: S0002(-143)(Sybase)(ODBC Driver)(Adaptive Server
IQ)Column not found: Column 'ROW_INSERT_DATE' not found

Any comments on this one?

Reply With Quote
  #2  
Old   
Marc M
 
Posts: n/a

Default Re: Strange Behaviour - 02-11-2004 , 12:29 PM






metink (AT) hotmail (DOT) com (BugsBunny) wrote in message news:<d7c76161.0401140603.15d00bd8 (AT) posting (DOT) google.com>...
Quote:
I'm using Sybase IQ 12.5

I can execute the following query which is fine

select ROW_INSERT_DATE from ODS_MER.SBA_KARLILIK_SYSREC union
select ROW_INSERT_DATE from ODS_MER.BBA_KARLILIK_SYSREC

However if i add an order by clause I get an error. For instance I can
not execute the following query.

select ROW_INSERT_DATE from ODS_MER.SBA_KARLILIK_SYSREC union
select ROW_INSERT_DATE from ODS_MER.BBA_KARLILIK_SYSREC
order by ROW_INSERT_DATE

The error is: S0002(-143)(Sybase)(ODBC Driver)(Adaptive Server
IQ)Column not found: Column 'ROW_INSERT_DATE' not found

Any comments on this one?
Sorry, came across this one pretty late. Try forcing a column heading
i.e. select ROW_INSERT_DATE as "Insert Date Column" from ... for each
query and then order by that heading.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.