How to handle NULL in SQL

  Рет қаралды 3,154

Oracle Developers

Oracle Developers

Күн бұрын

Пікірлер: 2
@dominiquefortin5345
@dominiquefortin5345 2 жыл бұрын
I prefer thinking of Unknown as Null and like the zero in multiplication it is absorbant for a lot of comparator operators (=, , =). So instead of having 4 states (true, false, null, and unknown) to consider, when I evaluate a Boolean expression I use only 3 states (true, false and null). And NULL when is the final value evaluates to FALSE in a WHERE predicate or in a WHEN and IF statement. Also, it mirrors the uses of the empty set (∅) when you use null with the operator AND (equivalent to intersect operator (⋂) for sets, not to confuse with INTERSECT used between multiple SELECT statement) and the operator OR (equivalent to union operator (⋃) for sets ). So, (NULL AND Y) ≡ NULL and (NULL OR Y) ≡ Y. The same as (∅ ⋂ Y) ≡ ∅ and (∅ ⋃ Y) ≡ Y. Or as (0 × Y) ≡ 0 and (0 + Y) ≡ Y.
@POWERTOKNOW
@POWERTOKNOW 2 жыл бұрын
Good Video ,The ONLY thing it did not cover with respect to NULLS is the Behaviour of NULLS wrt to GROUP BY Clause.
Use Case: Oracle Machine Learning in football - Expected Goals
45:04
Oracle Developers
Рет қаралды 1,3 М.
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 2,1 МЛН
How I Turned a Lolipop Into A New One 🤯🍭
00:19
Wian
Рет қаралды 13 МЛН
Working with SQL NULL values | Null Handling Functions
11:18
Ankit Bansal
Рет қаралды 22 М.
5 Ways to Improve Your SQL Queries
10:04
Kahan Data Solutions
Рет қаралды 93 М.
Advanced SQL Tutorial | String Functions + Use Cases
13:49
Alex The Analyst
Рет қаралды 179 М.
This Theory of Everything Could Actually Work: Wolfram’s Hypergraphs
12:00
Sabine Hossenfelder
Рет қаралды 650 М.
Which Database Model to Choose?
24:38
High-Performance Programming
Рет қаралды 59 М.
What is Null - NVL, NVL2. Coalesce - SQL Interview Question
10:28
Praveen Kumar Bommisetty
Рет қаралды 8 М.
SQL | NOT IN Vs NOT EXISTS (Which one to use?)
10:03
Learn at Knowstar
Рет қаралды 11 М.
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 82 М.
SQL Query to remove Duplicate values from table. Session 3
20:31
@Sunny Tech Guru
Рет қаралды 12 М.
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 2,1 МЛН