I have a table District(Parent table) and college (Child table) which are connected with one-to-many, one District may have multiple Colleges. Here district_id acts as a Foreign key in the College table. I am trying to retrieve districts which doesn't have any colleges associated with it using the below query but it doesn't give the correct results
select * from district where district_id not in (select district_id from college)