Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

revenue average per current month, last 3, 6 and 12 months

Language: Layout:
absolute service time: 0,53 sec 
edit mode |  history  | discussion
   postgresql_version
1 PostgreSQL 9.6.2, compiled by Visual C++ build 1800, 64-bit
   location count sum
1 c 2 131,17
2 b 2 128,28
3 a 2 99,35
   location revenue
1 a 20
2 b 40
3 c 60
   location revenue current_month
1 a 20 01.06.2017 00:00:00
2 b 40 01.06.2017 00:00:00
3 c 60 01.06.2017 00:00:00
   location current_revenue three_month_revenue revenue_month
1 a 20 49,68 01.06.2017 00:00:00
2 b 40 64,14 01.06.2017 00:00:00
3 c 60 65,59 01.06.2017 00:00:00
   location current_revenue three_month_revenue six_month_revenue revenue_month
1 a 20 49,68 49,68 01.06.2017 00:00:00
2 b 40 64,14 64,14 01.06.2017 00:00:00
3 c 60 65,59 65,59 01.06.2017 00:00:00

    
                
λ
.NET NoSQL database for rapid development