http://qs321.pair.com?node_id=783072


in reply to Re^2: Help with removing dupes from a string with perl
in thread Help with removing dupes from a string with perl

In Sybase you can use a a group by and a having clause, even without using any aggregates in the main query.

So something like

select jobname, status, timestamp, comment from the_table group by jobname having timestamp = max(timestamp)
should return something reasonable without the need for a sub-query.

Michael