Hi - sounds easy but am stuck ;-)
How would i make the sql below display records with action.typeid = 1 ONLY if a record with action.typeid <> 2.
Table 'event' links the action records together ON action.eventid.
let me know if not making sense
How would i make the sql below display records with action.typeid = 1 ONLY if a record with action.typeid <> 2.
Table 'event' links the action records together ON action.eventid.
let me know if not making sense
Code:
select *
from event
INNER JOIN
(SELECT * FROM action WHERE typeid = '1' AND typeid <> '2') AS TA ON TA.eventid = event.eventid