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)
 SQL - Select - bit ??

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-04-08 : 09:54:32
Bonnie writes "I have a select statement:

Select * from tblRental
where RentalsPosted = null

Currently, the RentalsPosted field is a bit type and is currently reading null

I want all records from this table with null in the Rentals Posted field, so I can manipulate the date, add to other tables, and change the bit to 1.

When I run the above select statement, SQL returns 0 records.

I have tried:

where RentalsPosted <> 1
where RentalsPosted = 0

etc,

When I select everything from the tblRental table SQL returns 14 records.

I am running Windows XP and SQL Version 7.0"

graz
Chief SQLTeam Crack Dealer

4149 Posts

Posted - 2002-04-08 : 09:54:32
Select * from tblRental
where RentalsPosted IS null
Go to Top of Page
   

- Advertisement -