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.
James Chapman — — source: Informix-list mailing list archive (1991-1998)
Martin Berns wrote:
>
> Hi,
> try the following statement against stores7:
>
> select count(*) * 100/(select count(*) from cust_calls) percent
> from cust_calls where call_code = 'I';>
> Surprise (at least to me): it works!
> Syntax say select-list may consist of ecpressions only and
> a select-statement isn't an expression.
> Am i missing something?
> martin
This is legitimate Entry Level SQL according to ANSI X3.135-1992
(aka SQL 92). A value expression can be a scalar subquery.
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.