Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Nick Leporacci, Jr. — — source: Informix-list mailing list archive (1991-1998)
Try :
select distinct <col1> from <table>
into temp <table2>;select distinct sum(<col1>) from table2;
Nick Leporacci
Kyle Campbell wrote in message ...
>According to the BNF Grammar in the Informix Guide to SQL Syntax the
>following statement should be legal:
>
>Select distinct ( sum (distinct <col1> ) ) from <table>>
>It doesn't like the fact that I'm using nested 'distinct' key word. We
>need this or we'll have to rework our logic for other queries.
>
>Thanks,
>Kyle Campbell
>kyle@alh.com
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.