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.
Mark Denham — — source: Informix-list mailing list archive (1991-1998)
Try this
select unique t1.id
from your_table t1
where 0 = (select count(*)
from your_table
where t1.id = id
and am_col IS NOT NULL
and pm_col IS NOT NULL
and st_date between <date1> and <date2>)
I have not tried it, so I am noty guaranteeing it will work. Also its not
very efficient.
Mark Denham
BBC
London, UK
Mark.Denham@bbc.co.uk
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.