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 ?

Manas MohapatraRank #182 · 13.2K reputationPosted Aug 1, 2015, 10:26 AM EDT
peter piper20 reputationPosted Aug 1, 2015, 12:40 PM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Aug 1, 2015, 8:47 PM EDT