Tony Weeg wrote:
>
> isnt there just a way to use those calculated values, referenced in the
> beginning of the query, later on down in the query?
SELECT
*
FROM (
SELECT
count(tony) as tonysCount,
sum(jayme) as jaymesCount
FROM
orders
) a
WHERE
Abs(tonysCount-jaymesCount)/tonysCount) > 0
Whether this is faster depends on the circumstances.
Jochem
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- sql question pt 2 Tony Weeg
- sql question pt 2 Tony Weeg
- RE: sql question pt 2 J E VanOver
- RE: sql question pt 2 Tony Weeg
- RE: sql question pt 2 J E VanOver
- RE: sql question pt 2 Tony Weeg
- Re: sql question pt 2 Deanna Schneider
- RE: sql question pt 2 Tony Weeg
- RE: sql question pt 2 Jochem van Dieten
- RE: sql question pt 2 Tony Weeg
- Re: sql question pt 2 Jochem van Dieten
- RE: sql question pt 2 Tony Weeg
- Re: sql question pt 2 Jochem van Dieten
- RE: sql question pt 2 Tony Weeg
- RE: sql question pt 2 Casey C Cook
- Re:sql question pt 2 lee
- RE: sql question pt 2 Mark A. Kruger - CFG
- Re: sql question pt 2 Jochem van Dieten