Union query

Post Reply
chand012
Posts: 70
Joined: Mon Dec 18, 2000 4:34 pm

Union query

Post by chand012 »

I need to do a union query, for which there is no example in your documentation (it just says you can do it). The basic query works fine, but I also need to order the results and it doesn't seem you can do this:

select orgname oname from orgs union select acronym oname from orgs where acronym != '' order by oname

Instead, you get the error "100 Could not find field oname in the function Evaluate".

This type of syntax works, for example in Microsoft Access. Is there a technique available in Texis for order the results of a union query?

Thanks,
David
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Union query

Post by John »

Which version of Texis are you using? You should be able to do that. An alternate syntax which should also work is "ORDER BY 1" to order by the first column.
John Turnbull
Thunderstone Software
chand012
Posts: 70
Joined: Mon Dec 18, 2000 4:34 pm

Union query

Post by chand012 »

Texis version: Commercial Version 3.01.959738425 of May 30, 2000 (sparc-sun-solaris2.5.1)

The "order by 1" syntax produces "Segmentation Fault".
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Union query

Post by John »

You should have been shipped a newer version of Texis recently which does not have that behavior.
John Turnbull
Thunderstone Software
Post Reply