hi there
I have this table
CREATE TABLE `sample`.`user_production` (
`user_id` INT NOT NULL ,
`1hour` INT NOT NULL ,
`2hour` INT NOT NULL ,
`3hour` INT NOT NULL ,
`4hour` INT NOT NULL ,
`day` DATE NOT NULL,
INDEX ( `user_id` )
)
so...every user work and makes a number of products in each hour.
I need to create a view which keeps(sum) the production per hour of all the users grouped by day.








Bookmarks