Re: How do I run a SQL query and order the result set by a calcula
From: Mark (Mark_at_discussions.microsoft.com)
Date: 02/28/05
- Next message: Lassaad Messaoud: "Enabling/Disabling item/node"
- Previous message: ghj: "grid column colors"
- Next in thread: Cindy Winegarden: "Re: How do I run a SQL query and order the result set by a calcula"
- Reply: Cindy Winegarden: "Re: How do I run a SQL query and order the result set by a calcula"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 28 Feb 2005 03:15:04 -0800
Hi Cindy,
This does NOT work - you skipped the GROUP BY clause!
Mark
"Cindy Winegarden" wrote:
> Hi ExtraT,
>
> One more way, besides what Dan said, is to use numbers.
>
> Select ;
> FirstName,
> LastName, ;
> Count(*) As NumRows ;
> From ;
> Names ;
> Order By
> 3, 2, 1
>
> --
> Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
> cindy_winegarden@msn.com www.cindywinegarden.com
>
>
> "ExtraT" <nospam@nospam.net> wrote in message
> news:1109107323.13d23f595aec5bf9cdcb6a96cfb6b50d@teranews...
> > If I want to run a SQL query and order the result set by a calculated
> > field, how should I do that?
>
>
>
- Next message: Lassaad Messaoud: "Enabling/Disabling item/node"
- Previous message: ghj: "grid column colors"
- Next in thread: Cindy Winegarden: "Re: How do I run a SQL query and order the result set by a calcula"
- Reply: Cindy Winegarden: "Re: How do I run a SQL query and order the result set by a calcula"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|