Lec-113: How Aggregate Functions work on NULL Values | SQL | DBMS

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

If an aggregate function against a column that contains nulls is executed, the function ignores the nulls. This prevents unknown or inapplicable values from affecting the result of the aggregate.

CODE:
Step1: Create table t1 ( A int, B int);
Step2: Insert into t1 values(1,null);
Insert into t1 values(2,null);
Insert into t1 values(3, null);
Insert into t1 values(4,null);
Insert into t1 values(null,null);
Step3: Select count(*) from t1;
Select count(A) from t1;
Select count(B) from t1;

►Database Management System(Complete Playlist):

Other subject-wise playlist Links:
--------------------------------------------------------------------------------------------------------------------------------------
►Design and Analysis of algorithms (DAA):
►Computer Architecture (Complete Playlist):
► Theory of Computation
►Artificial Intelligence:
►Computer Networks (Complete Playlist):
►Operating System:
►Structured Query Language (SQL):
►Discrete Mathematics:
►Compiler Design:
►Number System:
►Cloud Computing & BIG Data:
►Software Engineering:
►Data Structure:
►Graph Theory:
►Programming in C:
►Digital Logic:

---------------------------------------------------------------------------------------------------------------------------------------
Our social media Links:
--------------------------------------------------------------------------------------------------------------------------------------
►For Any Query, Suggestion or notes contribution:
Рекомендации по теме
Комментарии
Автор

thank you sir aap jaise YouTubers ki wajah se job lag gayi ♥️

VishalJangid
Автор

And o have completed your all videos of data base management system.
I really want to say those videos are very very useful for me .
As a ECE STUDENT
When I started the dbms from a book then I can't able to understand about the dbms after seeing your videos I can visualize everything . Thank you sir .
For you I can able make my concept about dbms strong .
Than you so much...
Love from West Bengal ❤

DwitaRoy
Автор

Sir apne es topic ko etna achacha se samjhaya ki mai ese kabhi nahi bhulunga, Thank you so much sir

shaileshpandit
Автор

Thank you for this. Your big fan from Pakistan 💚

mariumarif
Автор

Thank you so much sir for your great efforts...watched and liked all 113 videos of yours...was amazing journey sir...God bless you sir❤️

deepali
Автор

You are the great teacher sir...jo student aapse ek baar study kr gya... definitely wo successful hoga....bcoz u r way of teaching is such a amazing...⭐

nikitapanwar
Автор

Sir sql se related sab video banao pls..you are my favorite guru..

ashitoshthakur
Автор

He is also Assistant professor in Lovely professional University... 🥰🥰❤️❤️ Best teacher in LPU 🥰

AbhishekKumar-fkte
Автор

Hi Sir, Happy Teacher's Day.
your videos have helped me a lot.
God bless teachers like you.
Thanks a lot.

pushkarratnaparkhi
Автор

Bahut Bahut Dhanyavadh Bhai ye video ke liye

shanmukhasrinivas
Автор

Thank you so much sir♥, completed both OS and DBMS series, All the best guys those who are having placements going on ✨
Would come back to comment after placement

subhajeetchakraborty
Автор

Sir in previous video regarding the sum of the salary you just ignored and counted along with the null while doing avrg but in this video you didn’t count the null ..?

Dailyvideoss
Автор

Sir ap ugc net ka bhi course start kr dijye please apka teaching style bahut accha h

mariyamfatima
Автор

Sir LIC AAO IT Officer ka mains k liye professional knowledge ka kuch kijiye sir please

swarnadeepdey
Автор

If we try to show null value with gives value means id in (null, 1, 2) then why this didn't work? It doesn't give t data of null value.

radhakale
Автор

Thank you so much Sir please aap gate preparation ke liye best book suggest kariye CSE branch ke liye please please please sir

er.ankitasingh
Автор

Suppose i create a table for set language i have a attributes of tamil, english, hindi means. If i select english balance attribute automatically gets null value how we write it in query

vasudevan
Автор

Sir, Please Provide NIELIT O, A, B, C Level Courses Also. Everything is Finest Here. I am Searching for Information Security Management.

nikhilpatel
Автор

Bhaiya digital electronics and microprocessor pe upar full playlist kb aaega....usme sirf number system ki 14 videos hi hai...

urmi
Автор

Select count ( null) from dual what is output

prajuyaragorla