+ Reply to Thread
Results 1 to 3 of 3

SQL add returned values

  1. #1
    Registered User
    Join Date
    09-23-2010
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    97

    SQL add returned values

    Hi i have a database and i extract a number of values from it. e.g.

    Select number1,number2,number3 WHERE value = 'example'", conn

    i want to be able to add all these values together and then output that to a given cell..

    i know how to output to a cell just want a nice simple way to add them up

    any ideas?

    thanks
    Last edited by Jollyfrog; 10-21-2010 at 06:25 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: SQL add returned values

    Why not sum them in the SQL ?

  3. #3
    Registered User
    Join Date
    09-23-2010
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    97

    Re: SQL add returned values

    hmm.. thats a good point,

    i'll go do that

    thanks


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1