I am using C# and SQL Server.
I have to retrieve the prices of particular products from a table and make use of these values later for computation.
For eg.
I use the following query and store it in a string.
string str = " select cat_price from category where cat_itemID= 'A001'" ;
Now I need this particular value retrieved here to be stored in a variable for further computation
for eg.
int price_amount;
and I need to use mathematical operations. How do I do this?