Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 COALESCE and ISNULL

Author  Topic 

jweizman
Starting Member

27 Posts

Posted - 2001-05-01 : 14:47:19
Hi
I have read the SQL Team article about the use of COALESCE instead of dynamic SQL.
I like the idea.
However it doesn't work for me...
I have some fields :
FirstName LastName DOBirth
they are all nvarchar(50).
Sometimes one of the fiels is NULL sometimes 2

ex :
FirstName LastName DOBirth
Jonathan Null Null
John Smith Null
John Doe 06/04/56

when calling the SP presented in the site article with 'John' it will return only the 3rd line.. because on the second one there is a null and i search on the 3 fields

Any idea ?
I have read some answers posted in the forum but did not work for me...
Jonathan
But I want the second line too !

   

- Advertisement -