Top 70 SQL Interview Questions One Shot | DIGITAL | NINJA | PRIME | Many More

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024

Комментарии • 142

  • @PrimeCoding19
    @PrimeCoding19  4 месяца назад +3

    Hello Prime Coders,
    IMDB data set: drive.google.com/file/d/1SRteUqv9Q7zUj-5COqyAraIp27d8JgZm/view?usp=sharing
    Question Corrections below:
    1. There is improvement in the question(Q 50), there should be
    How do you select all the movies that have the highest rank score in the database?
    Now the solution makes sense. Sorry for the inconvenience.
    Explanation of the query:
    The WHERE clause uses the >= ALL operator to ensure that the rankscore of each selected movie is greater than or equal to the maximum rankscore found by the subquery.
    Since the subquery returns only the maximum rank score, >= ALL effectively means rankscore >= max(rankscore), which selects movies with the highest rank score.
    2. In question 18, '=NULL' should be replaced by 'IS NULL';

    • @SD-pz6dj
      @SD-pz6dj 3 месяца назад

      2nd highest or any rank based single row output question should also be included
      ..otherwise Very beneficial oneshot before interview..

    • @PrimeCoding19
      @PrimeCoding19  3 месяца назад

      @@SD-pz6dj After watching the complete video you will be able to solve any question...
      Thanks!

    • @staywithmeforever
      @staywithmeforever 3 месяца назад

      ​@@SD-pz6dj Use offset it skips right

  • @sreehemambica8317
    @sreehemambica8317 4 месяца назад +8

    Your work deserves appreciation ,Can you make a video regarding questions that can be asked for HTML and CSS

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад +1

      Sure, stay tune!
      Till now uploaded video on:-
      Most asked interview questions on AL/ML PROJECT,
      MERN PROJECT

  • @102_prateeksingh2
    @102_prateeksingh2 5 месяцев назад +12

    Please make a video on how to explain projects and what if we have only basic project, also what if we have not done any internship what reason can we give.

    • @PrimeCoding19
      @PrimeCoding19  5 месяцев назад +4

      Sire Prateek I will do,
      Stay tune. Thanks for your suggestion.

  • @yashchoudhary-rd1tb
    @yashchoudhary-rd1tb 5 месяцев назад +3

    extremely helpful. Thank you for covering all the important topics in a single video.

    • @PrimeCoding19
      @PrimeCoding19  5 месяцев назад

      Thanks Yash, keep learning 🎉

  • @rneditz3250
    @rneditz3250 3 месяца назад +4

    Q.42) I think we can't use Having without group by.There should be simply WHERE Clause.

    • @PrimeCoding19
      @PrimeCoding19  3 месяца назад

      @@rneditz3250 use it and see the results.

    • @FriendlyPotato2
      @FriendlyPotato2 2 месяца назад

      @@PrimeCoding19 it doesn't work in SQL server. maybe it works in MySQL

    • @Bilal_Ansari_98
      @Bilal_Ansari_98 2 дня назад

      @@PrimeCoding19 But a/c to the rule Having should be used only with groups or aggregate functions

  • @206-tusharkantimukherjee3
    @206-tusharkantimukherjee3 Месяц назад

    Q42 you can use simple WHERE because If you using HAVING GROUP BY is Necessary.
    Thank you from this kind of content brother 🙏

  • @CrackAniWithCode
    @CrackAniWithCode 5 месяцев назад +3

    Hey Aditya, I found this video very useful. I was going through the interview experience and similar questions that you have covered in this video. Please keep uploading it is really helpful.

    • @PrimeCoding19
      @PrimeCoding19  5 месяцев назад +1

      Thank you Anirudh, keep watching and keep supporting 🎉

  • @Learner-jb5tu
    @Learner-jb5tu 5 месяцев назад +2

    Sir, You are doing great job. Your guidance is excellent and very helpful for us

    • @PrimeCoding19
      @PrimeCoding19  5 месяцев назад

      Thank you it means a lot me.
      Keep learning

  • @seshulatha
    @seshulatha Месяц назад

    Thank you so much for the video🎉

  • @politicalthuglife8799
    @politicalthuglife8799 Месяц назад +1

    Thats Great

  • @ASRINIBASHACHARY
    @ASRINIBASHACHARY 4 месяца назад +1

    Great work brother..it helps alot

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад

      Thanks, do check interview experience also

  • @ECE-KAVYAV
    @ECE-KAVYAV 3 месяца назад +3

    Bro could you make video on Java interview questions too

  • @satishanny
    @satishanny 5 месяцев назад +2

    Grt guidance

    • @PrimeCoding19
      @PrimeCoding19  5 месяцев назад

      Thank you it means a lot me.
      Keep learning

  • @U2011-n7w
    @U2011-n7w 4 месяца назад +1

    best video on sql

  • @Goldy30
    @Goldy30 5 месяцев назад +1

    Very helpful

    • @PrimeCoding19
      @PrimeCoding19  5 месяцев назад

      Thank you it means a lot me.
      Keep learning

  • @RugadaChaitanya
    @RugadaChaitanya 4 месяца назад +2

    Hello sir, could you please tell me what type of questions are asked about cloud computing for a TCS digital role?

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад +2

      Fundamentals, have a look on gfg.

  • @sportsofficial6374
    @sportsofficial6374 Месяц назад

    In 48 Q use where clause after on condition

  • @rayma101
    @rayma101 4 месяца назад +1

    Can you make a one shot for oops as well. thank you for this video, it is very helpful.

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад

      All repeated and previous year question of oops, cn, sql, dbms basically technical question video soon.

  • @ShiyaamsundharVetrivel
    @ShiyaamsundharVetrivel 4 месяца назад +3

    bro for the Q42 why dont you use WHERE clause . I think it will lead to error if we use HAVING there without GROUP BY.

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад +1

      Please check before guessing it.
      I have tried and tested on 42 question.

    • @ShiyaamsundharVetrivel
      @ShiyaamsundharVetrivel 4 месяца назад

      @@PrimeCoding19 ok bro. thanks for this one shot video it's very much helpful😊

    • @ShiyaamsundharVetrivel
      @ShiyaamsundharVetrivel 4 месяца назад

      @@PrimeCoding19 bro can i use WHERE ther or not??

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад

      @@ShiyaamsundharVetrivel please go through the question. You should return the answer in a group not in rows.
      If questions states you need to return the answer in row the. Surely u can use where clause!

  • @merya1514
    @merya1514 4 месяца назад

    Good video.thank you!

  • @huehue007
    @huehue007 5 месяцев назад +1

    great video

    • @PrimeCoding19
      @PrimeCoding19  5 месяцев назад

      Thank you it means a lot me.
      Keep learning and supporting.

  • @amanisdreaming3914
    @amanisdreaming3914 4 месяца назад

    this one is really good for beginners.

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад

      Today's video will be more helpful. Do watch it!

  • @orsanjiv
    @orsanjiv 27 дней назад

    please provide the ppt url of this video for quick revision. and also telegram link is not working

  • @Pizzza_Mania
    @Pizzza_Mania 5 месяцев назад

    Thank you bro

  • @bhavyagupta2093
    @bhavyagupta2093 3 месяца назад

    Thank you brother

  • @sujithkumar1352
    @sujithkumar1352 4 месяца назад +1

    And we also want HR+MR ques along with ans bro

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад +1

      Hello Sujit already uploaded. Please check the latest video

  • @praneethkumar-v3y
    @praneethkumar-v3y 4 месяца назад

    Sir I have a doubt, in the 42Q of this video, why can't we use normal query using where clause,
    select name, year from movies where year>2000;
    in this also we are not using group by clause right?
    tell me whether I am correct or wrong , or did I miss any condition

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад +1

      The question wants to return the answer in groups (not rows) without using GROUP BY.
      If you use having keyword it will give answer in grouped format

    • @omprakashhardaha7736
      @omprakashhardaha7736 4 месяца назад

      A

  • @RahulB-bt7ny
    @RahulB-bt7ny 4 месяца назад

    Excellent video, it was really helpful. Could you pls share the ppt or pdf link? I couldn't find it in the description.

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад

      Hello Rahul please check the telegram group for all notes!

  • @sakshamgupta7503
    @sakshamgupta7503 4 месяца назад

  • @Akashgupta-id3kw
    @Akashgupta-id3kw 4 месяца назад

    50Q Ans.
    SELECT a.first_name, a.last_name
    FROM actors a
    WHERE a.id IN (
    SELECT r.actor_id
    FROM roles r
    WHERE r.movie_id = (
    SELECT m.id
    FROM movies m
    WHERE m.name = 'Schindler''s List'
    )
    );

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад

      Avoid using nested queries. Joins are more optimal!

  • @niranjana1588
    @niranjana1588 4 месяца назад

    Please put a vedio for excel interview questions

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад +1

      If you have mentioned Excel in your resume then you expect questions on excel.
      Excel I will see because I don't have much knowledge about excel as its not a technical stuff.

  • @aayushbisht4307
    @aayushbisht4307 3 месяца назад +3

    in 42Q can't we simply write SELECT name,year FROM movies WHERE year>2000 ?? Why would one require group by here anyways, what's the catch here?

    • @PrimeCoding19
      @PrimeCoding19  3 месяца назад +1

      You need to return the results in a grouped manner.

    • @aayushbisht4307
      @aayushbisht4307 3 месяца назад

      @@PrimeCoding19 The results shown in your output are not grouped, neither by name nor by year.

    • @PrimeCoding19
      @PrimeCoding19  3 месяца назад +1

      ​@@aayushbisht4307 The question should be without using group by and where clause.

    • @aayushbisht4307
      @aayushbisht4307 3 месяца назад

      @@PrimeCoding19 Ohh got it now it makes sense.

  • @aspirant_IIT-KGP
    @aspirant_IIT-KGP 4 месяца назад

    Thankyou. Can you please share the db?

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад

      Database..
      I will try to find or create a sql file. But for now there are multiple schemas present over net you can try that out.

  • @yuvitoober8347
    @yuvitoober8347 4 месяца назад

    hey, i watched this video , can i know any platform to practice beginners interview sql question

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад +1

      There are many gfg, Leetcode easy ones and sqlpractice is a type of website.

  • @earthen2439
    @earthen2439 3 месяца назад

    i think in 38 questions it is select year, count(movies) from table ??? but use used count(year)?

    • @PrimeCoding19
      @PrimeCoding19  3 месяца назад

      You have to use "Group By" to show the year and number of movies.

  • @vedant_shrivastava_3
    @vedant_shrivastava_3 4 месяца назад

    Can you explain the Q.50. I think there should be

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад

      There is improvement in the question, there should be
      How do you select all the movies that have the highest rank score in the database?
      Now the solution makes sense. Sorry for the inconvenience.
      Explanation of the query:
      The WHERE clause uses the >= ALL operator to ensure that the rankscore of each selected movie is greater than or equal to the maximum rankscore found by the subquery.
      Since the subquery returns only the maximum rank score, >= ALL effectively means rankscore >= max(rankscore), which selects movies with the highest rank score.

  • @sujithkumar1352
    @sujithkumar1352 4 месяца назад

    Do we need to learn PL SQL also for TCS?

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад

      Knowledge of that will be plus point.

  • @pulipatisaipranavi3468
    @pulipatisaipranavi3468 4 месяца назад

    my major project is about secure money transfer using blockchain. how can i crack the digital interview . please help me.

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад +1

      Hi, you must know the basics of blockchain. They can ask you any basic question.
      Try to cover all the questions related to your project. Like why did you use this technique etc.

    • @pulipatisaipranavi3468
      @pulipatisaipranavi3468 4 месяца назад

      Okay sir thanks

  • @krishnakantchoubey2998
    @krishnakantchoubey2998 5 месяцев назад

    Next computer networking please

    • @PrimeCoding19
      @PrimeCoding19  5 месяцев назад +2

      Yes I will upload. Note down all these pattern wise queries and revise them. This will help you in the interview

  • @prabalsingh1919
    @prabalsingh1919 4 месяца назад

    At 9:59 Can we use OFFSET without order by clause?

  • @ShaanShaban-zm8ul
    @ShaanShaban-zm8ul 2 месяца назад

    Please share questions pdf with us

  • @girisringeri
    @girisringeri 25 дней назад

    Questions are good but data is not a good one , you could have taken any sales, finance data.

  • @HemanthKumarSomavarapati
    @HemanthKumarSomavarapati 5 месяцев назад

    Is 42Q is wrong, I mean in the place of groupby it is where ?

    • @PrimeCoding19
      @PrimeCoding19  5 месяцев назад +2

      No, it is written in the question that you have to write the query without using GROUP BY (means you have to print the output in GROUPs without using GROUP BY keyword) so you need to use HAVING which deals with groups . You can use 'where' if you want to deal with rows.

  • @ravitejathipparthi5804
    @ravitejathipparthi5804 3 месяца назад

    18 question is incorrect the correct way is
    SELECT name, year, rankscore
    FROM movies
    WHERE rankscore IS NULL;

    • @PrimeCoding19
      @PrimeCoding19  3 месяца назад

      Thanks for pointing out, Please check the pin comment.

  • @qtaadf
    @qtaadf 3 месяца назад

    what is the difference between ms sql and mysql

    • @PrimeCoding19
      @PrimeCoding19  3 месяца назад

      Microsoft SQL Server supports fewer platforms than MySQL. MySQL supports more programming languages than SQL Server, like Perl and Haskel. SQL Server supports fewer programming languages than MySQL. MySQL has a wider range of third-party connectors and integrations.

  • @onaisyankler4297
    @onaisyankler4297 2 месяца назад

    where do i get ppt?

    • @PrimeCoding19
      @PrimeCoding19  2 месяца назад

      Join the telegram group and check the pinned message

  • @naveenbro3495
    @naveenbro3495 4 месяца назад

    send this database table for better to practice these queries........

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад

      Yes, I will please join the telegram I will notify about the database there!

  • @prakharsinha4145
    @prakharsinha4145 4 месяца назад

    38Q. we can have COUNT(movie_name) as well right, since we are already grouping it by year

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад

      For movie_name you can't use.

    • @prakharsinha4145
      @prakharsinha4145 4 месяца назад

      @@PrimeCoding19 why, since we have already grouped the data with with respect to year

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад

      @@prakharsinha4145 I will share you the db please check your query.
      I guess you can't mention movies name into count.

    • @prakharsinha4145
      @prakharsinha4145 4 месяца назад

      @@PrimeCoding19 yess.. please share, or sir you yourself run that and tell if we can do it or not

  • @Scooy-gc5xu
    @Scooy-gc5xu 5 месяцев назад

    Is Tcs offCampus has the section wise cutoff?

    • @PrimeCoding19
      @PrimeCoding19  5 месяцев назад +1

      Yes, tomorrow I will upload detailed cutoff analysis and much more information. stay tune.

    • @Scooy-gc5xu
      @Scooy-gc5xu 5 месяцев назад

      😢 i have excuted 2 coding questions and nill in aptitude 😢

    • @PrimeCoding19
      @PrimeCoding19  5 месяцев назад

      @@Scooy-gc5xu ohho but finger cross I hope you will get Ninja role atleast.

    • @Scooy-gc5xu
      @Scooy-gc5xu 5 месяцев назад

      😢 shit

  • @SHINGAVIKAJAL
    @SHINGAVIKAJAL 4 месяца назад +1

    where is ppt?

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад +1

      Join the telegram group. You can find notes in the files section.
      Thank you

  • @shivasaladi8397
    @shivasaladi8397 4 месяца назад

    Bro i want pdf of these questions.. can you provide

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад

      Please join the Telegram group,
      Go to files section and download the notes.

  • @U2011-n7w
    @U2011-n7w 4 месяца назад +1

    Question no 50 is incorrect

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад +1

      It is correct I have explained how you can use ALL keyword.
      There is improvement in the question, there should be
      How do you select all the movies that have the highest rank score in the database?
      Now the solution makes sense. Sorry for the inconvenience

    • @staywithmeforever
      @staywithmeforever 3 месяца назад

      What's the point of using all it returns single value

    • @staywithmeforever
      @staywithmeforever 3 месяца назад

      ​@@PrimeCoding19best would be
      Select * from movies
      Where rankscore=max(rankscore)

  • @TEAM-sn1lw
    @TEAM-sn1lw 2 месяца назад

    PDF file download link

  • @poojithagampa4315
    @poojithagampa4315 5 месяцев назад

    Is TCS sending mails....

    • @PrimeCoding19
      @PrimeCoding19  5 месяцев назад +1

      For every few candidates who had shift in April. They will send the mail.
      I will make an update video on this.

  • @priyankawagh5217
    @priyankawagh5217 28 дней назад

    I think 50th question and solution aren't correct match with each other. Problem statement should be different

    • @PrimeCoding19
      @PrimeCoding19  28 дней назад

      @@priyankawagh5217 check out the pinned comment

  • @manishpandey5753
    @manishpandey5753 Месяц назад

    Pdf link

    • @PrimeCoding19
      @PrimeCoding19  Месяц назад

      Join the telegram group and check the pinned message

  • @niteshkhanna690
    @niteshkhanna690 4 месяца назад

    please provide this slide linnk

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад

      Check in telegram group. I have uploaded!

  • @RahulSaini-jh5if
    @RahulSaini-jh5if 5 месяцев назад

    Wrong pdf uploaded brother

    • @PrimeCoding19
      @PrimeCoding19  5 месяцев назад

      Thanks for telling me,
      I have uploaded an article. Please take a look now.

  • @rahulvv578
    @rahulvv578 4 месяца назад

    Sir can you send this pdf

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад

      Join the telegram group,
      Go to file section you will find the pdf.

  • @DevinAI-lf8nc
    @DevinAI-lf8nc 4 месяца назад

    Hindi nhi aati kya aap ko ya England ka raja ho the ki English hi aav h 😂

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад

      Hindi aati ha, magar majority audience meri south se h so, English bolna padta ha

    • @DevinAI-lf8nc
      @DevinAI-lf8nc 4 месяца назад

      @@PrimeCoding19 to fir north valo ka kya hoga ya Esa kro koi hindi channel Bata to best for sql

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад

      @@DevinAI-lf8nc Mitr you should watch English tutorial as much as possible it will increase your speaking or communication skill.
      Channel ka socha hu hindi wala dekhta hu aage kabhi!

    • @DevinAI-lf8nc
      @DevinAI-lf8nc 4 месяца назад

      @@PrimeCoding19 brother data analytics ke bare m batao kuch m Kar Rahe hu aage future to h na or job vegera k bare m Batao DA ki ,, call pe bat ho sakti h kya bro

  • @Instagramreels-ju4jk
    @Instagramreels-ju4jk 4 месяца назад

    What type of questions asked on artificial intelligence and machine learning, they will ask basic or advancs also

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад

      Fundamentals.
      Follow up questions is depended upon your explanation.
      So prepare for it, be careful when you speaking.

  • @btr_Z
    @btr_Z 3 месяца назад

    bro are you also MountCider, you look like so much much lol

  • @sen_140_piyush9
    @sen_140_piyush9 4 месяца назад +1

    can u please share database🥲

    • @PrimeCoding19
      @PrimeCoding19  4 месяца назад +1

      Check day after tomorrow it will be updated. Join the telegram group I will also notify about db.

    • @sen_140_piyush9
      @sen_140_piyush9 4 месяца назад

      @@PrimeCoding19 i am from E&TC background can you suggest me some tips... regarding interview and what project should i mention

  • @102himanshukumar2
    @102himanshukumar2 4 месяца назад

    Amity University Noida, G8VM+H6F, Amity Rd, Sector 125, Noida, Uttar Pradesh 201301
    ANY ONE from this center ?? please contact ASAP