| Subject | Re: [firebird-support] SELECT COUNT(sub_select.*) as COUNT, sub_select.user_name ... | 
|---|---|
| Author | Martijn Tonies | 
| Post date | 2004-01-15T10:14:57Z | 
Hi,
Firebird doesn't support "derived tables" (that's what
you're doing, not a "subselect").
Why not simply use:
select count(*), user_name
from user
group by user_name
?
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com
            Firebird doesn't support "derived tables" (that's what
you're doing, not a "subselect").
Why not simply use:
select count(*), user_name
from user
group by user_name
?
> SELECTWith regards,
> COUNT(sub_select.*) as COUNT, sub_select.user_name,
> sub_select.password
> FROM
> (
> SELECT
> user_name, password
> FROM
> USER sub_select
> WHERE
>
> user_name LIKE '%%'
> AND password LIKE '%%'
> AND name LIKE '%%'
> AND surname LIKE '%%'
> )
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com