Microsoft
Software
Hardware
Network
Question : how to count the sum?
I have a
select count(*) as orderQTY, order_date from product
group by order_date
--the output is
orderQTY order_date
234 6/2/2010
200 5/20/2010
90 3/1/2010
28 1/29/2010
I need sum this output orderQTY's total in the select query, how can I do this?
Answer : how to count the sum?
See this as well:
SELECT [OrderQty],Count(*) as OrderQty_Total
,[order_date]
FROM [Practice].[dbo].[product]
Group by [order_date],[OrderQty]
Random Solutions
How to remove new line from a string
Using cfheader and cfcontent to obfuscate download path.
how to optimize performance of Terminal Server connections
Need help with Syntax - DnsAvoidRegisterRecords
How to block video and audio streaming in ISA 2006
How to upgrade RAM on a Server 2003 Standard SP2
Insert into MySQL Table from MSSQL Insert Trigger
Mac backup: unsupported file characters
Public Folder "Pretty" names not showing up in GAL
Info@... users Not receiving email