SQL Intermediate Certification Skills Test on Hackerrank Detailed SOLUTION!

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ค. 2024
  • In this video I am solving the intermediate Certification Skills Test on Hackerrank. Watch also my other videos for more SQL Certification Solutions.
    ____________________________________________
    SUBSCRIBE!
    Do you want to understand how to solve SQL Problems in every detail? That's what my channel is about. When I was younger I thought I could never program because it looked way too difficult. The truth is that it takes time but with some patience anybody can do it! Follow me along and get better!
    ____________________________________________
    SUPPORT MY CHANNEL
    🙌The best way to support my channel right now is to give me a Super Thanks. You can do that by clicking thanks next to the title of the video. It is much appreciated!
    ____________________________________________
    💾GitHub: github.com/CuriosityLeonardo?...
    ✋Add me on LinkedIn to get in contact: / markus-friemann-221b3814b
    ____________________________________________
    Timestamps:
    0:00 Sample test
    1:50 First Question - Product Without Sales
    6:34 Second Question - Business Expansion

ความคิดเห็น • 35

  • @md.nasimuddin4079
    @md.nasimuddin4079 2 ปีที่แล้ว +3

    Really bro..your coding style is just awesome

  • @xxchobbeyforestxx
    @xxchobbeyforestxx ปีที่แล้ว

    Hey thanks for sharing. Great to see variant of solution and your thought process!
    I tried to concat the user_account_id and the customer_id in the subquery and then count distinct them in the outer query to find the number of contact. Sadly it doesnt turn up as i'm intended. Perhaps do you know the reasoning behind this on why i fail?

  • @stevenylai
    @stevenylai 2 ปีที่แล้ว +1

    Thanks a lot for the walk-through. Now there is another SQL (Advanced) certification available. Could you please do a similar video on that one?

    • @thecodingmentor7701
      @thecodingmentor7701  2 ปีที่แล้ว +2

      Hi Steven, great suggestion! I have some other plans now but it is definitely on my list of videos!

  • @TheTechInsiderBySaurabh
    @TheTechInsiderBySaurabh 2 ปีที่แล้ว +3

    Hi
    learning a lot from your videos
    could you please make a video for what approaches we need to follow while solving a medium level and advance level sql query ?

    • @thecodingmentor7701
      @thecodingmentor7701  2 ปีที่แล้ว +1

      Hi Saurabh, thanks for the request, I will think of it if I can make something useful

  • @tienmy52hz
    @tienmy52hz ปีที่แล้ว

    Thank you for your video, It's helpful for me. Could I have a database to practice? Thanks.

  • @phamxuantung892
    @phamxuantung892 ปีที่แล้ว

    Thank you so much

  • @parkthatjiminssi
    @parkthatjiminssi ปีที่แล้ว

    Loved it... Can u do it in MySQL server... Please

  • @kaz-ittraininghub9388
    @kaz-ittraininghub9388 2 ปีที่แล้ว

    As part of business expansion efforts at a company, your help is needed to find all pairs of customers and agents who have been in contact more than once. For each such pair, display the userid first name and last name and the customer id, name and the number of their contacts. order the result by user id ascending.

    • @thecodingmentor7701
      @thecodingmentor7701  2 ปีที่แล้ว

      Is that a question on the intermediate certification test?

  • @ahmetselimoncel2717
    @ahmetselimoncel2717 6 หลายเดือนก่อน

    why we need a with seciton ,what is stopped us to use ( where function) in first section

  • @HandoSonic
    @HandoSonic 2 ปีที่แล้ว +1

    ty

  • @thangbach5506
    @thangbach5506 4 หลายเดือนก่อน

    Thanks so much

  • @Black_cat_27
    @Black_cat_27 ปีที่แล้ว

    Why is the invoice_id null?

  • @smarttrick6904
    @smarttrick6904 2 ปีที่แล้ว

    Whats the content of set nocount on?

    • @thecodingmentor7701
      @thecodingmentor7701  2 ปีที่แล้ว

      Hi Smart Trick, this prevents some analysis (counting) of the computer so that the query runs faster. It has no effects to the content of your code. For more details, see this link: stackoverflow.com/questions/38145270/what-is-the-advantage-of-using-set-nocount-on-in-stored-procedures-which-are#:~:text=SET%20NOCOUNT%20ON%20is%20a,showing%20the%20affected%20rows%20message.

  • @kaanekli516
    @kaanekli516 ปีที่แล้ว

    Hey its so nice mr mentor, but i wonder a thing that how can you fix while writing automatically ? Its a extension? :D i realized it 3.09 form to from ? : D

    • @thecodingmentor7701
      @thecodingmentor7701  ปีที่แล้ว

      Hi Kaan, no its not an extension. I just cut out a part of the video, thats why it looks so fast :D

  • @rahulbatish8704
    @rahulbatish8704 2 ปีที่แล้ว +1

    is it shareable on linkedin?

    • @thecodingmentor7701
      @thecodingmentor7701  2 ปีที่แล้ว +1

      Hi Rahul, Yes! It is shareable on Facebook, Twitter and LinkedIn. I shared the Certification in my LinkedIn profile which you can see here for reference: www.linkedin.com/in/markus-friemann-221b3814b/

    • @rahulbatish8704
      @rahulbatish8704 2 ปีที่แล้ว

      @@thecodingmentor7701 👍👍

    • @nasirahmad9717
      @nasirahmad9717 2 ปีที่แล้ว

      A department store maintains data on customers, products, and purchase records in three tables: CUSTOMER, PRODUCT, and PURCHASE. The store manager wants to know which product is on maximum discount for each category. Write a query to print the following fields for each category, ordered by category, ascending: category, product ID and discount for the product that has the maximum discount in the category. In the case of multiple products having same maximum discount within a category, print the product with minimum product_id.

  • @sabidhamu6674
    @sabidhamu6674 ปีที่แล้ว

    You have anyone who can explain
    algorithms like this?

    • @thecodingmentor7701
      @thecodingmentor7701  ปีที่แล้ว +1

      What do you mean if I have anyone? Should I give you someone? How would this transaction look like?

  • @yasinabdelhameed1910
    @yasinabdelhameed1910 ปีที่แล้ว +1

    that sample test is not indicative of the difficulty of the real test questions

    • @thecodingmentor7701
      @thecodingmentor7701  ปีที่แล้ว

      What do you mean? The video is presenting a real test question, im doing a live certification in the video

    • @yasinabdelhameed1910
      @yasinabdelhameed1910 ปีที่แล้ว

      @@thecodingmentor7701 I'm just saying the sample given by HackerRank isn't as hard as the actual test.

  • @nasirahmad9717
    @nasirahmad9717 2 ปีที่แล้ว +1

    Help me out with this question
    A department store maintains data on customers, products, and purchase records in three tables: CUSTOMER, PRODUCT, and PURCHASE. The store manager wants to know which product is on maximum discount for each category. Write a query to print the following fields for each category, ordered by category, ascending: category, product ID and discount for the product that has the maximum discount in the category. In the case of multiple products having same maximum discount within a category, print the product with minimum product_id.

    • @thecodingmentor7701
      @thecodingmentor7701  2 ปีที่แล้ว

      Thanks for ur question Nasir. Unfortunately this is not the right place to answer this. Try to ask it on a forum to receive some help!

    • @nasirahmad9717
      @nasirahmad9717 2 ปีที่แล้ว

      Where I can contact you directly

  • @parag263
    @parag263 ปีที่แล้ว

    y r u doing this!! this is a goddamn test huh???