Data Analyst / Data Engineer Interview Question - Solution (part - XXXII)

  Рет қаралды 488

MeanLifeStudies

MeanLifeStudies

Күн бұрын

Пікірлер: 10
@namangarg7023
@namangarg7023 2 ай бұрын
I think u did same type of question for min and Max orderdate using joins for two different cte
@tusharshrikhande3263
@tusharshrikhande3263 2 ай бұрын
Is dsa needed for data engineering roles?
@MeanLifeStudies
@MeanLifeStudies 2 ай бұрын
Yes, at least easy to medium-level. Since questions will be asked during interviews.
@prakxsh_
@prakxsh_ 2 ай бұрын
Can we do first find the min and max date by customer and make the subtraction.. from the subtraction results.. give the customer id which transaction amount greater than subtraction results
@MeanLifeStudies
@MeanLifeStudies 2 ай бұрын
We have to return transaction amount for both min and max dates. So we should use aggregate, grouping and having clauses. But doing this we can extract those values in rows. Again it's complex.
@prakxsh_
@prakxsh_ 2 ай бұрын
@@MeanLifeStudies got it sirr
@namangarg7023
@namangarg7023 2 ай бұрын
First u join min date values then Max date values and then final join between min and Max which u did in that video
@MeanLifeStudies
@MeanLifeStudies 2 ай бұрын
Yes, we can. Try to explain about first and last values in window functions. We should also concern query optimization. Joins are costly too right?
@pallethirumalreddyreddy5050
@pallethirumalreddyreddy5050 2 ай бұрын
Hi Sir for Transaction Id 101 and 119 was done by customer id 2 on same date so we have to add and then we have to calculate i think. Please rectify me if i am wrong.
@MeanLifeStudies
@MeanLifeStudies 2 ай бұрын
Yes. I observed that too while I was solving it. I guess anyone will ask this question. we should understand the question clearly. the first and last transaction amount difference. customer can do multiple transactions on the first and last day of transactions. But we should consider the first one on the first day and the last one on the last day. I hope you get it now.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Stored Procedures Concept in SQL #SQL #dataanalysis #dataanalysts
14:54
Mastering SQL Date Functions: DATEADD, DATEDIFF, and Dynamic Date Filters
16:58
Astroidegita Technologies
Рет қаралды 110
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН