dbTalk Databases Forums  

Unions in views

comp.databases.sybase comp.databases.sybase


Discuss Unions in views in the comp.databases.sybase forum.



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

Default Unions in views - 12-17-2003 , 03:19 PM






Does anyone know whether ASE 12.5 allows one to use the union operator
in a view and if not, how to get around this limiation?

Femi Anthony

Reply With Quote
  #2  
Old   
Bret Halford
 
Posts: n/a

Default Re: Unions in views - 12-17-2003 , 08:01 PM






femi (AT) cnet (DOT) com (Olufemi Anthony) wrote in message news:<53ba6ff2.0312171319.301a5dcc (AT) posting (DOT) google.com>...
Quote:
Does anyone know whether ASE 12.5 allows one to use the union operator
in a view and if not, how to get around this limiation?

Femi Anthony
ASE 12.5.x does allow unions in views.

-bret


Reply With Quote
  #3  
Old   
Toni Salomäki
 
Posts: n/a

Default Re: Unions in views - 12-18-2003 , 12:01 AM



Bret Halford wrote:
Quote:
femi (AT) cnet (DOT) com (Olufemi Anthony) wrote in message news:<53ba6ff2.0312171319.301a5dcc (AT) posting (DOT) google.com>...
Does anyone know whether ASE 12.5 allows one to use the union operator
in a view and if not, how to get around this limiation?

Femi Anthony

ASE 12.5.x does allow unions in views.

-bret
There are few surprises when doing this, for example sum() + group by does
not use indexes...

Toni


Reply With Quote
  #4  
Old   
Don Million
 
Posts: n/a

Default Re: Unions in views - 12-18-2003 , 01:31 PM



Quote:
There are few surprises when doing this, for example sum() + group by does
not use indexes...
Not true. I just created such a view, with a sum() in it, and it used
the index I created for it. Perhaps there is/was something in your
sql, indexes, or data that prevented using an index in your particular
case. This is not, however, the general case.


Reply With Quote
  #5  
Old   
Don Million
 
Posts: n/a

Default Re: Unions in views - 12-18-2003 , 03:10 PM



Quote:
There are few surprises when doing this, for example sum() + group by does
not use indexes...
Not true. If an index is available and useable by the server, it will
use it. I just tried it and it did!


Reply With Quote
  #6  
Old   
Don Million
 
Posts: n/a

Default Re: Unions in views - 12-18-2003 , 03:11 PM



Sorry for the double post.

Reply With Quote
  #7  
Old   
Zia
 
Posts: n/a

Default Re: Unions in views - 12-19-2003 , 08:26 AM



I have used, it works. But there was page corruption happening during
accessing the view. When contacted with sybase, they recomended to use
ESD3 or later patch which solves the problem.
-Zia

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.