Solving a SQL Interview Question by FACEBOOK | (Data Science Interview) SMS Confirmations From Users

Поділитися
Вставка
  • Опубліковано 8 січ 2025

КОМЕНТАРІ • 23

  • @hiovanycubillosgomez5901
    @hiovanycubillosgomez5901 3 роки тому +1

    Your initial analysis before you to start to write t-sql is excellent, because sometimes we never reading well the statement, the besth teacher Nate, thank you so much for this.

  • @madsanty8745
    @madsanty8745 4 роки тому +7

    Hey, i love your work i hope you continue making videos even the audience isnt a lot, the people who follow you really loves and understand the value of this info. I love all your series and hope you dont lose your interest in making videos. Thank you!!!?

    • @stratascratch
      @stratascratch  4 роки тому

      Thanks for the kind words! I'm glad you're finding these videos valuable. I don't plan to stop any time soon and hope to churn out at least 1 coding question video a week (going to take a break this week tho =)). I also plan to jump into some python programming and build some tools I use when doing data science work at my job. Let me know if you have any other video recommendations. Happy to accommodate.

  • @ranjitsingh8802
    @ranjitsingh8802 3 роки тому +1

    Loved the initial break down of the problem before you started writing the query. Thanks.

    • @stratascratch
      @stratascratch  3 роки тому

      That's definitely very important! I never start coding until I really understand everything.

  • @1622roma
    @1622roma 3 місяці тому

    I had my first interview with Meta today, and while one of the questions you discussed came up total percentage, not an exact version, but similar), I did struggle through the process. However, I received the right input. Unfortunately, I didn’t land the role.

  • @petertao287
    @petertao287 2 роки тому

    Thank you so much! Great resource!
    Would you please making some interview videos for potential data analysts?

    • @stratascratch
      @stratascratch  2 роки тому

      Yup! Most of these questions can be applied for data analysts also! i'll point out some specific DA questions in the future.

    • @petertao287
      @petertao287 2 роки тому

      @@stratascratch Thank you!

  • @mohammadsaquibalam9063
    @mohammadsaquibalam9063 4 роки тому +2

    Hey great resource brother. Thanks

    • @stratascratch
      @stratascratch  4 роки тому +1

      Let me know if you want to see other type of content! I do a lot of SQL but can do some python as well =)

    • @mohammadsaquibalam9063
      @mohammadsaquibalam9063 4 роки тому +1

      @@stratascratch it will be pretty good to share similar content on python as well. I find your approach very practical. Keep up the good work you are doing for many learners like me. Thanks again.

  • @lingxu9697
    @lingxu9697 2 роки тому +1

    I feel this questions is easy to code out, but hard to get your head around about the denominator and numerator...

  • @Adam-mw3hu
    @Adam-mw3hu 3 роки тому

    Nate,
    Why would you not include "confirmation" message type? It seems like those are exactly the ones we're interested in. Confirmation is the first step, the second step is for the user to confirm the confirmation. Calculate the percentage where the confirmation is confirmed.
    The other types of communication ("message" and "friend request") would be something like "you have a friend request" or "Janie posted on your wall" and should be filtered out.

    • @stratascratch
      @stratascratch  3 роки тому +1

      Check the problem description. There's dirty data. The other table contains the real confirmations.

    • @kaiyao5135
      @kaiyao5135 2 роки тому

      I have the same situation as Adam at the beginning that made me go with the incorrect solution. The truth is the real confirmed messages are not those marked as ' confirmation' explicitly, and we need to link the tables and match the date and phone name to see which messages are the real confirmed messages.

  • @ohh_nina_nyc
    @ohh_nina_nyc 3 роки тому +3

    Problem like this always needs a long time to understand the meaning. Even though it is not hard at all

    • @stratascratch
      @stratascratch  3 роки тому

      There's so many assumptions that need to be aligned. If you don't get clarity about the assumptions, you could go down the wrong path. So definitely know what you mean. Thanks for your comment.

  • @kloveinn
    @kloveinn 3 роки тому

    why did you filter out freind_request? shouldnt that be part of "total texts" sent on that day? Its a small thing but just curious.

    • @stratascratch
      @stratascratch  3 роки тому +2

      In the problem statement it said that friend_requests and invalid confirmation text messages were inserted in the table on accident so that's why I filtered them out.

  • @viv-h5z8k
    @viv-h5z8k 3 роки тому

    I got confused with Invalid confirmation. I was thinking that there are mix of valid and invalid confirmation types. particularly this line -'Confirmation texts are only valid on the date they were sent.' (means message+valid confirmation(after join) will be valid) .This will give the result(11.14 %).I guess, I get confused(or overthink) with understanding the language of these question. How to avoid this trap! Mostly happens for many Facebook questions.

    • @stratascratch
      @stratascratch  3 роки тому

      That’s the hardest part of interviews! My advice is to always ask the interviewer for clarity on how you’re interpreting the question. Don’t write any code until it’s totally clear to you.