I am using the following SQL statement on a MySQL db..
SELECT country,DisType, DisSubset, DisName, COUNT(DisType) as totalEvents, ROUND(AVG(killed),1) as averageKilled, ROUND(AVG(injured),1) as averageInjured, ROUND(AVG(homeless),1) as averageHomeless, ROUND(AVG(Affected),1) as averageAffected, ROUND(AVG(TotAft),1) as averageTotAft, ROUND(AVG(DamageUS),1) as averageDamageUS from emdat where DisType LIKE 'Drought' group by country order by country ASC
and I also use a statement much like the one above, except with the added AND clause "AND year BETWEEN 1982 AND 1983" ,
Now, I want to compare to two statements...however, I am running into a problem where lets say Afghanistan does not have any Drought events between 1982 and 1983, but it does have Drought events outside of those years. So in my first SQL statement, I don't want Afghanistan listed at all.
what do i need to add to make that work?