Add data from a column

Asked

Viewed 494 times

4

id .. product...value...id_sale...total value

01 .. Pen.... 2,00.... 1....... 30,00

02 .. Rubber. 4,00.... 2........... 25,50

03 .. .Lapis...... 5,00.... 1........ 10,00

04 .. Pointer 9,00...1........... 200,00

Good considering this table, I would need to add all the valers of the column valortotal but only those who have the id_venda equal to 1 how I would do it ?

ex : ID_VENDA 1 TOTAL VALUE 240,00 .

  • these data are coming from some database? Which?

  • They are, from Mysql

1 answer

9


  • Thank you, I break a branch ;)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.