Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
1.20/5 (2 votes)
See more:
I dont know where to make a function so that it can do net total with price and quanity which is fetched from database . So please help me.
Posted
Comments
Maciej Los 4-Jan-14 7:17am    
Not enough details!!!

1 solution

Try the following query to multiply the Price and Quanity column.
SQL
SELECT Price * Quanity FROM yourTableName
 
Share this answer
 
v2
Comments
Member 10403595 4-Jan-14 7:05am    
No, i want to do multiplication of quantity and price but where i should do that??
Thomas Daniels 4-Jan-14 7:08am    
I updated my answer.
Kishor Deshpande 4-Jan-14 7:27am    
Better you do fetch the price and quanity from database and then "totalprice" calculate in C# code and not in DB query.

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