Solved

can't use a UNION in a VIEW - workaround ?

Posted on 1998-10-27
3
273 Views
Last Modified: 2008-03-03
In Sybase 11 I can't use UNION selects (6) in a VIEW.
Anybody an idea to work around that ?
0
Comment
Question by:mmullens
  • 2
3 Comments
 

Author Comment

by:mmullens
ID: 1098379
the message returned by Sybase :
197- SET operators may not appear in the definition of a view
0
 

Author Comment

by:mmullens
ID: 1098380
Adjusted points to 200
0
 
LVL 10

Accepted Solution

by:
bret earned 200 total points
ID: 1098381
I recently posted a method of faking a view containing UNIONs (based on proxy tables in ASE 11.5) to comp.databases.sybase, you can find it if you go to http://www.dejanews.com and search for "~g comp.databases.sybase union view bret"

As written, it only works for "select *" with no where clause against the view.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Can I use dynamic SQL in a function for a COLUMN NAME 6 671
VB6 to VB.NET transition 1 494
SSIS Database Insert Issue 17 206
Converting some Sql server syntax to Sybase Syntax. 8 67
Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
Read our guide on how to survive being on-call.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question