This is the Sql statement I am using behind a button in c# which
will populate a DataGridView
SqlDataAdapter = new SqlDataAdapter(@"SELECT detail.branch,
SUM(CONVERT(DECIMAL(8, 2), detail.total)) AS TOTAL,
SUM(CONVERT(DECIMAL(8, 2), detail.typeA)) AS SALES
FROM detail
I need to extract and store the value of TOTAL so I can use it in another
Sql Statement. Is this possible ?
3 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manas MohapatraPosted Aug 2, 2015, 12:47 AM
peter piperPosted Aug 1, 2015, 4:40 PM
Manas MohapatraPosted Aug 1, 2015, 2:26 PM