In this video we will discuss most frequently asked top 10 SQL interview questions. If you have any interview I am sure 2-3 questions will be from this list.
Пікірлер: 288
@ankitbansal6 Жыл бұрын
Master the art of SQL @ Rs 1999 with my zero to hero SQL course. The course is focused on data analytics and covers all the advanced concepts starting from scratch. www.namastesql.com/courses/SQL-For-Analytics-6301f405e4b0238f71788354 Course contains 2 portfolio projects and a bonus session on Tableau. 100+ interview problems to crack any SQL INTERVIEW.
@avinashmishra4995 Жыл бұрын
Is it in udemy ?
@ankitbansal6 Жыл бұрын
@@avinashmishra4995 nope
@Rohitraj-mv3pz6 ай бұрын
@@ankitbansal6 bro i really need your help.. is there any way i can reach out to you..
@bhartisingh37502 ай бұрын
Delete duplicate records query in not working in databricks notebook for deleting duplicate records from a table.. is there any way to do this in databricks notebook table?
@OBLIVIONSHREEАй бұрын
Bro you have taught everything for free in your channel only, why would I will but the course.
@mariecurie52452 жыл бұрын
create table emp( emp_id int, emp_name varchar(20), department_id int, salary int, manager_id int, emp_age int); insert into emp values (1, 'Ankit', 100,10000, 4, 39; insert into emp values (2, 'Mohit', 100, 15000, 5, 48); insert into emp values (3, 'Vikas', 100, 10000,4,37); insert into emp values (4, 'Rohit', 100, 5000, 2, 16); insert into emp values (5, 'Mudit', 200, 12000, 6,55); insert into emp values (6, 'Agam', 200, 12000,2, 14); insert into emp values (7, 'Sanjay', 200, 9000, 2,13); insert into emp values (8, 'Ashish', 200,5000,2,12); insert into emp values (9, 'Mukesh',300,6000,6,51); insert into emp values (10, 'Rakesh',300,7000,6,50);
@ankitbansal62 жыл бұрын
Thank you 😊
@satyanathparvatham4406 Жыл бұрын
thanks
@pranav9808 Жыл бұрын
god bless you
@kartikpidurkar9590 Жыл бұрын
create table orders( customer_name char(10), order_date date, order_amount int, customer_gender char(6) ); insert into orders values('Shilpa','2020-01-01',10000,'Male'); insert into orders values('Rahul','2020-01-02',12000,'Female'); insert into orders values('Shilpa','2020-01-02',12000,'Male'); insert into orders values('Rohit','2020-01-03',15000,'Female'); insert into orders values('Shilpa','2020-01-03',14000,'Male');
@kartikpidurkar9590 Жыл бұрын
create table department( dept_id int, dept_name varchar(10) ); insert into department values(100,'Analytics'); insert into department values(300,'IT');
@Ghost-of-uchihaaa21 күн бұрын
This is my one-stop video before every interview for the past years. Brushes up my SQL skills like no other
@aasthamehtatech2 жыл бұрын
Crisp & insightful
@sheikhshah259310 ай бұрын
Literally great. In all my SQL interviews one or the other is asked. Subscribed
@chaithanyag1669 Жыл бұрын
Your videos are very good and helpful. Thank you for providing data with create and insert statements.
@suketshah76972 жыл бұрын
very simple way to explain...Nice!
@pavitrashailaja8502 жыл бұрын
Thnks for the video. Very helpful 👍
@gracepaet48872 жыл бұрын
Great video! Loved that last question. Subbed and eager to practice more SQL with your other videos
@ankitbansal62 жыл бұрын
🙏🙏
@ankitkumarpathak8112 Жыл бұрын
Wow it wsd asked today delete duplicates..thanks for the videos.it is really really helpful
@prikshitbatta Жыл бұрын
Really Master class videos Ankit, Thanks.
@balajisundar9867 Жыл бұрын
Good explanation👏 Please do more intermediate and advanced level of concepts in SQL.
@dattatrayarathi1014 Жыл бұрын
Thank for the video 🙏
@sandeeplakde77392 жыл бұрын
Very well explained... 👌
@abhishek_grd2 жыл бұрын
Bang on ! Started product based companies interview prepration for Sr. DE role ( Google/Microsoft/Ubder/Amazon/Expedia / AirBnB) etc...and your content is crisp and clear. Thanks
@ankitbansal62 жыл бұрын
🙏🙏
@raghum49384 ай бұрын
simple and clear explanation!!
@tupaiadhikari2 жыл бұрын
For the First time in 10 years, I am feeling confident with using SQL, only after watching your series of videos. Earlier I used Python to do data preprocessing after doing Vanilla Select * from Table Statement, which was not a recommended approach for memory efficiency.
@ankitbansal62 жыл бұрын
This is great. Best place to play with data is where it is residing 😊
@OmkarShinde-bz7oy Жыл бұрын
yeah it was really important vid as see for the interveiw sceneriao
I was asked 3 questions out of 5 from your list. Thanks alot
@irinasummey41562 жыл бұрын
Great video, I took down some notes!
@joeypencil5368 Жыл бұрын
You just earned a subscribe from me bro. I haven't used SQL in years, but due to a career change I'm planning to have soon, I'll need to learn more about SQL in-depth alongside bettering my skillset in C++ programming.
@ankitbansal6 Жыл бұрын
Cool. Thank you 😊
@One_Of_Kind_Jilu2 жыл бұрын
Just landed here bro you are doing amazing job
@itsme16742 жыл бұрын
Thanks 👍
@ime227 Жыл бұрын
Great content. Thank you Ankit
@ankitbansal6 Жыл бұрын
Thanks a ton
@vigneshnagaraj7137 Жыл бұрын
It will be helpful if you can create videos on views and stored procedures
@AnshuKumar-lh4gr2 жыл бұрын
Good one .. !!
@ankitbansal62 жыл бұрын
Glad you liked it
@fog26407 ай бұрын
finished watching
@lykavalladolid688 Жыл бұрын
thanks, it actually let me through so i could download it.
@pritamshende8434 Жыл бұрын
Just loving your content.. Very well explained.
@ankitbansal6 Жыл бұрын
Happy to hear that!
@puneeth742 жыл бұрын
Thanks for this video.
@ankitbansal62 жыл бұрын
Glad you liked it 😊
@gauravmdil Жыл бұрын
Thanks ankit, ur videos always encourage and boost confidence to prac more n go beyond our limit. Thanks Man
@ankitbansal6 Жыл бұрын
Keep it up
@aadarshchoudhary9648 Жыл бұрын
Thanks
@I_am_AmanSingh Жыл бұрын
You just earned a subscriber really great content🥺
@suman33162 жыл бұрын
Very Useful...I hope part2 will come soon
@ankitbansal62 жыл бұрын
Yes it will
@gourabnandy8262 жыл бұрын
Hi Ankit, loved your all videos. Looking forward to see a video on subqueries,
@ankitbansal62 жыл бұрын
Sure 🙂
@diptaganguly23462 жыл бұрын
Very Good explanation!
@ankitbansal62 жыл бұрын
Glad it was helpful!
@rohitsehajpal929511 ай бұрын
Hi Ankit, first of all this is really a great initiative that you are sharing all this knowledge and explaining the complex queries in a very easy way. And because of this I am really glad to tell you that your channel has majorly helped me to crack one of the SQL interview. Thank you so much for such a great effort and we all wish to see some more complex queries and concepts in coming future, once again thank you so much. Wish you a great health!
@YG-jb2in11 ай бұрын
Hey for which position you cleared the interview. And you cleared it as a fresher or experienced. Please reply.
@abdulwahab-rw1yq2 жыл бұрын
Thanks Ankit its very helpful in interivews wish i had come across your videos early.. thnks much
@ankitbansal62 жыл бұрын
Thank you 😊
@chiranjitdey378811 ай бұрын
keep doing more videos like it. It really helped me in my job interview today. I am able to answer the question of how to remove duplicates from a table because of your videos.
@ankitbansal611 ай бұрын
Great job!
@shuvo91312 жыл бұрын
Thanks brother, nice explanation
@ankitbansal62 жыл бұрын
Thank you
@meghasyam427 Жыл бұрын
Beautiful presentation
@ankitbansal6 Жыл бұрын
Thank you! Cheers!
@lokeshsharma28522 жыл бұрын
Thanks sir for this amazing video
@ankitbansal62 жыл бұрын
Most welcome
@agirmaus-lh9zi Жыл бұрын
very helpful ..thanks
@ankitbansal6 Жыл бұрын
Glad it was helpful!
@nitinnagpalofficial2 жыл бұрын
Ankit, I love your educational content. Is it possible for you to record the whole PL/SQL course for beginner/Intermediates?
@ankitbansal62 жыл бұрын
Thank you. I will plan in future 🙂
@LogicQuest2 жыл бұрын
thanks Ankit..good tutorial..
@ankitbansal62 жыл бұрын
Thank you 😊
@gameply3474 ай бұрын
I guess we can use subquery table as a normal table to display information using alias and where clause , but when it comes to comparison it needs to return only 1 value :) !!
@user-mz5dn4el7jАй бұрын
Ankit sir added humour silently in this video with q10 😃
@subhankarjadab7617 Жыл бұрын
Superb video..liked every second of the video 💖
@ankitbansal6 Жыл бұрын
Thank you! Cheers!
@manjumohan7731 Жыл бұрын
#For swap gender : update orders set customer_gender=IF(customer_gender='Male','Female','Male');
@shashankemani1609 Жыл бұрын
Very helpful sir, thank you!
@ankitbansal6 Жыл бұрын
You are welcome!
@souravsinha5330 Жыл бұрын
Thanks a lot, Learned lots of new concepts.
@ankitbansal6 Жыл бұрын
Glad to hear that!
@uttamthakur20169 ай бұрын
I have subscribed and liked . you are doing wonderful job
@ankitbansal69 ай бұрын
Thank you so much 😀
@dineshpanda58042 жыл бұрын
Love your valuable contents. I have few question sets from facing different screening. Can I share with you for help with solutions? Your way of explanation helps a lot
@ankitbansal62 жыл бұрын
Sure send me on ankitbansal1988@gmail.com
@prakharsrivastava65712 жыл бұрын
revised today for deloiite interview and suscribed too
@ankitbansal62 жыл бұрын
Cool . all the best.
@krishnabohidar72269 ай бұрын
Amazing video, tomorrow I have an interview, I was clueless how to start and where to start, now I know what to do for tomorrow :)) Thanks for sharing :)
@ankitbansal69 ай бұрын
Best of luck!
@krishnabohidar72269 ай бұрын
Thank you sir :))
@aadarshchoudhary9648 Жыл бұрын
Thank you bro
@ankitbansal6 Жыл бұрын
Welcome
@namanverma65092 жыл бұрын
Please make a playlist for sql for the beginners which includes everything like joins, Subquery, functions which used in ms sql..
@ankitbansal62 жыл бұрын
Sure. I have that in plan.
@yashdhas82022 жыл бұрын
I am watching your one video each morning. So one day I will work as data engineer in good product based company.
@ankitbansal62 жыл бұрын
Thats a great way of preparing yourself 😊🙏
@ririraman72 жыл бұрын
Thank you so much. Make vidoes on JOINS.
@ankitbansal62 жыл бұрын
Sure
@yatinshekhar787 Жыл бұрын
5/123 Stuck with 2 ques , coz i'm using mysql
@sasidharreddy5008Ай бұрын
you don't need the motivation from others because, you yourself is a motivation 🤗
@ankitbansal6Ай бұрын
🙏
@suryanshsinghkarchuli98922 жыл бұрын
for better reach, keep creating content
@ankitbansal62 жыл бұрын
sure.
@shubhamsingh3293 Жыл бұрын
❤
@dhirajsharma11992 жыл бұрын
Wonderful crisp and short explanation Ankit. I have my interviews lined up can you share resources for SQL interview questions, Data Modelling and Normalization scenario based questions? I know all basics and all theories but I want to practice on questions which have answers as well.
@ankitbansal62 жыл бұрын
Thanks Dhiraj. You can practice more from leetcode.
@mohammedshabaaz9625 Жыл бұрын
please make a part 2 of this video Ankit. thank you for your efforts
@ankitbansal6 Жыл бұрын
Sure I will
@k.hariharasudan93354 ай бұрын
Q7. MSSQL does not depend on case-sensitive but in the Oracle is depend on the case-sensitive
@prajjwaljaiswal34192 жыл бұрын
You are doing really awesome. Please keep doing this. One suggestion: Please don't forget to add create table script.
@ankitbansal62 жыл бұрын
Thank you. Scripts are there in most of the video description box. Might have missed few in my initial videos. Will put them soon.
@prajjwaljaiswal34192 жыл бұрын
@@ankitbansal6 Cool
@sanyamgarg828810 ай бұрын
Done
@Ks-yi8ky6 ай бұрын
Sir pls make latest interview sql quetions
@shwetadubey8880 Жыл бұрын
Just wanted to know can we use left anti join for the 5th question?
@gouthamstar65582 ай бұрын
I asked a question a employee enters and leaves office and he swipes in and swipes out in multiple instances, so I want to find the total office hours he spent in the office( he may come at 10 PM and take a break at 12:30 AM in that case it shows that he is spending 2 hours in that day but that's not true right), so now I have to calculate total time he spent employee id, Office_swipe_record given
@muhammedar3071 Жыл бұрын
1m likes 👍
@NitishKumar-xr9tx4 ай бұрын
In 2nd Question of removing duplicates: We are deleting values from the CTE table which is a TEMP table. Then how it is deleting values from the MAIN table?
@siddharthchoudhary10315 күн бұрын
5th question can we also done used left anti right? like where dep.deptid is null?
@nammibhargav9498 Жыл бұрын
Ankit bhai if you have time can you solve some hacker rank test questions for better understanding for people who are learning sql newly..that would be helpfull
@ankitbansal6 Жыл бұрын
Do you have some links to the good problems?
@ritikajaiswal38242 жыл бұрын
can you make a video on stored procedures.. from basic to everything needed to know
@ankitbansal62 жыл бұрын
Sure will plan.
@dhrubajyotichatterjee1883 Жыл бұрын
hi Ankit , can you please make some videos for product based companies. Thank yoou for your effort. Appriciatable
@ankitbansal6 Жыл бұрын
I have a lot of them. Check out complex SQL playlist
@aashishmalhotra2 жыл бұрын
Wow such a nice content. Please zoom a bit while making videos. Because most audience watch it over phone it strain the eyes
@ankitbansal62 жыл бұрын
Sure
@shivangnirawat9536Ай бұрын
In the 2 question, delete from cte is written so how the records got deleted from original table
@muruganselva743127 күн бұрын
with CTE as ( select * ,row_number() over(partition by emp_id order by emp_id) as rnk from emp order by emp_id asc ) delete from CTE where rnk > 1 From CTE we can't delete records?
@saurabhtekale5084 Жыл бұрын
Performance wise why joins are better than subqurey??
@abb_raj11072 жыл бұрын
what if i wanna to swap from row 4 and 5 value , I think 'case' only do for the first occurrences of match value.Thus why, only the first two rows are evaluated with case clause and rest remain the same. Is it true bhai? I am not clear about it. Plz shed some light .
@kunalgaurav330111 ай бұрын
Hi, Ankit. you made them look so easy. Thank you💌. it would be great if you could provide the code of the creation of tables so i can practice it on my workbench.
@ankitbansal611 ай бұрын
It's there in the comments section
@fired_developer11 ай бұрын
Sir please raise the editor font more than 130% while recording , coz it's very hard to watch on the phone
@SubhamDas-tb3xf29 күн бұрын
Hey Ankit! I was thinking about that delete duplicate question. U r deleting the duplicate data from cte which is a temporary result set , right? It is working fine but how it's deleting from original table? MySQL doesn't support this from 8+ versions I guess..we have to use that cte query like a subquery in mysql. But in ssis it is working. Even in leetcode ! But I think it is always better to reference the original table rather than querying from cte i.e a temporary result set. Selection is fine with cte but dml operation! Let me know about your thoughts, I would love to hear!
@abhishek_grd2 жыл бұрын
@Ankit , Requesting you to add more scenario based SQL questions mostly asked in NICHE Product based companies, would be helpful.
@ankitbansal62 жыл бұрын
Sure
@abhishek_grd2 жыл бұрын
Hello Ankit, I have onre request along with the explanation if you can share the create table command as well , will be helpful to dummy it to my own schema. Like here employee table
@ankitbansal62 жыл бұрын
I have create and insert in most of the problems description. I will make sure I don't miss in future. Thanks for pointing out 😊
@sumanacharya461 Жыл бұрын
What is the difference between union and union distinct
@coolraviraj24 Жыл бұрын
in union it will also SORT the result
@bhartisingh37502 ай бұрын
Delete duplicate records query in not working in databricks notebook for deleting duplicate records from a table.. is there any way to do this in databricks notebook table? @ankit
@perumalbalachandranjj2358 Жыл бұрын
Thanks for this Video. I have one doubt, Question number 2. How to delete duplicates from a table? Shall we do it in mysql? I tried but I didn't get correct result.
@manjumohan7731 Жыл бұрын
+1
@jayrajkakde28132 жыл бұрын
Diff between count* and count1
@ankitbansal62 жыл бұрын
Thanks for adding 😊
@priyav32497 ай бұрын
Helpful video, Thanks. could you please share the dataset used in the video, to practice please.
@ankitbansal67 ай бұрын
It's there in the comments section
@tanushreepareek8208 Жыл бұрын
Hello ankit, Seems like you have lots of videos but not in a playlist, for ex: I want to start from the beginner level and then moved to medium then hard queries. I have seen your playlist but lots of videos aren't there where you are explaining things like the date function, and rank function, If it's in a playlist/series then it would be easier for us to go through step by step. Let me know if you already have or i have missed something.
@ankitbansal6 Жыл бұрын
SQL tips and tricks is the playlist
@dondapatinaveenkumar292011 ай бұрын
Can you please tell me how to delete duplicates in mysql?