<div dir="ltr"><div><div><div><div>Long story short: Trying to compose a query to list upcoming recordings of a particular show (mainly for curiosity, but also to knock the rust off my SQL knowledge), but I'm at an impasse.<br><br></div>I can see the shows that are upcoming with:<br><div style="margin-left:40px">select recgroup, program.seriesid, program.programid, syndicatedepisodenumber, program.starttime, program.title, program.subtitle from program join record where program.seriesid=record.seriesid and program.title='Gunsmoke' order by program.starttime;<br></div><br>and I can see the recording rule(s) with:<br><div style="margin-left:40px">select recgroup, seriesid, programid, startdate, title, subtitle from record where title='Gunsmoke' order by startdate ;<br></div><br></div>but I haven't figured out how to show only the upcoming shows that <i><u><b>will</b></u></i> be recorded.  I was trying to at least exclude those that had already been recorded by doing an outer join against the results of the first query above where recorded.programid=program.programid, but I can't figure out (forgot or there's a syntax trick missing) to take the first query's results as a temporary table to do the join against the recorded table.<br><br></div><div>Variations on the following don't work:<br><div style="margin-left:40px">select recgroup, program.seriesid, program.programid, syndicatedepisodenumber, program.starttime, program.title, program.subtitle from ( program join record where program.seriesid=record.seriesid and program.title='Gunsmoke' order by program.starttime ) outer join recorded where recorded.programid=record.programid ;<br></div><br></div>Any help would be appreciated.<br><br>--<br></div>Craig.<br></div>