kristinaloupe
Technical User
I am a little new at this.. I am trying to write a statement that will allow me to
select tablea.incident_no, tableb.event_type, tableb.event_date from tablea, table b
where tablea.incident_no = tableb.incident_no
and event_date <= getdate()
and not exists (select * from tableb.event_type where
tablea.incident_no=tableb.incident_no)
tableb contains several events .. I want to see only the incident_no where tableb does not have a "hearing" event greater than today.
Can anyone help me out? Thanks in advance for your time!
select tablea.incident_no, tableb.event_type, tableb.event_date from tablea, table b
where tablea.incident_no = tableb.incident_no
and event_date <= getdate()
and not exists (select * from tableb.event_type where
tablea.incident_no=tableb.incident_no)
tableb contains several events .. I want to see only the incident_no where tableb does not have a "hearing" event greater than today.
Can anyone help me out? Thanks in advance for your time!