【发布时间】:2022-01-21 08:19:03
【问题描述】:
我有一张桌子 room_details。现在,我只是在识别按位置分组的月份数据并计算 office_location_id,我该如何为此编写 MySql 查询?
这是我想要的:
Month------Location------office_location_id
January----location 1 --- 11
February---location 3 --- 25
March------location 4 --- 40
这是我的桌子:
【问题讨论】:
-
您的表架构中的位置和月份在哪里?