The relations are:
Event (etype, description) primary key - etype
City (cname, country, population) primary key - cname
Disaster (cname, dyear, etype, casualties) primary key - cname, dyear
I need to write a query which tells which country faced all types (etype in relation) of disasters.
How do i do that?
I have this so far:
select country
from city natural join disaster, (select count(etype) as a
from event) as A
group by country, etype
having count(country) = max(A.a)