I have one table METER with the primary key serial, another table TC with the primary key tc, and a third table History with the primary consisting of the 2 foreign keys serial and tc along with week and create_date. Every TC has 0 or more METER's. How do I write a script that will give me a list of all tc's who have a status of 1 that only have METERS with a status of 0?
METER HISTORY TC
serial serial tc
status week status
tc
create_date