SQL tricky Complex Query | (Reset Running Total When negative) / (Reset based on column value)

  Рет қаралды 5,956

Learn at Knowstar

Learn at Knowstar

Күн бұрын

Пікірлер
@DarrenBroadhead
@DarrenBroadhead Ай бұрын
This is amazing!! You are a star. Thank you.
@LearnatKnowstar
@LearnatKnowstar Ай бұрын
Thank you
@hbautomation-io
@hbautomation-io 8 ай бұрын
Thank you SO much. Searched the entire internet for this solution..
@LearnatKnowstar
@LearnatKnowstar 8 ай бұрын
Glad it was helpful
@designanddecor8964
@designanddecor8964 2 жыл бұрын
These scenarios are very helpful in real life computations. Please share more such scenarios.
@LearnatKnowstar
@LearnatKnowstar 2 жыл бұрын
Thank you
@fatorx495
@fatorx495 Жыл бұрын
wowwww, i love you! I'm from Brazil and i didn't sleep trying to do this!!! THANK YOU!!!!!!!
@LearnatKnowstar
@LearnatKnowstar Жыл бұрын
Thank you so much for your kind words.
@kristyowens2284
@kristyowens2284 2 жыл бұрын
This is a nice complex scenario. Thanks for sharing.
@LearnatKnowstar
@LearnatKnowstar 2 жыл бұрын
Thank you
@RanjayKumarSingh-x8l
@RanjayKumarSingh-x8l 10 ай бұрын
Your video is super ... I am struggling since 10 days for this concept but you solved it
@LearnatKnowstar
@LearnatKnowstar 10 ай бұрын
Glad it was helpful.
@fatorx495
@fatorx495 Жыл бұрын
thank you
@LearnatKnowstar
@LearnatKnowstar Жыл бұрын
Thank you for your support
@sravankumar1767
@sravankumar1767 2 жыл бұрын
Nice explanation 👌 👍 👏
@LearnatKnowstar
@LearnatKnowstar 2 жыл бұрын
🙏
@ganeshreddymotakatla6244
@ganeshreddymotakatla6244 2 жыл бұрын
Super explanation...
@LearnatKnowstar
@LearnatKnowstar 2 жыл бұрын
Glad it was helpful 🙏
@harshalpatel3012
@harshalpatel3012 2 жыл бұрын
Nice explantion
@LearnatKnowstar
@LearnatKnowstar 2 жыл бұрын
Thank You
@hv0032113
@hv0032113 2 жыл бұрын
Very good topic. Thanks.
@LearnatKnowstar
@LearnatKnowstar 2 жыл бұрын
🙏
@riddlex
@riddlex 2 жыл бұрын
I was asked a question where I have to show only those product_id, product_name where there a constant growth in sales_amount each year. If there is a decline in sales in any year, it shouldn't be included in the output. Let's say the data is from 2011 to 2021. Need to know the approach for this question.
@LearnatKnowstar
@LearnatKnowstar 2 жыл бұрын
You can first calculate the YoY growth for each product in a CTE. Then you can filter on products for which there is a negative growth in any of the years. In the last step, Select all products where product NOT IN ( the products returned in the negative growth scenario)
@tusharkumbhar5051
@tusharkumbhar5051 Жыл бұрын
Can you please help me
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 13 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 28 МЛН
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 116 МЛН
SQL | Create and Execute Dynamic SQL Query | SQL Injection
19:14
Learn at Knowstar
Рет қаралды 9 М.
Forward Fill Null Values  - 2 WAYS TO SOLVE |  Tricky SQL Questions
11:23
SQL | Dynamic Data Masking | How to mask sensitive data | MS SQL
16:47
Learn at Knowstar
Рет қаралды 18 М.
SQL Query | How to dynamically convert rows into columns | Dynamic Pivot
16:18
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 13 МЛН