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
 Transact-SQL (2000)
 serching NULLs

Author  Topic 

ovince
Starting Member

32 Posts

Posted - 2006-11-10 : 04:45:47
hi,


I found this

select * from delTest where plate is null


as a nice tool to find NULL values in one column. What if I have a table with many columns? Is there a way to find rows with NULL? I mean, I am sure that there is a way but donk now it

many thanks

Oliver

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-11-10 : 04:56:18
Clearly you will have to check each column for NULL in the same way:

Select * from Tbl
Where col1 is null or col2 is null or col3 is null...


Harsh Athalye
India.
"Nothing is Impossible"
Go to Top of Page

ovince
Starting Member

32 Posts

Posted - 2006-11-10 : 05:07:22
so for 1000 column-table 1000 OR commands? Is it posible?
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-11-10 : 05:23:04
For a 1000-column table, you need to redesign your system.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

ovince
Starting Member

32 Posts

Posted - 2006-11-10 : 05:33:57
:))))) Kettö sör for this also Peter
Go to Top of Page
   

- Advertisement -