Re: Using COUNT and ORDER BY in a SQL Statement
From: Evertjan. (exjxw.hannivoort_at_interxnl.net)
Date: 03/15/04
- Next message: Bob Barrows [MVP]: "Re: Using COUNT and ORDER BY in a SQL Statement"
- Previous message: Wole: "Using COUNT and ORDER BY in a SQL Statement"
- In reply to: Wole: "Using COUNT and ORDER BY in a SQL Statement"
- Next in thread: Bob Barrows [MVP]: "Re: Using COUNT and ORDER BY in a SQL Statement"
- Messages sorted by: [ date ] [ thread ]
Date: 15 Mar 2004 21:55:37 GMT
Wole wrote on 15 mrt 2004 in microsoft.public.inetserver.asp.db:
> SELECT COUNT(*) AS RSCOUNTER FROM tblStaffInfo ORDER BY username
>
> but I get the error message:
>
> Error Type:
> Microsoft JET Database Engine (0x80040E21)
> You tried to execute a query that does not include the specified
> expression 'username' as part of an aggregate function.
Seems logical you cannot order a one number result output.
-- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
- Next message: Bob Barrows [MVP]: "Re: Using COUNT and ORDER BY in a SQL Statement"
- Previous message: Wole: "Using COUNT and ORDER BY in a SQL Statement"
- In reply to: Wole: "Using COUNT and ORDER BY in a SQL Statement"
- Next in thread: Bob Barrows [MVP]: "Re: Using COUNT and ORDER BY in a SQL Statement"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|