Click here to Skip to main content
15,896,359 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All
I developed a windows form application by using C# and SQL Server 2005. I used many tables in my database. There is a table namely "Sales_Details" in which a column 'Price' is existed. Now I want to show total price by calculating in loading the form.
Posted

1 solution

SQL
select sum(price) from sales_details
where ** whatever your criteria are **


will give you the total
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900