hmmmm, I don't think that will work, i'm only using one table. And actually, Perhaps I should have said more about how the db is set up, and how I want it to work (the code I have above is just test code really) The DB is set up something like this
Country, Type, Year,Killed, Injured, Homeless
example data:
Afghanistan, Drought, 1954, 51, 0, 0
and so on
so now I need to retrieve all that data. And I want the layout to be like this
Type : Total Number of Events, #Killed, #Injured, #Homeless
so if you have 21 droughts listed under Afghanistan, and say 20 Earthquakes something like this
Flood: 21, 1000, 30, 10
Earthquake: 20, 100, 20, 200
and so on for each even type that is listed in the database. Is there some effecient wy of doing this, or Am i going to have to make a bunch of different queries?