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的?甲骨文? –