So I was doing some computations in perl, and its on alot of data and I realized that i should be doing it in SQL. I have a table that contains hourly entries for 308 machines. I need to sum the values of one field for all machines of each type, and then return that value for each hour. I need to do this for all times between two datetime values. Is this hard?