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
CSS
Windows 7 roaming profiles
How to add a new value from a form onto a subform
Exchange 2007 has stopped working
Cisco ASA CSC setup
Teaching iPhone app creation...Any advice?
Operator '=' is not defined for type 'DBNull' and type 'Integer' - how to fix
How do I identify if I have RAID array setup?
detect startmenu sortcuts who's target no longer exists
Access 2010 - packaging a database for distribution