Job interviews5:16
Job interviews · Data analyst · Intermediate
Data Analyst: Explaining a Join in Wordsمقابلة محلل بيانات: شرح الربط (join) بالكلام
- Nermeen
- Hany
0:00 / 5:16
Transcript
- NermeenHi Hany, thanks for coming. Before we start, I will share two small tables on the screen, so please look at them while we talk.
- HanyThank you, Nermeen. I can see them. One is called customers and the other is called orders.
- NermeenRight. 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.
- HanyUnderstood. Should I tell you a little about myself first?
- NermeenYes, briefly. You have one year of experience as an analyst.
- HanyThat 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.
- NermeenGood. 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?
- HanyI 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.
- NermeenCan you say what a join does, in your own words?
- HanyA 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.
- NermeenGood. So how many rows will the result have?
- HanyFive. 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.
- NermeenAnd what about customer one hundred and three?
- HanyThat customer has no orders, so the join leaves it out. It will not be in the result.
- NermeenSuppose the manager wants to see that customer too, with an empty total. What would you do?
- HanyI 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.
- NermeenI 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?
- HanyOne hundred twenty plus eighty is two hundred.
- NermeenGood. Now a different situation. You show the manager the result, and he says, the total looks too low. What do you check first?
- HanyFirst 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.
- NermeenAnd if the date range and the filter are both correct?
- HanyThen 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.
- NermeenLet us talk about explaining. How would you explain this join to a colleague who has never used SQL?
- HanyI 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.
- NermeenNice. Where are you strong, and where do you need to grow?
- HanyI 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.
- NermeenHow do you learn new things?
- HanyEvery 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.
- NermeenThank you. Do you have questions for me?
- HanyYes. What does the team use to check queries before they go to managers?
- NermeenEvery query is read by a second analyst, and we keep a short note about the question and the source of the data.
- HanyThat is helpful. And how long is the first project?
- NermeenAbout six weeks. You would work with a senior analyst on a monthly sales report.
- HanyThank you, Nermeen. That sounds clear.
- NermeenThank you, Hany. We will call you early next week. Goodbye.
- HanyGoodbye.