0
我需要帮助。 我想这样从SQL中选择数据。总计是count(*) * 7500
的结果。从sql中选择数据并得到多个结果
| fullname | count(*) | total |
+==========+==========+=======+
| angelis | 3 | 22500 |
| freed | 2 | 14000 |
| debora | 4 | 28500 |
我用这样的查询
select fullname, count(*) as jml
from pms_occupancy
where month(date)='02'
group by fullname
,它显示了下面的代码
什么是你正面临着与您的查询问题的输出? – Sinstein
您可以发送样本表结构.. –
您正在使用哪些DBMS? Postgres的?甲骨文? –