Learn SQL, Crush Interviews with ONLY 50 Questions - Leetcode 1661 | Data Analyst | Data Scientist

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024

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

  • @pankajrao6895
    @pankajrao6895 9 หลายเดือนก่อน +2

    hey bro i have been following u for some time now , u are amazing at SQL just one request if u could use excel for showing how the tables will look if we join them it will be much easier to understand . thank you

    • @EverydayDataScience
      @EverydayDataScience  9 หลายเดือนก่อน +3

      That’s a great suggestion, Pankaj. Definitely, I’ll use Excel to showcase joins starting from the videos I start recording today. Thanks for such kind words & valuable suggestion. Glad that you are liking the videos 😊

  • @taylorkaser7529
    @taylorkaser7529 5 หลายเดือนก่อน

    This was super helpful thank you

  • @akshitdadheech9870
    @akshitdadheech9870 9 หลายเดือนก่อน

    This was a tricky question definitely not easy. Can you tell me if we can do this using CASE WHEN statement?

    • @EverydayDataScience
      @EverydayDataScience  9 หลายเดือนก่อน +1

      Yes, every question can be solved in multiple ways. You can do this using CASE WHEN THEN END statement as well. The logic would be GROUP BY machine_id, process_id and then use CASE WHEN for activity_type column to calculate start and end time and subtract them.
      Hint: You might have to use SUM() along with it to make it work.

    • @akshitdadheech9870
      @akshitdadheech9870 9 หลายเดือนก่อน

      @@EverydayDataScience cool, thanks I'll look into it.

    • @akshitdadheech9870
      @akshitdadheech9870 9 หลายเดือนก่อน

      @@EverydayDataScience what do you think is the best process to learn and understand logic of SQL?

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

    why used * in count, * is for all coulmns right?

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

      No, we used a group by function hence it will give a count of grouped rows.