Hidiho,
I have a bunch of data from elecrticity meters. It's values are taken every hour for a whole year.
Now i want to get them added and shown for every month. So that I get a table from Jan to Dec and its summed energyinformation. The Date-Type is "DD.MM.YYYY HH24"
.
Can I loop through the data and show every month in an extra table?
In Pseudo-Code it should look something like this:
For x in 1..12 loop
SELECT energie, time FROM tbl_energie
WHERE time LIKE '%.0' + x + '.12%' --(01.x.2012)
end loop;
Thanks for your help - Phips
DATE
type for yourtime
column? – beny23 Aug 20 '12 at 12:17