I have a table with the date and data elements in it.
I need to produce a resultset in the following manner:
On columns: Yesterday, WeekToDate, MonthToDate, Last Month, YearToDate
On rows: data element 1, data element 2, data element 3, ....
What's the best way to query this table? It has to be fast for the front end.
Thank you