Results 1 to 3 of 3

Thread: Total length

  1. #1
    Join Date
    Jul 2004
    Posts
    268

    Unanswered: Total length

    Hi all,

    I have a query that looks like this:

    select length((col1)||') '||upper(col2)||' '||upper(col3)||' '||
    upper(col4)||' '||col5||chr(11))

    FROM table1, table2

    It returns the following results:

    24
    27
    43
    53
    28

    I need to get the total of all these numbers. How can I accomplish that?

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    >FROM table1, table2
    nice Cartesian Product & likely not the correct results

    >I need to get the total of all these numbers. How can I accomplish that?
    use SUM() function
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Jul 2004
    Posts
    268

    Total length

    Thanks, it worked

Posting Permissions

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