SOLVE 5 SQL QUERIES IN 5 MINUTES (PART 1) | MASTER IN SQL | SQL INTERVIEW QUESTIONS

Sdílet
Vložit
  • čas přidán 6. 09. 2024
  • In this video, we’ll solve sql queries for practice. Important SQL interview queries.
    ✨Work related mails can be sent on:
    work.sadiasiddiqui@gmail.com
    ✨If you appreciate my work and would like to donate to support our channel, you can do so here:
    paypal.me/sadi...

Komentáře • 379

  • @crackconcepts
    @crackconcepts  Před 11 měsíci +5

    ✨Link to my SQL e-book: imojo.in/rkajq9
    ✨Link to 'Switch your career easily' e-book: imojo.in/1FL7KaG
    (Perfect for anyone willing to switch to a completely new field or to a different company in the Tech World)

  • @raghavsharma879
    @raghavsharma879 Před 3 lety +481

    It feels like when a friend of urs is explaining all this to you just before 5mins and boom you rock that exam.... Explanation with such an ease..... Woww....

  • @user-rr9lo4wc8g
    @user-rr9lo4wc8g Před rokem +12

    1. UPDATE emp
    SET salary = salary * 1.05; --This approach is easier to remember.

  • @shayamjyotisarkar317
    @shayamjyotisarkar317 Před 3 lety +64

    Concepts explained with such simplicity. Truly awesome.

  • @nagaraju2962
    @nagaraju2962 Před rokem +7

    Query 4,select * from employees where first_name like '%A' and LENGTH(first_name) =6;

  • @kameshnayak8677
    @kameshnayak8677 Před 3 lety +43

    Hi Ma'am,
    Your videos are really helpful for interview preparation. Now we need not to waste precious time browsing confusing contents on net. Keep uploading more contents. :)

  • @simonoganga9535
    @simonoganga9535 Před 3 lety +13

    Am beginning to learn SQL, I can't wait to master it.

  • @stormboy87
    @stormboy87 Před 6 měsíci +4

    I'm watching after 4 years , still it is so helpfull and i will always be helpfull in/for future ❤❤

  • @akhilgoyal6224
    @akhilgoyal6224 Před rokem +4

    I like the way she explains the problems and very good way to explain on papers by writing them self

  • @vishaluniverse66
    @vishaluniverse66 Před rokem +5

    Give more questions like this.
    It is helpful when we practice this Looking at your questions at one place.
    If I don't practice sql for 3 4 days, i forget basics of SQL like insert, update, delete drop with where etc

  • @yuvrajsingh1713
    @yuvrajsingh1713 Před 2 lety +1

    I am watch many vedio about SQL in CZcams but I have not get man think about SQL Query question solving in easy way but after watching your vedio every think clear about SQL and I think you have too much knowledge about SQL Query and thanks for providing this type of think by the help of vedio...

  • @alokranjan7323
    @alokranjan7323 Před 2 lety +2

    4th one - select *from employees where firstname like '%A' and len(Firstname)=6
    I think this should also work

    • @stevequantie8064
      @stevequantie8064 Před 2 lety +1

      Yes, as long as you're using the right reserved words like "length" vs "len". I think of "len" when using almost all other languages.

  • @MarioBritto76
    @MarioBritto76 Před 3 lety +13

    Would be good to include the questions/Queries in your description summary so that we can also practice once without having to run the video again

  • @davinaugustine4379
    @davinaugustine4379 Před 2 lety +14

    For query 4, it is meant to be SELECT * FROM employees WHERE first_name like '%_____a';

    • @ashishashok9941
      @ashishashok9941 Před 2 lety

      Yes

    • @stevequantie8064
      @stevequantie8064 Před 2 lety

      I do not believe so. When you put the wildcard at the beginning, the logic would tell me to expand on the number of starting characters. Test it! I did and the author is correct with the simplest solution.

    • @jananiv7105
      @jananiv7105 Před 2 lety +1

      Why they are not using* in 1&2?

    • @mohammadriaj2804
      @mohammadriaj2804 Před rokem

      SQL compilation error: error line 2 at position 6 invalid identifier 'first_name'

    • @user-rr9lo4wc8g
      @user-rr9lo4wc8g Před rokem

      SELECT *
      FROM emp
      WHERE first_name LIKE '_____A'; THIS IS FINAL AND CORRECT. ( 5 underscores)

  • @mr.x6499
    @mr.x6499 Před 3 lety +28

    Awesome voice..

  • @YanYan_UJ
    @YanYan_UJ Před 2 lety +10

    Your videos are life saver! The explanations are easy to understand. Subscribed!

  • @user-cf8oi4hh2p
    @user-cf8oi4hh2p Před 5 měsíci +1

    My Exam is there and i was having much doubts in my sql. 😢Thankyou for clarifying my doubts 😊🎉

  • @amrindersingh8003
    @amrindersingh8003 Před 2 lety +43

    i have exam tomorrow 😂

    • @cgimotion3351
      @cgimotion3351 Před 3 měsíci +5

      😂I have an exam in 5hrs😊

    • @sah_eli
      @sah_eli Před 3 měsíci +1

      ​@@cgimotion3351 hey ! How was your exam ? I have mine soon

    • @cgimotion3351
      @cgimotion3351 Před 3 měsíci

      @@sah_eli aced it,

    • @kennedy4405
      @kennedy4405 Před 3 měsíci +1

      I have exam in 15 mins

    • @PolBoy-is5rj
      @PolBoy-is5rj Před 2 měsíci +1

      I have in 0 minutes

  • @smarter_solutions
    @smarter_solutions Před 3 lety +7

    For the first one update employers set income = income * 1,05 is easier
    Anyway good job

  • @veeramani8478
    @veeramani8478 Před 2 lety +1

    Learnt SQL topics and queries few days back Just a beginner quite impressed by your q and a

  • @Haiderali-hi5cj
    @Haiderali-hi5cj Před 3 lety +12

    thankyou for the help tomorrow is my offline exam. thanks for making short and conceptual video.

  • @vivekgupta5041
    @vivekgupta5041 Před 3 lety +9

    Very useful and helpful videos !!! To the point and time savers !!!

  • @prashanthvenkatesh8207
    @prashanthvenkatesh8207 Před 4 lety +5

    Awesome voice, I guess you must be full time singer

  • @miteshjain4549
    @miteshjain4549 Před 4 lety +4

    super job .
    god bless you.
    nice job. In 5 min only i got more information.

  • @arshadahmed126
    @arshadahmed126 Před 2 lety

    Howww she is explaining over paper. To be honest it's more understandable than most of the channel who is on PC. Loved your channel ♥️

  • @sunilSunil-lm5ck
    @sunilSunil-lm5ck Před 8 měsíci

    We can also use another method
    Select salary +5% as increment from employee

  • @DHANUSHrockyartist
    @DHANUSHrockyartist Před 3 lety +10

    3 question I think we need to use having for aggregate functions

  • @knighthacker2307
    @knighthacker2307 Před rokem +1

    The lecture is great and fine! But I remember my ex after hearing your voice....lol...😄

  • @aravinds3808
    @aravinds3808 Před 3 lety +1

    Hi sister,
    Thanks for your videos..it helped me to land SQL developer job..

  • @riteshtripathi8626
    @riteshtripathi8626 Před 3 lety +6

    Hi, in your third query, i remember somewhere in your other video you mentioned, if an 'aggregate function' is used, we can't use 'WHERE' clause rather 'HAVING' clause is to be used, however you have used COUNT with WHERE, kindly enlighten me, Thanks in advance

    • @crackconcepts
      @crackconcepts  Před 3 lety +2

      Please watch my latest video on WHERE VS HAVING IN SQL
      you’ll understand it properly

  • @themaninthemirror2038
    @themaninthemirror2038 Před 3 lety +5

    Very Well Explained, and a nice practice for my learning.

  • @areyentraidi_shafi4623
    @areyentraidi_shafi4623 Před 3 lety +1

    Simple sample of sql queries with simple pen and awesome musical voice.. 💐

  • @khushbooshivhare5530
    @khushbooshivhare5530 Před 4 lety +5

    Thank you so much, this 5 min video idea is very helpful

  • @shubhamgupta-ur3hf
    @shubhamgupta-ur3hf Před 3 lety

    I have watched many video for SQL tutorials but I understand ur video properly thanks for the help

  • @ramanayudusadam2722
    @ramanayudusadam2722 Před 3 lety

    The video is excellent. A small improvement; it's not an alphabet. It is a letter. Alphabet means A to Z.

  • @srinivasreddy186
    @srinivasreddy186 Před 3 lety +4

    Hello, i hope u r dng well ,good job and plz post some a little complex queries..

  • @EveryDaymast
    @EveryDaymast Před rokem

    select first_name from employees where first_name like '%A' and length(first_name) = 6

  • @abdulatifkasim5332
    @abdulatifkasim5332 Před 2 lety +1

    WHAT AVERY NICE AND CLEAR PRESENTETION KEEP IT UP!!!!!!!

  • @amitejpratapsingh2702
    @amitejpratapsingh2702 Před 3 lety +1

    I have been looking for such vedios for long. Short ,simple and easy.

  • @salimamansoura7838
    @salimamansoura7838 Před 3 lety +11

    Thank you so much for all the efforts you are making to provide this information smoothly .

  • @kasirbarati3336
    @kasirbarati3336 Před 6 měsíci +2

    What is the difference between `SELECT * FROM employees where first_name LIKE 'ABC';` and `SELECT * FROM employees where first_name = 'ABC';`?

  • @SM-hw3yi
    @SM-hw3yi Před rokem +1

    Explained in simple and beautiful way. Thanks

  • @arrigune
    @arrigune Před rokem

    Thank you. I love that you do it on papaer. That's my way of getting in everything.

  • @kapishmajumder2004
    @kapishmajumder2004 Před 3 lety +1

    Thanks for helping me.. Tomorrow is my offline practical exam, i am searching for this from morning i cant but in this video i was cleared about it.. Thanks a lot.. And by the way your voice is so sweet😌❤

  • @mohammeduddin3504
    @mohammeduddin3504 Před 3 lety +7

    As a database admin i approve that i use some of these simple queries almost everyday lol

  • @sunilgupta123456789
    @sunilgupta123456789 Před 3 lety

    hi
    i have a table like this
    Name 01-Feb 02-Feb 03-Feb 04-Feb 05-Feb
    shyam 2.46 -0.13 -0.27 1.20 -2.64
    mohan -1.35 -1.82 0.46 1.84 1.81
    ram 3.76 4.35 1.39 -0.68 -3.45
    rina -0.45 8.09 1.95 0.78 -1.30
    ashok 0.53 -2.62 4.84 -0.51 0.00
    faizal 1.45 2.36 3.07 4.90 7.74
    aarti 2.20 -1.08 -1.09 1.10 -3.26
    AARON -3.36 4.00 -2.74 0.21 0.10
    jagdish 0.66 0.03 1.29 0.41 -1.79
    these are the marks of test happened on these dates.
    i want to know which student performance is increasing day by day.
    i want query in sql
    pls help me
    regards,
    sunil

  • @abilash5642
    @abilash5642 Před 3 lety

    It can be simply done as set income= income*1.05;

  • @nikhilrageer1315
    @nikhilrageer1315 Před 3 lety +6

    Voice is so cute 🤩

  • @sureshbarma1320
    @sureshbarma1320 Před 2 lety

    in this video if you show the table also, then it becomes very easy to understand for beginners

  • @abdulatifkasim5332
    @abdulatifkasim5332 Před 2 lety

    please give us some lecture on How to get odd and even number from the given table, thank you so much

  • @Abhishekyadav-xd2ib
    @Abhishekyadav-xd2ib Před 3 lety

    1. Select sal,sal+5/100 from emp;

  • @safarnaama8798
    @safarnaama8798 Před 3 lety

    Aapki writing meri tarha hai :D
    Good content and explanation btw.
    I am a working professional.

  • @farusm600
    @farusm600 Před rokem

    These situation based queries are a great way to learn faster , please make a Long video or comple your other in one...thanks

  • @nageshpatil6114
    @nageshpatil6114 Před rokem

    In question 3 group by clause is necessary to use but don't use

  • @vishwajeetjadhav8807
    @vishwajeetjadhav8807 Před 2 lety

    Concepts explained with such simplicity & sweet voice

  • @2amthoughtsz
    @2amthoughtsz Před rokem

    You have missed percentage sign in 4 ques. It's just a correction. Your vidios are well explained.😊

  • @shivanshsrivastava1715
    @shivanshsrivastava1715 Před 3 lety +2

    You explain in that way like if anyone didn't know about SQL then also he can understand and get the idea about what is happening and how the queries are written👌👌 thank-you soo much

  • @TechCoach
    @TechCoach Před 3 lety +2

    Clean,Simple and precisely explained :) . Good work.

  • @Vamsikc543
    @Vamsikc543 Před 3 lety +11

    To the point !!!🔥🔥

  • @topclass5695
    @topclass5695 Před 2 lety +1

    Last but not least is emp ''salary'' very imp '''Q'''

  • @TechXplorePro
    @TechXplorePro Před 4 lety +1

    Creative explanation. Another way of Quick Learn SQL. Keep Going 👍👍👍

  • @noormohammed2127
    @noormohammed2127 Před 2 lety +1

    Nice explanation.very helpful.easily understanding.

  • @AnshSharma-lw6rz
    @AnshSharma-lw6rz Před rokem

    Great work and explanation Sadia feels like a friend of mine is teaching me 👍🏻👍🏻

  • @sureshkumar-ev4qu
    @sureshkumar-ev4qu Před 5 měsíci

    Update Query for the first question updates the database table permanently, instead you can create conditional column.
    Assuming there are 3 columns in employee table. (ID, NAME , SALARY)
    SELECT ID, NAME, 1.05*SALARY AS SALARY
    FROM EMPLOYEE;

  • @hamzaabaichi8361
    @hamzaabaichi8361 Před rokem

    Thank you a lot for your efforts , and greeting from Morocco 🇲🇦❤

  • @michaelchiz8055
    @michaelchiz8055 Před 2 lety

    Good tutorial. Please keep making these beautiful Tutorials.

  • @omkarsatav2626
    @omkarsatav2626 Před 3 lety +1

    Thank you so much 👍🏻. It was a great brief coverage of DML statements.

  • @srashoknaidu3235
    @srashoknaidu3235 Před 3 lety

    excellent miss, and im sure about to follow your all videos and please keep going on.....

  • @fitnessgroupofindia4423
    @fitnessgroupofindia4423 Před 4 lety +1

    I have one question in question no:- 4 '_ _ _ _ _A' in this case where we write '%'

    • @SurineediSatvik
      @SurineediSatvik Před 4 lety +1

      if we use '%A' there might be names with n number of alphabets ending with A. The question asked only a 6 alphabet name ending with A.SO it is _____A

  • @sportsnarrow1303
    @sportsnarrow1303 Před 3 lety

    In First question we have to add NVL function

  • @babavalishaik4874
    @babavalishaik4874 Před 2 lety

    Amazing explanation easy to understand tq u for making easy👍🏻👌🏻👏

  • @zamatallica7
    @zamatallica7 Před 3 lety

    My answer is income=income*1.05 just to keep the math simpler.

  • @tupacshakur648
    @tupacshakur648 Před rokem

    Thanks mam for explaining it in a simple manner.

  • @aa-zn8ig
    @aa-zn8ig Před 3 lety +5

    Voice is really amazing.❤️

  • @Mohhak
    @Mohhak Před 3 lety

    I have got a table name Programmer with columns... Name, Language known 1, Language Known2, Salary.
    Need to know the Programmer Name with highest salary in each language...So suppose Name is Anand he knows Language 1.. C. Language 2 ..Oracle salary is 3000...2and employee is Ajeet Knows Language 1 Cobol...Language 2 C and so on so forth....

    • @whencat4705
      @whencat4705 Před 3 lety

      - Select Salary from programmer
      Will give you salaries of all programmers in the table just salaries not in any specific order if you want them in order
      - Select Salary from programmer order by desc
      This gives salaries in descending order

  • @aravindm6644
    @aravindm6644 Před 3 lety +3

    Sissy it's just amazing and usefull.

  • @jaazrawkstah9481
    @jaazrawkstah9481 Před 2 lety

    Absolutely brilliant. I would like to see more query.

  • @mangeshpimpalshende
    @mangeshpimpalshende Před 3 lety +1

    I have one doubt in 3rd question :
    One of the video you said that having clause need to use with aggregate function .
    Where is used to filter the rows

    • @rachellesalangsang1165
      @rachellesalangsang1165 Před 3 lety +1

      If the select has another field other than coun(*) then the query will have GROUP BY ... HAVING COUNT(*) (condition).
      Ex:
      SELECT COUNT(*), DEPARTMENT_NAME
      FROM EMPLOYEES
      GROUP BY DEPARTMENT_NAME
      HAVING COUNT(*) > 1;

  • @pujaprasad8523
    @pujaprasad8523 Před 4 lety +4

    Thankyou Mam ....This helped me a lot...

  • @kamaltejayelisetti6806
    @kamaltejayelisetti6806 Před 3 lety +5

    I know all these queries
    But I just recollect those commands
    Anyways thank you...
    Very clean & No lag in Explanation
    Good
    Keep it up...

  • @CoolGuy
    @CoolGuy Před 11 měsíci +1

    UPDATE Employees
    SET Salary = Salary * 1.05 ; ( Increase salary by 5%)

  • @lakshmimurala5619
    @lakshmimurala5619 Před 2 lety

    Nice explanation......TQ for sharing the knowledge

  • @satishkalluri5687
    @satishkalluri5687 Před 4 lety +1

    Nice video, voice is very low, could you please increase your mic voice from next time.

  • @billhaqshaik563
    @billhaqshaik563 Před 5 měsíci

    Thanks for your SQL query explanation sister 👍

  • @rgkamal
    @rgkamal Před 2 lety +2

    Perfect and easy to understand 👌

  • @AdityaKumar-jy7zc
    @AdityaKumar-jy7zc Před 3 lety

    I like the way you teach.
    I have one confusion?
    structure of the table is retained in Truncate or in delete?

  • @AdnanKashemOxe
    @AdnanKashemOxe Před 3 lety

    Thanks a lot for all of your videos..helped me a lot. Best wishes to you. And keep making videos.

  • @jtanakala2976
    @jtanakala2976 Před 2 lety

    Hi,
    This is the table called comments_and_translations
    id comment translation
    1 very good
    2 good
    3 bad
    4 ordinary
    5 cdcdcdcd very bad
    6 excellent
    7 ababab not satisfied
    8 satisfied
    9 aabbaabb extraordinary
    10 ccddccbb medium
    The output should be
    comment
    very good
    good
    bad
    ordinary
    very bad
    excellent
    not satisfied
    satisfied
    extraordinary
    medium
    please help me out with the query.

  • @nikitaagarwal4231
    @nikitaagarwal4231 Před 3 lety

    Hi i really like the way you solved the queries
    .As of now i get ol the solution of this video.. Could you please taught me personally for my interview..

  • @arroworship4626
    @arroworship4626 Před 3 lety

    Thank you so much ...please make more videos on SQL interview questions

  • @OConnor_KeshavPatil
    @OConnor_KeshavPatil Před 3 lety

    In the scenario of count its an aggregation's term soo we have to use having instead of where

    • @050138
      @050138 Před 3 lety

      No need actually!

  • @nonoobott8602
    @nonoobott8602 Před 3 lety

    Very concise and explicit

  • @bradleynguyen1429
    @bradleynguyen1429 Před 3 lety

    Question why would not use LIKE again for the third problem. I see you use equal, but I can understand if the preference, would the LIKE still work for finding ‘ABC’?

  • @pitchiahm3725
    @pitchiahm3725 Před 3 lety

    For 4 th question, the first-name of the employees starting with A is asked ....if we want to select first-name or the whole thing..?

  • @hackerutkarsh
    @hackerutkarsh Před 3 lety +6

    The voice 😍

  • @yashimisra2518
    @yashimisra2518 Před 3 lety +1

    In third query shouldn't we have 'HAVING' instead of 'WHERE' clause, as count is an aggregate function?

    • @TheRahulbisht1989
      @TheRahulbisht1989 Před 3 lety

      Yes it is aggregate function but she is not using it on count, she is putting a condition with where clause.
      Having is use to filter data from groups.
      Example-
      Select count(employee), state from employees where department = 'abc'
      Group by state
      Having count(employee)> 10

    • @logan8283
      @logan8283 Před 2 lety

      @@TheRahulbisht1989 Thanks Brother for clearing my confusion 🤝

  • @shri7105
    @shri7105 Před 2 lety

    such a nice quick video , tq so much

  • @ashokmanne7371
    @ashokmanne7371 Před 3 lety

    Nice explanation with a beautiful voice

  • @manoranjanpanigrahi3677

    mesmerizing voice and to the point video

  • @er.rohitsoni419
    @er.rohitsoni419 Před 2 lety

    Make more video on java programming question...