Using SQL NULLIF with Missing Values | Essential SQL

Publicado em: 27 Julho 2021
no canal de: Essential SQL (EssentialSQL)
2,167
62

The NULLIF is a nice short hand way to compare for missing values within columns contains both NULL and blank values.
--------------------
This video is part of my Beginner Learning series. If you're interested in learning SQL subscribe to @Essential SQL and then check out our Beginner Learner Playlist.

Of course, I also encourage you to visit https:\\www.essentialsql.com to learn even more!

----------------------
Here are the example I used in the video, use them to learn more about NULL IF and play around with it's features:

SELECT FirstNAme, MiddleName, LastName
FROM Person.Person
WHERE NULLIF(MiddleName,'') IS NULL



SELECT FirstNAme, MiddleName, LastName
FROM Person.Person
WHERE case when MiddleName = '' then NULL else MiddleName end IS NULL



SELECT FirstNAme, MiddleName, LastName
FROM Person.Person
WHERE IIF(MiddleName = '',NULL,MiddleName) IS NULL


Nesta página do site você pode assistir ao vídeo on-line Using SQL NULLIF with Missing Values | Essential SQL duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Essential SQL (EssentialSQL) 27 Julho 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 2,167 vezes e gostou 62 espectadores. Boa visualização!