column sum

  • select filesize

    from o_file

    where volid = 2 and groupid = 200

    The rusult is multiple rows of filesize. What I need to no is:

    1. the sum of all the rows

    2. what it equals to in GB

  • select sum(filesize) as MB, sum(filesize)/1000 as GB
    from o_file
    where volid = 2 and groupid = 200
     

    ------------------------------
    The Users are always right - when I'm not wrong!

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply