我有一个名为sales
5 个字段的表:
id
date
id_store
id_customer
price
表customers
:
customers.id
customers.name
和表stores
:
stores.id
stores.name
我想得到这个结果:
January, Total customer name1, Total customer name2 ..., Total store name 1, Total store name 2...
February, Total customer name1, Total customer name2 ..., Total store name 1, Total store name 2...
March, Total customer name1, Total customer name2 ..., Total store name 1, Total store name 2...
April...
可能吗?