![]() |
|
Archives of the TeradataForumMessage Posted: Thu, 24 Feb 2011 @ 19:33:43 GMT
Isn't it just:
select rpt_id
from
(
select rpt_id, min(bookmark)
from table
where bookmark in ('A','D')
) dt
;
David W. Roth
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||