🎯 Get Latest SQL Guided Project (1M sales records) 🎯topmate.io/zero_analyst/1237072 🎯 Get Latest End to End Advanced SQL Project (Amazon)+ 70 Business Problems kzbin.info/www/bejne/gGrUd3x3fZxrbrM 🐍 All Python Projects: Python ETL - Data Cleaning Project kzbin.info/www/bejne/q3W0gGyuhMxnrsk
@nowshadktasin2 ай бұрын
In question number 4, a TRIM () function should be used wrapping the UNNEST(), or else it will show duplicate values (eg. in your query it shows United States twice)
@rohit_voraАй бұрын
que :5 select title, substring(duration, 1,position ('m' in duration)-1)::int duration from Netflix where type = 'Movie' and duration is not null order by 2 desc limit 1
@pavankumar121212 ай бұрын
I CAN SAY ONE THING: Your channel is one of the Best not, THE BEST channel for SQL; you will cover all. appreciate your efforts for the yt community
@zero_analyst2 ай бұрын
Wow, thanks!
@MadhuriJana-j7m27 күн бұрын
Which one is best channel for Power BI, good project
@salimmuhammed94002 ай бұрын
Question number 5: select * from (select distinct title as movie, split_part(duration,' ',1):: numeric as duration from netflix where type ='Movie') as subquery where duration = (select max(split_part(duration,' ',1):: numeric ) from netflix)
@ammartouati57062 ай бұрын
Yes, the longest movie for question 5 is incorrect below my query for it : -- 5 identify the longest movie WITH duration_t AS ( SELECT title, type, CAST(LEFT(duration, PATINDEX('%[^0-9]%', duration + ' ') - 1) AS INT) AS duration_minutes FROM netflix_titles WHERE type = 'movie' ) SELECT TOP 1 title, duration_minutes FROM duration_t WHERE duration_minutes IS NOT NULL ORDER BY duration_minutes DESC; -- Other solution with RANK() WITH duration_t AS ( SELECT title, type, CAST(LEFT(duration, PATINDEX('%[^0-9]%', duration + ' ') - 1) AS INT) AS duration_minutes FROM netflix_titles WHERE type = 'movie' ) SELECT Title, duration_minutes, long_ranking From ( Select title, duration_minutes, rank() over (order by duration_minutes DESC) as long_ranking from duration_t ) as ranked_movies where duration_minutes is not null and long_ranking=1
@LoneKim982 ай бұрын
Thank you for this project I'm really grateful to you... And I would like to advice you to make your personal playlist as private to make your account more professional ❤
@zero_analyst2 ай бұрын
Thank you noted!
@echodelta76802 ай бұрын
Good dataset for teaching and well presented. The wording of the query-10 could have been better, and query-14, clearer, but overall nice exposure for candidates. Appreciate your efforts.🥂
@zero_analyst2 ай бұрын
Noted!
@ManishaSenapati252 ай бұрын
Thankyou fr bringing this out, i was soo scared to learn sql but your way of teaching is making it easier . Thank you for all the efforts and time you have put to bring this 💖💯
@zero_analyst2 ай бұрын
Happy to help
@andreafrillian94352 ай бұрын
bro i think in #4 we have to "TRIM" our query so that {'United States'} and {' United States'} can be combine into single {'United States'} ~~
@HandyCliffy2 ай бұрын
Alternatively, just add a SPACE after the comma in the UNNEST function i.e. UNNEST(string_to_array(country, ', '))
@ashwini_gujalwarАй бұрын
@@HandyCliffy I did the same and it's working 👍
@shawonalam67802 ай бұрын
Hi @Zero Analyst Your qs 5. "Max duration of the longest Movie " ans(99 min) is wrong.
@rohit_voraАй бұрын
there are some space that needed to remove for correct count in que 09 : select *, count(1) cnt from (select trim(unnest(string_to_array(listed_in, ','))) content from Netflix) group by 1 order by 2 desc
@AmanSharma-tn3dyАй бұрын
I think you have done a wrong query in Q5. we have a movie name 'Black Mirror: Bandersnatch' which is of 312 min select top 1 title, type, cast(Replace(duration, 'min', '') as int) as duration from Netflix where type='Movie' order by duration desc If I am wrong, pls correct me.
@gospelmoto283325 күн бұрын
Nice Video! Im learning alot, TYVM. However, I have a question -Why not import directly the csv dataset without needing to define the table columns? Could it be done this way?
@ArunKumar-oi3tq2 ай бұрын
Easy !! but Awesome !! keep doing !!
@zero_analyst2 ай бұрын
Thank you!
@NaveenNaveen-gd9fi2 ай бұрын
It is very useful for us ,put video like this bro
@zero_analyst2 ай бұрын
Ok thank you
@rajanchaurasiya17342 ай бұрын
Here rating is basically a category
@ravikanth47152 ай бұрын
Bro I thought you would help me to build logic for sql queries but aap toh dusre hi direction me jaa rahe ho. 😊
@Handle.smiles2 ай бұрын
bro ans 5 is wrong as there are movies with ttime more than 100 min and also there is no data cleaning in show_id 5542, 5795,& 5814 the duration is written on rating column
@Handle.smiles2 ай бұрын
for ans 5 use - select title, max(CAST(SUBSTRING(duration,1,POSITION(' ' IN duration)-1)as INT)) as maximun_lenght from netflix where type = 'Movie' and duration is not null group by 1 order by 2 desc
@zero_analyst2 ай бұрын
We need to use split part functions to take out the number and than select the max
@ammartouati57062 ай бұрын
@@zero_analyst Yes, the longest movie for question 5 is incorrect below my query for it : -- 5 identify the longest movie WITH duration_t AS ( SELECT title, type, CAST(LEFT(duration, PATINDEX('%[^0-9]%', duration + ' ') - 1) AS INT) AS duration_minutes FROM netflix_titles WHERE type = 'movie' ) SELECT TOP 1 title, duration_minutes FROM duration_t WHERE duration_minutes IS NOT NULL ORDER BY duration_minutes DESC; -- Other solution with RANK() WITH duration_t AS ( SELECT title, type, CAST(LEFT(duration, PATINDEX('%[^0-9]%', duration + ' ') - 1) AS INT) AS duration_minutes FROM netflix_titles WHERE type = 'movie' ) SELECT Title, duration_minutes, long_ranking From ( Select title, duration_minutes, rank() over (order by duration_minutes DESC) as long_ranking from duration_t ) as ranked_movies where duration_minutes is not null and long_ranking=1
@ArunB-x9jАй бұрын
What is MySQL equivalent of STRING_TO_ARRAY() and UNNEST() ?
@Jreltaweel2 ай бұрын
thank you habibi
@bhojrajgaddam7492 ай бұрын
Hey bro, could you please adjust your camera and screen so they're aligned? Turning your head so often might strain your neck over time. It would be great if you could set them up in a way where you don’t have to keep turning your head
@zero_analyst2 ай бұрын
Thank you so much mate! will consider it for sure!
@novicewaterАй бұрын
how can we solve question 4 using mysql, i am not able to find solution to split cell into multiple rows , Pls guide.
@Pujitha-x8u2 ай бұрын
Hii , This was an excellent video . I only have one question : In 13th question , why release_date column is used instead of date_added . In the video you mentioned we can either both of it but the output differs for both, so you could please clarify it
@zero_analyst2 ай бұрын
Release date is the actual film release date! Date added means its added date on Netflix!
@mubarakshah28652 ай бұрын
bro give the zomato database, i want to perform those complex queries
@zero_analyst2 ай бұрын
Please check the link in the video description! Its a paid datasets for zomato project1
@sreelekshmib774Ай бұрын
I cant download the dataset link :( . Did you removed it from the description?
@sambugarisupraja10 күн бұрын
in question 2 we did rank partition by and in question number 5 y didnt we do the same thing here as well?
@sambugarisupraja10 күн бұрын
and there are a lot of null values present in the data y didnt we remove them ?
@MOTIVATIONALQUOTE-wt3de2 ай бұрын
hlo sir, can you tell how you move all the table name to right indentation ? like in video you select all the things and then you move it in right. but how?
@zero_analyst2 ай бұрын
Shift Tab --> reverse Tab --> go forward
@ashishmishra78292 ай бұрын
Dear I have knowledge of MySQL but how can i write query of postgreSQL in MySQL workbench.Does it works?
@zero_analyst2 ай бұрын
Yes you can use same syntax!
@tensionfree49420 күн бұрын
-string function is not working in sql workbench..do u know how to solve this issue? @@zero_analyst array_to
@hamarabharat19302 ай бұрын
when i'm importing the data it just importing 100 records, why ?
@AmanSharma-tn3dyАй бұрын
use ms sql server it allows you to import null values also, but mysql doesn't
@chalamohamed2013Ай бұрын
Hello Sir, Really appreciate your efforts but I am disappointed beceause you haven't clean your dataset, how could say that 80min is a rating ! You have juste wasted my time downloading the dataset :(
@zero_analystАй бұрын
Appreciated your feedback! This is a 100% sql project shown how you can solve business problems using sql. Further you can clean the data at first place that’s your choice or you can solve problems without cleaning datasets! I didn’t asked you to not clean the datasets! I have covered multiple functions in this project like how to work with text data! I am sure you learned something. Tech is all about fixing problems if you don’t find solutions don’t think you have wasted your time.
@Gam_1992 ай бұрын
can i add this project in my resume ?
@zero_analyst2 ай бұрын
@@Gam_199 Yes you can!
@chalamohamed2013Ай бұрын
I can't load data, I encoutered errors with the description column, I am using MS SQL, could anyone help me please ?
@zero_analystАй бұрын
I will make a video soon showing to import using MySQL!
@karthikkumarreddykotha78802 ай бұрын
Hi bro this is Karthik while I'm trying to import the Netflix dataset into the Netflix table it's showing error after giving file path and enabling header after selecting "ok" it showing error 'columns', How to slove this error bro.
@Morningbcode2 ай бұрын
Just refresh and try importing
@babayaga44592 ай бұрын
I'm getting the same error and it same even after refreshing what should i do
@zero_analyst2 ай бұрын
You can create the table again follow step by step with me in the video it will work.
@SURAJKUMAR-dx1uz2 ай бұрын
when i am loading the data set into mysql workbench it shows onlt 103 rows but the dataset is having 8008 rows please explain
@zero_analyst2 ай бұрын
Hi due to null values you may have issues in mysql wb! Please use Postgres + PgAdmin check my installation guide video!
@sidraomer58942 ай бұрын
load the data through mysql command line
@sidraomer58942 ай бұрын
kzbin.info/www/bejne/al7aqJ2uZ818hM0
@omkarshinde81542 ай бұрын
He i use mysql but unable to load data only 200 records r inserted..what is issue..
@zero_analyst2 ай бұрын
Will make a video on it! i recommend you to use PostgresSQL You can watch my setup video! kzbin.info/www/bejne/rmiWlaOXjt95pbs
@Yashvlog0072 ай бұрын
Can i do these at my sql workbench
@zero_analyst2 ай бұрын
Yes you can!
@sidraomer58942 ай бұрын
@@zero_analyst but some functions don`t work in mysql like split_part,unest,string_to_array. What are their alernatives?
@discoveringdreams8677Ай бұрын
Why should not be use Mysql??
@zero_analystАй бұрын
You can use it!
@UjjwalPatel-mj7wq2 ай бұрын
Hello zero analyst I have a question as like you I have a macbook m3 in your video you can simply click on your CSV file and launch it in excel file is this true. My question is are you buying office 365 or any other method you can use plss reply me to solve my problem. I don't have install ms excel or other microsoft apps but I want it for free
@zero_analyst2 ай бұрын
Hello mate i use excel 365
@UjjwalPatel-mj7wq2 ай бұрын
@@zero_analyst is it free or paid
@NaveenKumar-fm5yg2 ай бұрын
in postgres sql you using ilike so my doubt is i am using sql workbench so what i can use i think ilike is not supported in mysql ?
@mulikinatisiddarthasiddu82452 ай бұрын
U can bro
@RlUpadhyay-c6o21 күн бұрын
koi batayga mere postgres me ye file import hi nhi ho rhi hai..
@zero_analyst21 күн бұрын
Please follow all step by step mentioned along with me make sure all settings are in place
@yashgawand172 ай бұрын
i can't import the dataset even though the column names are correct. i get the error "columns" while i try to import the data set
@babayaga44592 ай бұрын
Sameee😢
@yashgawand172 ай бұрын
@@babayaga4459 restart your device and import the data without opening the query tab
@zero_analyst2 ай бұрын
Thank you
@babayaga44592 ай бұрын
Huhhhhh 😭😭😭 can you pls share the discord link so that we can share our problem over there
@yashgawand172 ай бұрын
@@babayaga4459 what worked for me is, I just restarted the pgadmin 4 app and didn't open query editor. Directly right clicked on the Netflix table and imported the file.
@AmanSharma-tn3dyАй бұрын
where is your github repo link?
@zero_analystАй бұрын
Check the project for vid link under SQL projects in desc!
@ankathimamatha86692 ай бұрын
When am importing file into MySQL am getting only 266rows only..can anyone tell..
@shubham-t5z5n2 ай бұрын
increase the limit rows maybe
@samratdutta33662 ай бұрын
few of my code in not working reason i don't know what is wrong even if i look at the code it as it is
@zero_analyst2 ай бұрын
Please share the code in our discord community
@mulikinatisiddarthasiddu82452 ай бұрын
is it a beginner level or advanced level project bayya?
@zero_analyst2 ай бұрын
Advanced
@devyanirathod97992 ай бұрын
Can i not use mysql for the same project?
@zero_analyst2 ай бұрын
You can use same project in MySQL as well! Just few syntax you need to change as per my SQL
@HarshKoli-r8y2 ай бұрын
ilike not work in my sql
@zero_analyst2 ай бұрын
Yeah its for psql!
@ndumisoradebe52562 ай бұрын
For events where he uses ilike, you can first change the column to lowercase or uppercase then afterward continue using like. For example, in the last problem when he said: description ILIKE '%kill%' You can say: LOWER(description) LIKE '%kill%' I just finished the project using MySQL
@sidraomer58942 ай бұрын
@@ndumisoradebe5256 in mysql, the functions like string_to_array,unnest and split_part worked?
@HarshKoli-r8yАй бұрын
@@ndumisoradebe5256 thanks bro
@HarshKoli-r8y2 ай бұрын
sir your indian?
@RlUpadhyay-c6o21 күн бұрын
"BHAI TUMHARI QUERY EXECUTE HO GYI MERI NHI HUI TUM ERROR NHI BATATE HO DIRECT SOLUTION batate ho it is not right thing". that's why i am not following you and i will recommended dont follow his channel. - 6. Find content added in the last 5 years SELECT * FROM netflix WHERE TO_DATE(date_added, 'Month DD, YYYY') >= CURRENT_DATE - INTERVAL '5 years'; ERROR: The given value did not match any of the allowed values for this field.invalid value "25-Sep-21" for "Month" ERROR: invalid value "25-Sep-21" for "Month"
@zero_analyst21 күн бұрын
Thanks for sharing your feedback!
@FABSBGMI2 ай бұрын
bhai chasma mt phen tu bhot bura lg rha hai
@muhammedibrahim5421Ай бұрын
Question no. 5 answer approach is wrong as the data type for duration is string so it just gave the longest no. of characters I have solved by the following approach: ---------------------------------------------------------------------------------------------------------------------------------------------- -- Longest Movies SELECT MAX(CAST(REPLACE(duration, ' min', '') AS INTEGER)) AS duration_in_minutes FROM movies_shows_data WHERE type = 'Movie'; ----------------------------------------------------------------------------------------------------------------------------------------------- We can get also the longest TV Shows: -- Longest TV Show with respect to no. of Seasons SELECT MAX(CAST(REPLACE(duration, ' Seasons', '')AS INTEGER)) FROM movies_shows_data WHERE type = 'TV Show' AND duration LIKE '%Seasons'; and lastly thank you a lot for this amazing project @zero_analyst