Re: SQL query
From: Henry (nospam_at_thanks.com)
Date: 02/11/05
- Next message: Jim Young: "Re: new problem - RESTORE"
- Previous message: AllcompPC: "new problem - RESTORE"
- In reply to: Hugo Kornelis: "Re: SQL query"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 11 Feb 2005 22:05:06 +0100
> Since you can't use the alias in the group by, you'll have to use the
> expression instead:
>
> SELECT digits,
> DATEPART (hh, DATECALLINITIATED) as calltime,
> COUNT(*) as Kald
> FROM [38335.TXT]
> GROUP BY digits,
> DATEPART (hh, DATECALLINITIATED)
>
>
> >PS. sorry if this is the wrong group, I just couldn't find a more
suitable
> >froup.
>
> This group is fine, but the best group for questions about queries in MSDE
> and other SQL Server editions is microsoft.public.sqlserver.programming.
>
> Best, Hugo
Thanks Hugo, that was a great explaination.
I'll ask my query questions in programming.
regards
Henry
- Next message: Jim Young: "Re: new problem - RESTORE"
- Previous message: AllcompPC: "new problem - RESTORE"
- In reply to: Hugo Kornelis: "Re: SQL query"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|