|
Posted by Akber Alwani on October 22, 2007, 1:08 am
Please log in for more thread options hi Jason, Try this below is the date paramter you can enter your own date. If
works rate this.
Select SupplierName,Sum(TransactionEntry.Price) Sales
from [Transaction]
INNER JOIN TransactionEntry On
[Transaction].TransactionNumber=TransactionEntry.TransactionNumber
LEFT JOIN Item ON TransactionEntry.ItemID=Item.ID
LEFT JOIN Supplier ON Item.SupplierID=Supplier.ID
WHERE [Transaction].Time between '2007-01-01' AND GetDate()
Group by SupplierName
"Jason" wrote:
> I would like to get output of total sales by supplier via SQL with output
> like:
>
> Supplier Name Sales
> --------------- --------------
>
>
>
> If the sales can be formatted like #,###.##, that would be great.
>
> Can someone assist with the SQL query?
>
>
>
|