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.
David I. Berg — — source: Informix-list mailing list archive (1991-1998)
doctorq@sam (DoctorQ Komputery i Programy) writes:
>We've discussed problem with max() function with friends and we think that
>SQL syntax should be extended:
>There should be 'IS MAX' clause in WHERE section, similarly to 'IS NULL'
>clause.
>For example:
>select rowid from table where col is max
This is available using a self-join.
SELECT t1.rowid FROM table t1 WHERE t1.col =
(SELECT MAX(t2.col) FROM table t2);
(Aliasing the table names isn't required in this case; I _always_ do it in
a self-join for my own sanity.)
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.