需要一点帮助,我想从某个表中获取数据,该表显示具有其唯一发票编号和开票日期的条目。但是它不接受我需要的ORDER BY排序。它迫使我执行GROUP BY子句,其所有结果显示相同的日期。 我该怎么办?
select tmatter as 'Project',
tinvoice as 'Invoice #',
tbilldt as 'Invoice Date',
sum(tworkdol) as 'Transfer',
sum(tbilldol) as 'Billed'
from timecard where tmatter in
(select mmatter from matter where mclient in ('00267051'))
and
tbatch in (select bbatch from batch where bfindt between '03/02/2019' and '04/01/2019')
order by tbilldt
Project Invoice # Invoice Date Transfer Billed
test proj1 6584923 3/25/2019 11,623.75 9,208.75
test proj1 6589826 4/12/2019 4,117.50 3,417.50
test proj2 6584924 3/25/2019 9,923.75 9,923.75
test proj3 6582567 3/15/2019 20,099.75 20,099.75
test proj5 6589345 3/20/2019 600.00 600.00