Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2003
    Posts
    21

    Unanswered: select sum query

    I'm doing a select sum(x) ... query. Is there a way to get the query to return a result row with '0' if it doesnt find anything ?

    THanks

  2. #2
    Join Date
    Sep 2002
    Location
    UK
    Posts
    5,171
    Provided Answers: 1

    Re: select sum query

    Originally posted by mojojo82
    I'm doing a select sum(x) ... query. Is there a way to get the query to return a result row with '0' if it doesnt find anything ?

    THanks
    select nvl( sum(x), 0 )
    from ...

Posting Permissions

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