Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2004
    Posts
    2

    Question Unanswered: Can I Use a subquery in NVL ? (in 8.0.5)

    Hello:

    Please, I need to know if I can use an expresion:
    > NVL((SELECT...),0)
    in others words, a subquery inside NVL() in ORACLE 8.0.5
    I always obtained errors while trying.
    Thanks very much.
    Rob

  2. #2
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Wink

    If you obtained erros, then in may not be possible!
    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

  3. #3
    Join Date
    Mar 2002
    Location
    Reading, UK
    Posts
    1,137
    I dont think you can in 8.0.5 but what you might be able to use an inline view i.e.

    select nvl(col)
    from (subquery) x, y
    where x.id = y.id

    Alan

  4. #4
    Join Date
    Nov 2004
    Posts
    2
    OK. Thanks very much.
    My best regards.
    Rob

Posting Permissions

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