none
query

    Question

  • i am having a database and in windows form i am having 2 textbox .in that textbox i will enter 2 numbers in textboxes.Then i have to retrieve data from databases related to that numbersand i have to sum up the values

    my database will be like this

    no    name      year

    1      nan           23

    2       nad          34

    3       mam         32

    4       rgh            24

    5        hui            21

    if i give 2 to 4 in textboxes

    2       nad        34

    3       mam       32

    4        rgh         24

    and value in the year column should be added (34+32+24) and total should be display
    Friday, July 26, 2013 5:18 PM

Answers