How NULL values work in SQL queries | SQL Interview Question

preview_player
Показать описание

============

============
The camera gear I use in my Videos

============
Connect With Me on My Social Media

============
FAQ
Which book to refer to learn -

============
AFFILIATE DISCLOSURE:
#rebellionrider

=============
In this SQL interview question breakdown, we dive into the intriguing world of NULL values. 🤔 Ever wondered what happens when you compare NULL to another NULL? 🤷‍♂️ I explore the unexpected behavior, clarify the logic, and reveal why NULL doesn’t play by the usual rules. Whether you’re a seasoned SQL pro or just starting out, this video sheds light on a fundamental concept that can trip up even the most experienced programmers. 🚀

🎯 Key Takeaways:

Learn why NULL represents the “unknown” or “missing” value.
Discover the ternary logic behind NULL comparisons (True, False, and Unknown).
Uncover the best practices for handling NULLs in your SQL queries.
Get ready to impress in your next technical interview! 💡
👍 If you found this video helpful, don’t forget to hit the like button and subscribe for more SQL tips and tricks! 📺🔔"
Рекомендации по теме
Комментарии
Автор

I am one of your students since 2015 and cracked many interview watching your video

gitagyan
Автор

Technically it should be null. Null = null is null because you don't know it what null is. (I.e. null = null unknown)

paulvanderveen
Автор

Simple for who .., cause you knew the answer before or folks who never knew it .., rote is the way

baner
Автор

False because null values can't be compared

TAGamerz
Автор

I knew this, it’s a bad feature. Unintuitive, reduced functionality, produces unexpected behavior. HOWEVER given the use case of the language if it wasn’t like that it would be really annoying.

_sleepy-