Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
select * from Dev_tab 
where isnull(status,'') not   in ('Cancelled','Completed')


What I have tried:

ProjectList = (From c In db.Dev_tab
                           Where c.Status <> "Cancelled" AndAlso c.Status <> "Completed"


when status is null in database, those records are not fetching and i need status with null as well
Posted
Updated 7-May-20 8:55am

1 solution

Try:
VB.NET
From c in db.Dev_tab
Where c.Status Is Nothing OrElse (c.Status <> "Cancelled" AndAlso c.Status <> "Completed")
 
Share this answer
 
Comments
Chinnu2020 7-May-20 15:06pm    
Thank u

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900