At the moment I have a view created, see it here in the answersee it here in the answer. How can I create a function based on that crosstab()
query , so I can pass a date, and get data for the specific date?
Also is it good practice to call that function multiple times and pass different dates to fill a chart (for example)?