I am working on a database of a large retail store. I have to query data from multiple tables to get numbers such as revenue, raw proceeds and compare different time periods