mysql - VB.NET adding Rows and columns -


I am one way to add more than one amount to different columns in a certain date_code, Add quantity to the column, but I have no idea how to add more than one column rows, if you say to me, then my SQL database is as follows:

  Date amount 1 Zodiac 2 Zodiac 3 Zodiac 4 Zodiac 5 02/10/2014 2 3 6 0 5 02/10/2014 3 1 2 0 3 02/10/2014 0 4 6 6 2 02/10/2014 2 9 3 6 02 / 10/2014 7 0 8 2 9  

IM requires the total amount in the same date range.

Total will: 71

Any help will be great

Many thanks, Pete

This is the code which I have found so far Adds the amount, but only in one column:

  join () Cmd.CommandText = "SELECT SUM (zodiac 1) sqlccmbuildtimecount from WHERE datevar = '" & amp; Temp_day & amp; "/" & Amp; Temp_month & amp; "/" & Amp; Temp_year & amp; "'" Endvalue Text = CMD.extetcakler () disconnect ()  

I set temp_day for "02", "temp_month" for "10" and temp_year for "2014"

is not a sum of 71, should be 89

As_lotus said,

< P> SELECT SUM (amount 1) + SUM (amount 2) + SUM (amount 3) + SUM (amount 4) + SUM (amount 5) to sqlccmbuildtimecount WHERE datevar = '' & amp; Temp_day & amp; ; "/" & Amp; Temp_month & amp; "/" And temp_year & amp; ""

Comments