Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 9 of 9 total
Thread EDB does not support Order by with Union ?
Sat, Jul 14 2007 10:39 PMPermanent Link

"Tom"
Is it bug or no support?

Mon, Jul 16 2007 4:43 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Tom,

<< Is it bug or no support? >>

Could you give me an example of the SQL that you're trying to execute ?  You
have to include parentheses around the second and subsequent SELECT
statements if using an ORDER BY statement:

SELECT * FROM MyTable
UNION
(SELECT * FROM MyTable)
ORDER BY MyColumn

--
Tim Young
Elevate Software
www.elevatesoft.com

Mon, Jul 16 2007 6:05 PMPermanent Link

"Tom"
Thanks.

I didn't know there must be (..) for second select.

"Tim Young [Elevate Software]" <timyoung@elevatesoft.com> wrote in message
news:B708E8D7-B0F2-4588-BF8A-57CC199185F3@news.elevatesoft.com...
> Tom,
>
> << Is it bug or no support? >>
>
> Could you give me an example of the SQL that you're trying to execute ?
> You have to include parentheses around the second and subsequent SELECT
> statements if using an ORDER BY statement:
>
> SELECT * FROM MyTable
> UNION
> (SELECT * FROM MyTable)
> ORDER BY MyColumn
>
> --
> Tim Young
> Elevate Software
> www.elevatesoft.com
>

Tue, Jul 17 2007 1:11 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Tom,

<< I didn't know there must be (..) for second select. >>

I'll make a note of it in the manual.

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Jul 17 2007 6:27 PMPermanent Link

"Ole Willy Tuv"
Tim,

<< You have to include parentheses around the second and subsequent SELECT
statements if using an ORDER BY statement: >>

I'm not sure if this requirement is a parser limitation in EDB or something
else, but I hope you'll implement standard SQL syntax/behavior for UNION
with ORDER BY.

Ole Willy Tuv

Wed, Jul 18 2007 12:39 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ole,

<< I'm not sure if this requirement is a parser limitation in EDB or
something else, but I hope you'll implement standard SQL syntax/behavior for
UNION with ORDER BY. >>

It's a parser limitation.  I can't remember off-hand why it is, but I'll
take another look at it and see what I can find.

--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Jul 19 2007 4:05 PMPermanent Link

"Ole Willy Tuv"
Tim,

<< It's a parser limitation.  I can't remember off-hand why it is, but I'll
take another look at it and see what I can find. >>

Have you fixed it already ? Smiley

Standard UNION/ORDER BY syntax seems to work fine with 1.04 b6.

Ole Willy Tuv

Thu, Jul 19 2007 4:18 PMPermanent Link

"Jose Eduardo Helminsky"
Thu, Jul 19 2007 5:32 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ole,

<< Have you fixed it already ? Smiley

Standard UNION/ORDER BY syntax seems to work fine with 1.04 b6. >>

Yep.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image