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.
Obnoxio The Clown — — source: Informix-list mailing list archive (1991-1998)
>hi all:
> Is there anyway to use an expression in select statement and refer
>to that expression later on in where or gropuby?
> like the following:
>
> select col.a+col.b as exp1 from tablename
> where exp1 = '199801'
> groupby exp1
>
> possible?
select col.a+col.b exp1 from tablename
group by 1
You might be able to use a HAVING clause to to fake a WHERE clause, I
don't have a server handy to try it out.
HTH.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.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.