Jose Palmieri

Jose Palmieri

  • NA
  • 10
  • 908

How to get Sum(value) between two dates using MySQL and CSharp?

Mar 21 2022 10:55 PM

I'am using the SQL bellow, MySQL and C#

string str = "Select Sum(value) from <table> where <field = xxx> and date between (date1) and (date2)";
 

I need to get the result of this SQL on C#, how do I do that?


Answers (2)