Subject | [firebird-support] Re: For listing purposes flattening a many-side-table of a one-to-many relation |
---|---|
Author | Svein Erling Tysvaer |
Post date | 2009-07-04T22:58:26Z |
> but even something simple like:This bit is simple, just do
> SELECT LIST(maccounts.ccode, ',')
> FROM maccounts
>
> will return duplicates as comma separated, so a 100 records with 25 values repeated will still return a string with 100 values comma separated.
SELECT LIST(DISTINCT maccounts.ccode, ',')
FROM maccounts
HTH,
Set