Results 1 to 2 of 2

Thread: SQL left join and is null problem

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Posts
    175

    SQL left join and is null problem

    i have the folowing query
    Select *
    From PensiaNew right join GemelNew
    ON PensiaNew.Col002 = GemelNew.Col002
    WHERE ISNULL(PensiaNew.Col001)

    and get the folowing error
    "The isnull function requires 2 arguments"
    what 2 arguments should i insert into the isnull function in order that i wont see the null fields????

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: SQL left join and is null problem

    First: The value that SHOULD be returned if it's null. ISNULL(columnname, 'something')

    Second, your syntax is wrong.



    Select *
    From PensiaNew right join GemelNew
    ON PensiaNew.Col002 = GemelNew.Col002
    WHERE PensiaNew.Col001 = NULL

Posting Permissions

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



Click Here to Expand Forum to Full Width