How would I do the following in SQL:
select distinct(territory_id) from main_territorypricing
"minus"
select distinct(territory_id) from main_territorypricing where store_url is not null
Basically, I want all territory_id
s that are contained in the top line that are not contained in the second line.