Subject | AW: [firebird-support] Problem grouping and sorting |
---|---|
Author | Olaf Kluge |
Post date | 2008-07-25T10:35:18Z |
Hi,
I'm afraid not. Generelly does orderby not work with group by.
Has anyone an idea?
Olaf,
does 'order by 2' work for you?
Regards,
Robert Wagner
Olaf Kluge schrieb:
Checked by AVG - http://www.avg.com
Version: 8.0.138 / Virus Database: 270.5.3/1564 - Release Date: 21.07.2008
06:42
Internal Virus Database is out of date.
Checked by AVG - http://www.avg.com
Version: 8.0.138 / Virus Database: 270.5.3/1564 - Release Date: 21.07.2008
06:42
[Non-text portions of this message have been removed]
I'm afraid not. Generelly does orderby not work with group by.
Has anyone an idea?
Olaf,
does 'order by 2' work for you?
Regards,
Robert Wagner
Olaf Kluge schrieb:
> Hello,then
>
>
>
> in Firebird 1.5 this is not a problem:
>
>
>
> SELECT TLIEFERANTEN.LIID, TLIEFERANTEN.FIRMA
>
> FROM TLIEFERANTEN
>
> GROUP BY TLIEFERANTEN.LIID, TLIEFERANTEN.FIRMA
>
> ORDER BY TLIEFERANTEN.FIRMA;
>
>
>
> Since Firebird 2 I got an error message .. Ambiguous field name between a
> field and a field in select list.
>
>
>
> I'm using Microsoft access with odbc-connection (Gemini 2.1) I need both
> fields. When I remove the sorting-feature on the second field (Firma),
> it is okay. But it doesn't sorting by "firma". I think, firebird sortingthe Resources item
> automatically since firebird 2.0, but in this case, it won't working.
>
>
>
> How can I sorting the second column in my query without this error?
>
>
>
> Thanks in advance.
>
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
> ------------------------------------
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Visit http://www.firebird <http://www.firebirdsql.org> sql.org and click
> on the main (top) menu. Try Knowledgebase and FAQ links !<http://www.ibphoenix.com> x.com
>
> Also search the knowledgebases at http://www.ibphoeni
>Internal Virus Database is out of date.
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Yahoo! Groups Links
>
>
>
>
Checked by AVG - http://www.avg.com
Version: 8.0.138 / Virus Database: 270.5.3/1564 - Release Date: 21.07.2008
06:42
Internal Virus Database is out of date.
Checked by AVG - http://www.avg.com
Version: 8.0.138 / Virus Database: 270.5.3/1564 - Release Date: 21.07.2008
06:42
[Non-text portions of this message have been removed]