Lec-62: SQL Queries and Subqueries (part-4) | Having clause | Database Management System

Lec-62: SQL Queries and Subqueries (part-4) | Having clause | Database Management System

Gate Smashers

5 лет назад

690,802 Просмотров

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


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

Basab Mukherjee
Basab Mukherjee - 08.11.2023 21:27

Sir i think we should write count* along with dept too

Ответить
DEMI ON THE BEAT
DEMI ON THE BEAT - 18.10.2023 08:47

Can we use = instead of in in this query?

Ответить
Mehedi hasan
Mehedi hasan - 08.10.2023 17:35

How do i get the maximum employees from the group by Dept; ....please can anyone help me??😢😢

Ответить
Aabha Raghav
Aabha Raghav - 08.10.2023 11:41

Can we replace In with =?

Ответить
RACHANA__ BOD!!
RACHANA__ BOD!! - 06.10.2023 15:00

Ur * the best * teacher sir

Ответить
VirD
VirD - 09.09.2023 10:20

HOW TO JOIN 2 TABLES AND FETCH DATA FROM BOTH AND GET THE HIGHEST TWO USING GROUP BY?

Ответить
Harshad Chavan
Harshad Chavan - 28.08.2023 12:40

SELECT employee_name, department_name
FROM employee
GROUP BY department_name, employee_name
HAVING COUNT(*) > 2;
why we aren't using this?

Ответить
Wajid Mehmood
Wajid Mehmood - 02.08.2023 08:19

Nice g

Ответить
Aryan roxx
Aryan roxx - 25.07.2023 12:30

Lov it thx u

Ответить
drone hacker
drone hacker - 17.07.2023 05:40

Today 2023 , July completed 4 yr of this video , but your energy , is fresh,
😅
You are a best student friendly teacher

Ответить
ZORO
ZORO - 09.07.2023 14:41

Thanks arigato

Ответить
Prathap Ganesh
Prathap Ganesh - 07.07.2023 05:12

Awesome sir thank you🙏

Ответить
Shiv
Shiv - 13.06.2023 10:26

Vese to be very honest agar gate ke liye prep kara hota to apse hi kata paid course kharid ke

Ответить
fitness vlog
fitness vlog - 10.06.2023 07:57

Full playlist please 🥺🥺🥺

Ответить
065_Abhinav Kumar
065_Abhinav Kumar - 02.06.2023 13:01

why not equals to instea of IN?

Ответить
Alfonso Arrieta
Alfonso Arrieta - 01.06.2023 18:28

Couldnt it be just like: Select E_name, Dept, from Emp Group by Dept Having Count (*) < 2

Ответить
Animesh Hazra
Animesh Hazra - 06.05.2023 10:59

Nice

Ответить
Twinkle Singh
Twinkle Singh - 11.04.2023 14:10

Sir isse phle vale me aapne count * q liya tha

Ответить
Deepika Mahendran
Deepika Mahendran - 07.04.2023 12:53

Can we use dept = instead of dept In?

Ответить
Dhiroj kumar Sahu
Dhiroj kumar Sahu - 23.03.2023 23:13

sir has a good collection of T-shirts🙃

Ответить
SOURAV HOSSEN
SOURAV HOSSEN - 16.03.2023 18:21

if we use dept = except dept in, is it ok?

Ответить
msdev vlogs
msdev vlogs - 13.03.2023 06:26

Sir can I use dept= instead of dept In

Ответить
B.K. YADAV
B.K. YADAV - 27.02.2023 17:54

we can also write like select dept , count(*) as count_emp from employee group by dept heving count_emp<2;

Ответить
Neeraj Kumar
Neeraj Kumar - 21.02.2023 15:15

Sir mene video pause krke apne se ek query banayi h
select dept from (select dept, count(*) as c from emp group by dept) where c < 2;
Ye query sahi h kya??

Ответить
Jayashree Swain
Jayashree Swain - 16.02.2023 17:34

Thank you sir❤

Ответить
Suyash Vartak
Suyash Vartak - 15.02.2023 20:37

Your Query is correct BUT leading in incorrect way as question was get dept name where EMP ARE LESS THAN 1..So you should have used e_name/e_id in group by cause..it would have given more justice to question

Ответить
Aarzoo Tamanna
Aarzoo Tamanna - 15.02.2023 14:03

Thanks sir

Ответить
praveen kumar
praveen kumar - 03.02.2023 16:46

Sir what about this query
Select dept, count(*) from emp group by dept having count(*) <2;

Ответить
all in one show
all in one show - 25.12.2022 21:49

Thankuuh sir ✨

Ответить
Tanuja Pawar
Tanuja Pawar - 23.12.2022 13:57

In Inner Query, why don't we take select dept, count(dept) ...... as took it in the last video.

Ответить
swami ahirwar
swami ahirwar - 15.12.2022 11:45

Thank you so much Varun sir
1.Gate + 2.Infosys training aapka material hi use kr rha hu
🙏🙏🙏

Ответить
kaushalT
kaushalT - 04.12.2022 16:53

Sir where are your legs , i want to touch them

Ответить
PK Commence
PK Commence - 30.11.2022 08:08

Superb explanation

Ответить
Saurabh Shrivastava
Saurabh Shrivastava - 16.11.2022 15:59

Fantastic. Brilliant

Ответить
Vasavi Mishra
Vasavi Mishra - 16.11.2022 12:25

You r great sir .. pls dont say thanks at the end as we must be thankful to u for these wonderful videos to improve our databases skills... A big thanks to u🙏🙏

Ответить
Push_freebird
Push_freebird - 09.11.2022 17:12

nice

Ответить
Nainshashi
Nainshashi - 04.11.2022 08:11

Amazing teacher

Ответить
Rudra Ganesh
Rudra Ganesh - 14.10.2022 07:30

Yes brst teacher

Ответить
Best Funny Videos    Pari ki Life پری کی لائف
Best Funny Videos Pari ki Life پری کی لائف - 12.10.2022 17:43

Or bhi videos bnain sir..cluses ki

Ответить
Lofi For Soul
Lofi For Soul - 07.10.2022 10:58

Break Records one day.

Ответить
Dundappa Fulari
Dundappa Fulari - 05.10.2022 19:27

Sir very nice explanation 💕

Ответить
Sunil talewar
Sunil talewar - 28.09.2022 14:29

hello sir thank u for this video
select e_name , dept from emp group by dept
having COUNT(dept) < 2;
aise b chalega na sir

Ответить
Shreyansh Verma
Shreyansh Verma - 26.09.2022 18:02

Sir you make everything crystal clear...i watched the videos of some other creators they are already confused what to teach

Ответить
praveen remix
praveen remix - 16.09.2022 08:39

amazing

Ответить
MR Fun
MR Fun - 15.09.2022 16:24

Aree sir thanks a lot, I tried other videos too but only this channel was also to help

Ответить
shobhit jain
shobhit jain - 14.09.2022 08:11

Can u pls tell me how much sql required for power bi developer role... Pls

Ответить
Anish Kumar
Anish Kumar - 13.09.2022 10:35

can the query could be, select dept from emp where count(dept) <2 group by dept ;

Ответить
Manoj
Manoj - 09.09.2022 13:40

Wonderful. Even non-technical background can understand.

Ответить