Difference Between count(*) ,count(0),count(-1),count(col),count('youtube') | SQL Interview question

Difference Between count(*) ,count(0),count(-1),count(col),count('youtube') | SQL Interview question

Ankit Bansal

2 года назад

26,527 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@nocode659
@nocode659 - 11.05.2022 12:38

First view. Sir please share you you got into data analyst/engineer and courses you took sir please,..Big fan of you sir

Ответить
@abhishek_grd
@abhishek_grd - 11.05.2022 12:40

My day starts or end with your channel videoes for SQL.
Discipline , practice and conquer.

Can you share any python channel as well if you know ?

Ответить
@kadamteja5743
@kadamteja5743 - 11.05.2022 12:41

Hi Ankit, Thanks for the video...Just want to inform you that I have cleared interview as an azure data engineer in your former company deloi**e...your videos were very helpful in clearing the interview..🙂🙂

Ответить
@mayankpandey492
@mayankpandey492 - 11.05.2022 14:10

Thanks Ankit for video. 👍

Ответить
@vaibhavverma1340
@vaibhavverma1340 - 11.05.2022 15:32

Best as always :)

Ответить
@ririraman7
@ririraman7 - 11.05.2022 19:39

much needed!

Ответить
@prasantahota9137
@prasantahota9137 - 11.05.2022 21:59

Hi Ankit, could you make a video on substr and instr... Thank you for for sharing your knowledge in the best way

Ответить
@divyaaggarwal7824
@divyaaggarwal7824 - 12.05.2022 08:54

Wow, you explained it so well.
This is one of the most common questions asked !!

Ответить
@namanverma6509
@namanverma6509 - 12.05.2022 13:35

Thnx alot

Ответить
@sangam22-m
@sangam22-m - 13.05.2022 16:56

Congratulation for 7.89k Subscribbers.
Can you make a video on your Journey from First Job to till now? I believe it will really inspiring

Ответить
@trader_adda
@trader_adda - 14.05.2022 12:23

Hi can you also write a query to fiind no. of worrking days in a year

Ответить
@mjrk100
@mjrk100 - 15.05.2022 09:18

Hi Ankit. Really good video about differences in count.🙂
But waht is difference between
select distinct cloumn and
select with group by? And also using both inone select satement.
Could you please explain. 🙏

Ответить
@yashdhas8202
@yashdhas8202 - 29.05.2022 12:29

Hi Ankit, Can you please make video on consecutive numbers. It is question number 180 on leetCode

Ответить
@anujgupta8686
@anujgupta8686 - 01.06.2022 07:43

Which of the following statement correct?
Question to viewers.
a) Zero,blank,null are same and represent same data
b) Distinct considers Null as well.
c)count(distinct column name ) doesnot consider Null.
d) All are correct

Ответить
@chaitanyabansal292
@chaitanyabansal292 - 07.06.2022 13:46

Sir, please make similar content on python as well. Will be very helpful

Ответить
@shubhiverma2571
@shubhiverma2571 - 21.08.2022 08:54

please make one video on difference between group by and partition by

Ответить
@amazhobner
@amazhobner - 05.09.2022 13:03

Hi Ankit, another question being asked is that is there any difference in output time for query having count(*) VS count(1), basically is one faster than other or both will be executed in same time?

Ответить
@TrustinData
@TrustinData - 16.09.2022 21:40

Tqsm Ankit . Appreciate your efforts

Ответить
@sharu164
@sharu164 - 24.09.2022 17:27

Thanks you so much Ankit 😊

Ответить
@maheshbhadane1520
@maheshbhadane1520 - 26.09.2022 17:19

Thanks sirji....Please make more videos It help a lot

Ответить
@rajeshramisetti83
@rajeshramisetti83 - 06.10.2022 08:55

My doubt cleared Ankit. Thankyou

Ответить
@Aesthetically_Yours_
@Aesthetically_Yours_ - 20.10.2022 12:08

If there is nodifference then why is it *, 1 etc?

Ответить
@faizalmh7
@faizalmh7 - 04.11.2022 16:19

Thanks very helpful

Ответить
@Sprinkle-ru3eb
@Sprinkle-ru3eb - 08.12.2023 06:50

Why DB developer refer count(1) more than count(*)?

Ответить
@jasleenkaur-cw2fw
@jasleenkaur-cw2fw - 21.06.2024 13:57

Thankyou so much! very clear explanation !

Ответить
@gameply347
@gameply347 - 05.07.2024 13:11

-- TABLE CREATION AND INSERTION QUERY.

CREATE TABLE emp (
emp_id INT,
emp_name VARCHAR(50),
salary INT,
manager_id INT,
emp_age INT,
dep_id INT,
dep_name VARCHAR(50),
gender VARCHAR(10)
);

INSERT INTO emp(emp_id, emp_name, salary, manager_id, emp_age, dep_id, dep_name, gender) VALUES
(1, 'Ankit', 14300, 4, 39, 100, 'Analytics', 'Female'),
(2, 'Mohit', 15600, 5, 48, 200, 'IT', 'Male'),
(3, 'Vikas', 12100, 4, 37, 100, 'Analytics', 'Female'),
(4, 'Rohit', 7260, 2, 16, 100, 'Analytics', 'Female'),
(5, 'Mudit', 15600, 6, 55, 200, 'IT', 'Male'),
(6, 'Agam', 15600, 2, 14, 200, 'IT', 'Male'),
(7, 'Sanjay', 12200, 2, 13, 200, 'IT', 'Male'),
(8, 'Ashish', 7200, 2, 12, 200, 'IT', 'Male'),
(9, 'Mukesh', 7000, 2, 51, 200, 'IT', 'Male'),
(10, 'Rakesh', 8000, 6, 50, 300, 'HR', 'Male'),
(11, 'Akhil', 4000, 1, 31, 500, NULL, 'Male'),
(NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

Ответить
@NetTakeAways
@NetTakeAways - 06.11.2024 13:22

Hi could you please help me out I am preparing for data analyst I have learned sql, python libraries and power bi. Do I need to learn any other things to grab a good opportunity?

Ответить