2 -- Create table with position for every hour
3 -- File ID: 506d4180-586e-11e5-8baa-fefdb24f8e10
8 \echo ================ Update hours ================
10 DROP TABLE IF EXISTS hours;
18 INSERT INTO hours (date) VALUES (
22 (SELECT min(date) + '1 hour' FROM logg)
24 (SELECT max(date) FROM logg),
29 UPDATE hours SET coor = findpos(date);
30 UPDATE hours SET name = clname(coor), dist = cldist(coor);