Amazon SQL Interview Questions & Answers

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

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

  • @Pooja-pd1ee
    @Pooja-pd1ee 10 месяцев назад +4

    Good tutorial. Thanks.
    For the 3rd query though, I think we could have added the 2nd argument (first_transaction_DT) to the first expression (Rank) itself. instead of creating 2 separate fields.
    -- rank() over (partition by user_id, payment_method order by payment_counts desc, first_transaction) payment_rnk

  • @anurodhchoudhary1689
    @anurodhchoudhary1689 2 года назад +9

    Maybe showing the output for each step will be easier to understand and also giving the create table query will be helpful.

  • @jayasuriyaa.d.7018
    @jayasuriyaa.d.7018 Месяц назад

    Which platform are you using

  • @garyboy7135
    @garyboy7135 2 года назад +1

    [Update]
    The founder was kind enough to reach out directly and resolve the issues, really appreciate it. I know they are a small team to get the product start and running, so do expect issues as it won't be perfect in the beginning, but also have patience and reach out to Dan if you have questions/suggestions.
    [original text]
    There are several mistakes in the solution across questions. I've submitted feedback but never heard back nor are the mistake corrected. This is a bit concerning. I would wait for the product to become more stable to subscribe or it would actually take you more time to find out why your solution does not work.

  • @maggiegeng8596
    @maggiegeng8596 8 месяцев назад +1

    Why for the second question we use subquery instead of using joins and put filter in the end?

  • @guieclipse
    @guieclipse 6 месяцев назад

    Is the expected output usually showed in the interviews?

  • @Aidan_Au
    @Aidan_Au 2 года назад

    I like this new logo and video intro. Thank you for walking us through more SQL questions

  • @DataInterview
    @DataInterview  2 года назад +1

    Ace SQL interviews with 👉 daetama.io/ 🚀 Use the promo code: DATAINTERVIEW10 to get 10% off the monthly subscription.

    • @lifeboston853
      @lifeboston853 2 года назад

      LAUNCH50 doesn't work. It shows 'This code has expired.' Do you have other promo code?

  • @Aidan_Au
    @Aidan_Au 2 года назад

    As far as I know, there're no sample tables/dataset shown in an actual interview, but only columns, right?

    • @DataInterview
      @DataInterview  2 года назад +1

      I’d say that depends on the interviewer. Some clients only had the schema info. Others had sample tables.

    • @DaveFanch1022
      @DaveFanch1022 2 года назад +1

      I had a couple sample records from each table in mine

  • @anthonyuyende4055
    @anthonyuyende4055 2 года назад +2

    For the first question, why not just group by category & product name with MAX aggregate on price?

    • @DataInterview
      @DataInterview  2 года назад +1

      The question asks for product names with the highest price per category. If you just apply max, you will only get the price, not the corresponding product.

    • @jaspreetsingh-nr6gr
      @jaspreetsingh-nr6gr 7 месяцев назад +2

      @@DataInterview that's not exactly true, if you include product name and id in the group by, it will function just as normal as their will be no ties to break, you can actually use group by in that sense

  • @audreyhe2060
    @audreyhe2060 2 года назад

    very good video, the problem is that the instructor looks really really like my ex...

  • @glstnlev
    @glstnlev 2 года назад

    The last one was really difficult

  • @wangsimeng7083
    @wangsimeng7083 2 года назад +1

    The solution of last questions is incorrect

  • @lenka4662
    @lenka4662 Год назад

    紫配黑色 太费眼睛了

  • @meenayegan6634
    @meenayegan6634 2 года назад +2

    In the hard question part,
    some maild ids are left out...
    consider the
    example:
    maild_id trans_method trans_count minimum_date purchase_rank purchase_order
    email_id 1 credit_card 4 jan-10-2022 1 2
    email_id 1 gifct_c 1 jan-11-2021 2 1
    please provide a solution for one such uc....

    • @yilin155
      @yilin155 2 года назад +4

      change the query with rank() to : rank() over(partition by user_id order by count(*) DESC, min(transaction_dt) ASC)

    • @wangsimeng7083
      @wangsimeng7083 2 года назад +1

      exactly, the solution is incorrect! That's really confusing