<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi all,</div><div><br></div><div>I would like to set up a "Power Recording Rule" which records all PBS movies as long as the genre is NOT Comedy, Historical, Romance or History.</div><div><br></div><div>I am able to achieve rejecting one genre with a syntax like this:</div><div><br></div><div>channel.callsign LIKE 'PBS%HD' AND program.category_type = 'movie' AND 'Comedy' <> ALL (select genre from programgenres where program.chanid=programgenres.chanid AND program.starttime=programgenres.starttime)<br></div><div><br></div><div>However, that gets ugly real quick, if I want to negate more than one genre:</div><div><br></div><div>channel.callsign LIKE 'PBS%HD' AND program.category_type = 'movie' AND 
'Comedy' <> ALL (select genre from programgenres where 
program.chanid=programgenres.chanid AND 
program.starttime=programgenres.starttime) AND 'Historical' <> ALL (select genre from programgenres where 
program.chanid=programgenres.chanid AND 
program.starttime=programgenres.starttime) AND 'Romance' <> ALL (select genre from programgenres where 
program.chanid=programgenres.chanid AND 
program.starttime=programgenres.starttime) AND 'History' <> ALL (select genre from programgenres where 
program.chanid=programgenres.chanid AND 
program.starttime=programgenres.starttime)</div><div><br></div><div>I figured I could put the sub query into a derived table and then just use that when doing the "genre <> ALL (results)" but either that does not or I have not figured out the syntax.</div><div><br></div><div>Anyone have any suggestion?</div><div><br></div><div>Thanks,</div><div><br></div><div>John<br></div><div><br></div><div><br></div></div></div></div>