Unix Technical Forum

Unions in views

This is a discussion on Unions in views within the Sybase forums, part of the Database Server Software category; --> Does anyone know whether ASE 12.5 allows one to use the union operator in a view and if not, ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 04:09 PM
Olufemi Anthony
 
Posts: n/a
Default Unions in views

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 04:09 PM
Bret Halford
 
Posts: n/a
Default Re: Unions in views

femi@cnet.com (Olufemi Anthony) wrote in message news:<53ba6ff2.0312171319.301a5dcc@posting.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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 04:09 PM
Toni =?iso-8859-1?Q?Salom=E4ki?=
 
Posts: n/a
Default Re: Unions in views

Bret Halford wrote:
> femi@cnet.com (Olufemi Anthony) wrote in message news:<53ba6ff2.0312171319.301a5dcc@posting.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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-08-2008, 04:10 PM
Don Million
 
Posts: n/a
Default Re: Unions in views

> 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-08-2008, 04:10 PM
Don Million
 
Posts: n/a
Default Re: Unions in views

> 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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-08-2008, 04:10 PM
Don Million
 
Posts: n/a
Default Re: Unions in views

Sorry for the double post.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-08-2008, 04:10 PM
Zia
 
Posts: n/a
Default Re: Unions in views

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:37 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com