I need to understand the load of database to see bottlenecks. For that I want to create a frequency distribution by hours for all documents. Can someone help with that? The problem is that the Data composition schema does not allow to sel ect from all documents, but from a specific one only. Here is my query:
| Code |
|---|
SEL ECT HOUR(CustomerOrder.Date) AS Hour, COUNT(CustomerOrder.Ref) AS Count FR OM Document.CustomerOrder AS CustomerOrder GROUP BY HOUR(CustomerOrder.Date) |
And the second problem is that hours are grouped, but not distributed fr om 1 to 24:
Desktop version