Spokalyالإنجليزية تبدأ من السمع
مقابلات العمل · محلل بيانات · متوسّط

مقابلة محلل بيانات: شرح الربط (join) بالكلامData Analyst: Explaining a Join in Words

  • Nermeen
  • Hany
0:00 / 5:16
الشريط الملوّن مقسوم حسب المتكلّم، فترى من يتحدّث ومتى.

النص

  1. Nermeen
    Hi Hany, thanks for coming. Before we start, I will share two small tables on the screen, so please look at them while we talk.
  2. Hany
    Thank you, Nermeen. I can see them. One is called customers and the other is called orders.
  3. Nermeen
    Right. The customers table has four customers, numbered one hundred and one to one hundred and four. The orders table has five orders, and each order has a customer number and a total.
  4. Hany
    Understood. Should I tell you a little about myself first?
  5. Nermeen
    Yes, briefly. You have one year of experience as an analyst.
  6. Hany
    That is right. I work with sales reports for a small online shop. I write SQL every day, but mostly simple questions, so I want to learn more from a bigger team.
  7. Nermeen
    Good. Now the question, in words, no code please. I want a list of customers with the total of each order. How would you get it?
  8. Hany
    I would join the two tables. First I would take each order. Then I would find its customer by the customer number. After that, I would show the customer and the total together.
  9. Nermeen
    Can you say what a join does, in your own words?
  10. Hany
    A join puts rows from two tables side by side when they match on something. Here the match is the customer number. If a row has no match, the plain join leaves it out.
  11. Nermeen
    Good. So how many rows will the result have?
  12. Hany
    Five. I count one row for each order. Customer one hundred and one has two orders, customer one hundred and two has one, and customer one hundred and four has two.
  13. Nermeen
    And what about customer one hundred and three?
  14. Hany
    That customer has no orders, so the join leaves it out. It will not be in the result.
  15. Nermeen
    Suppose the manager wants to see that customer too, with an empty total. What would you do?
  16. Hany
    I think there is another kind of join for that, but I do not remember the exact name. I would look it up in the documentation before I write it, and then I would test it on these small tables.
  17. Nermeen
    I like that you say it clearly. Let us continue. Suppose the totals are one hundred twenty and eighty for customer one hundred and one. What is the sum for that customer?
  18. Hany
    One hundred twenty plus eighty is two hundred.
  19. Nermeen
    Good. Now a different situation. You show the manager the result, and he says, the total looks too low. What do you check first?
  20. Hany
    First I would check the date range. If the range is too short, the total will be too low. Then I would check the filter, for example a filter that hides some orders.
  21. Nermeen
    And if the date range and the filter are both correct?
  22. Hany
    Then I would ask the person who owns the data if some orders are stored somewhere else. I would send my notes, and I would say clearly what I still do not know.
  23. Nermeen
    Let us talk about explaining. How would you explain this join to a colleague who has never used SQL?
  24. Hany
    I would use two lists on paper. One list has customers and the other list has orders. I would draw a line from each order to its customer. The lines show the join.
  25. Nermeen
    Nice. Where are you strong, and where do you need to grow?
  26. Hany
    I am strong at checking my results before I send them. I need to grow in explaining results to managers, and I have not reviewed another analyst's queries yet.
  27. Nermeen
    How do you learn new things?
  28. Hany
    Every week I choose one question from my work and I try to answer it in a new way. Last month I tried a new kind of summary on the sales data, and it showed me that one product sold well only in one month.
  29. Nermeen
    Thank you. Do you have questions for me?
  30. Hany
    Yes. What does the team use to check queries before they go to managers?
  31. Nermeen
    Every query is read by a second analyst, and we keep a short note about the question and the source of the data.
  32. Hany
    That is helpful. And how long is the first project?
  33. Nermeen
    About six weeks. You would work with a senior analyst on a monthly sales report.
  34. Hany
    Thank you, Nermeen. That sounds clear.
  35. Nermeen
    Thank you, Hany. We will call you early next week. Goodbye.
  36. Hany
    Goodbye.