Session 35 - Subqueries in SQL | DSMP 2023

Session 35 - Subqueries in SQL | DSMP 2023

CampusX

2 года назад

56,416 Просмотров

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


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

@anshulpatle2120
@anshulpatle2120 - 09.07.2023 12:41

sir task ke solution de do pls

Ответить
@narendraahire6218
@narendraahire6218 - 10.07.2023 23:43

hello sir yr Ye Query SQL server par run nhi ho rahi hai? kya krneka iskeliye

Ответить
@animeshbasak490
@animeshbasak490 - 19.07.2023 14:15

-- find all movies of all those actors whose filmography
-- avg rating> 8.5( take 25000 votes as cutoff)

select * from movies where star in(
select star from movies
where votes>25000
group by star having avg(score)>8.5);

this code is not running
Error Code: 2013. Lost connection to MySQL server during query
why is it happening

Ответить
@ronylpatil
@ronylpatil - 20.07.2023 05:41

Can you please share the CTE lecture link.

Ответить
@rohittripathi8628
@rohittripathi8628 - 28.07.2023 13:08

sir sql workbench kaise run kare

Ответить
@BikashGuptaBG
@BikashGuptaBG - 28.07.2023 15:51

Good job bro, really helpful. Come up with more. Keep growing! You deserve even more than this.

Ответить
@useless_videos__
@useless_videos__ - 31.07.2023 13:08

Brain hai ya computer sir ap ka 😅

Ответить
@ashishbansod6408
@ashishbansod6408 - 17.08.2023 04:04

hello frds ,when am uploading data not all rows present in it, plz help me

Ответить
@kaushiksanghani9205
@kaushiksanghani9205 - 26.08.2023 09:03

Best lecture on subqueries.

Ответить
@ank_kumar12
@ank_kumar12 - 19.09.2023 17:04

corelated subquery k jo pehla ques hai wo iss tarah se v solve ho skta kya.....
select * from movies
where genre in (select genre from movies
group by genre
having score > avg(score));

haa ye insependent subquery se banaye hai... lekin result same de rha..
pls reply..

Ответить
@NirupamaBose-qc5vx
@NirupamaBose-qc5vx - 26.09.2023 14:22

select name,(gross-budget) as profit from movies
where profit =(select max(gross-budget) from movies);

why it saying unknown com profit even i mentioned it

Ответить
@ShubhamAware18
@ShubhamAware18 - 30.09.2023 20:53

This man deserves 👑

Ответить
@nayansrivastava2546
@nayansrivastava2546 - 29.12.2023 17:41

I cant find the cte lecture from your playlist..Did you upload it?

Ответить
@riteshbarthwal5024
@riteshbarthwal5024 - 11.02.2024 20:36

sir stored procedure in sql pada do pls or in case if you already have a video on that then pls advise

Ответить
@faraaz_083
@faraaz_083 - 17.02.2024 23:39

🔥🔥

Ответить
@silentknight5846
@silentknight5846 - 19.02.2024 13:08

I can't load the dataset 😮

Ответить
@nikhiljagtap1669
@nikhiljagtap1669 - 11.03.2024 08:46

If you cant load the dataset, here is what you need to do:

Upload to Excel's power query > clean it(if you want more cleaning)
> Load it to the sheet
> Save as "utf-8 CSV file"

Done, you can now upload into your MySql

Ответить
@ashishsahu8065
@ashishsahu8065 - 11.04.2024 17:42

can anyone please provide the solutions of practice questions ?

Ответить
@professor_DJ_010
@professor_DJ_010 - 13.05.2024 03:59

Sir ke cte ka lecture he kya kisi ke pass

Ответить
@arslanjutt4282
@arslanjutt4282 - 07.06.2024 14:40

Join and subquries main kasy pata karen gy ky join lagain yah sub queries

Ответить
@sampritkundyana1992
@sampritkundyana1992 - 20.06.2024 21:06

Upload to Excel's power query > clean it(if you want more cleaning)
> Load it to the sheet
> Save as "utf-8 CSV file"

DROP TABLE IF EXISTS MOVIES;
CREATE TABLE IF NOT EXISTS MOVIES
( NAME VARCHAR,
RATING VARCHAR,
GENRE VARCHAR,
YEAR INT,
RELEASED VARCHAR,
SCORE DECIMAL,
VOTES INT,
DIRECTOR VARCHAR,
WRITER VARCHAR,
STAR VARCHAR,
COUNTRY VARCHAR,
BUDGET INT,
GROSS BIGINT,
COMPANY VARCHAR,
RUNTIME INT
);

SELECT * FROM MOVIES;

Ответить
@abhishekbarua2508
@abhishekbarua2508 - 24.08.2024 08:44

Thank you Bhai ..so much for helping 🙂😍😍😍

Ответить
@yashgondaliya2831
@yashgondaliya2831 - 24.08.2024 09:13

if anyone have task solutions please share it 😍

Ответить
@rahulrathore1978
@rahulrathore1978 - 19.09.2024 22:33

kisi ka delete statement mein error aaya that's like 'Error Code: 1093. You can't specify target table 'users' for update in FROM clause'

Ответить
@shivanshusrivastava8632
@shivanshusrivastava8632 - 05.10.2024 20:04

Where are the other sessions?

Ответить
@khemchand494
@khemchand494 - 20.10.2024 06:24

Very well oriented lecture. Amongst the best lectures available on YT in particular to SQL subqueries.
Very nicely oriented pedagogy to deliver lecture of such high quality.
A lot of thanks Nitish sir, for this amazing video. Couldn't have found a better person to explain these concepts in such a easiest way.

Ответить
@RajanKamble-wp3qd
@RajanKamble-wp3qd - 21.10.2024 11:27

While using delete statement its showing error code that you can't specify Target table users for update using from clause

Ответить
@aN0923
@aN0923 - 05.11.2024 16:54

where do i get zomato data set for row subquery example discussed here

Ответить
@harshaddeshmukh2935
@harshaddeshmukh2935 - 15.11.2024 20:44

Claps for those who have sincerely watched till end & understood all concepts clearly!! It was really challenging & bit difficult session but well explained

Ответить
@sumitpal3723
@sumitpal3723 - 05.12.2024 09:38

In first question can we write query in this way.

SELECT * FROM MOVIES WHERE SCORE=MAX(SCORE);

Ответить
@sumitpal3723
@sumitpal3723 - 05.12.2024 10:36

In question 4 can we write like this way


SELECT * FROM MOVIES WHERE RATTING=(SELECT MAX(RATTING) FROM MOVIES) AND VITE>(SELECT AVG(VOTE ) FROM MOVIE'S)

Ответить
@rishabhkumardewangan-kx8mg
@rishabhkumardewangan-kx8mg - 24.01.2025 14:48

select name from (select name,year,(gross-budget) as profit ,row_number() over( partition by year order by profit desc ) as rank from Movies)as temp where temp.rank=1;.to get highest earning movie of each year.

Ответить
@sharmeenkhanam2924
@sharmeenkhanam2924 - 06.02.2025 11:10

Last question of DELETE in subquery is giving me an error. Why?

Ответить