Tell me, please, how to add missing data by the hour to the current table (DataTable) by a query. Example: Current table:
Region User date hour pcs 2 131 01.01.2018 1 9 2 131 01.01.2018 2 9 2 131 01.01.2018 4 9 2 131 01.01.2018 6 9 2 262 01.01.2018 1 9 2 262 01.01.2018 4 9 2 262 01.01.2018 1 9 2 131 02.01.2018 2 7 2 131 02.01.2018 4 7 2 131 02.01.2018 6 7 Need to:
Region User date hour pcs 2 131 01.01.2018 1 9 2 131 01.01.2018 2 9 2 131 01.01.2018 3 0 2 131 01.01.2018 4 9 2 131 01.01.2018 5 0 2 131 01.01.2018 6 9 2 131 01.01.2018 7 0 etc.
Note - Hours (from 1 to 23), months (from 01 to 12)
DISTINCT dateand with the DATEADD function generate all possible date-hour pairs. To the resulting set prileftjoynite data table. - Akina