I am a beginner programmer wanna ask about simple SUM query for C#. here is the case:
I have a table called "revenue"
, and that table consist of 5 columns. they are Bulan
, Target
, Realisasi
, Target_YtD
, and Realisasi_YtD
. for column Bulan
, I manually inserted 12 data. they are January
, Februari
, March
, and so on...
For column Target
and Realisasi
also I inserted data manually with INT
data type.
Now, I wanna add up the January's Target + February's Target + March's Target
, and then the value of that calculation is gonna fill March's Target_YtD.
Can somebody tell me the query of that? I hope anyone can help me this time, I really appreciate that. Thanks