Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Output When We Write Null = Null in Where Clause
WhatsApp
Pramod Thakur
9y
3.9
k
0
0
25
Blog
In this blog we see the output of following query.
Query 1: Select * from sysobjects where null is null
Output
It return the total number of records of sysobjects.
Query 2: Select * from sysobjects where null = null
Output
It return 0 records of sysobjects.
Query 3: Select * from sysobjects where isnull(null,'')=''
Output
It returns the total number of records of sysobjects. The output of query1 and query3 is same.
I hope this is useful.
Up Next
Display Zero Instead of Null in Dynamic Pivot in SQL Server
Ebook Download
View all
Functions in SQL Server: Practical Guide
Read by 9k people
Download Now!
Learn
View all
Membership not found