SQL For Business Intelligence | YoY, QoQ, MTD, YTD, QTD etc. in a Single SQL

  Рет қаралды 16,261

Ankit Bansal

Ankit Bansal

4 ай бұрын

In this video we will learn how we can leverage SQL for Business Intelligence and build metrics like month to date, quarter to date, year of year comparisons etc using a single SQL statement. This video shows you the real power of SQL. We will use the calendar table which I created in this video:
• Building Calendar Dime...
dataset and queries : drive.google.com/file/d/1oQTY...
Zero to hero(Advance) SQL Aggregation:
• All About SQL Aggregat...
Most Asked Join Based Interview Question:
• Most Asked SQL JOIN ba...
Solving 4 Trick SQL problems:
• Solving 4 Tricky SQL P...
Data Analyst Spotify Case Study:
• Data Analyst Spotify C...
Top 10 SQL interview Questions:
• Top 10 SQL interview Q...
Interview Question based on FULL OUTER JOIN:
• SQL Interview Question...
Playlist to master SQL :
• Complex SQL Questions ...
Rank, Dense_Rank and Row_Number:
• RANK, DENSE_RANK, ROW_...
#sql #dataengineer

Пікірлер: 59
@ankitbansal6
@ankitbansal6 4 ай бұрын
Please do like the videos to increase its reach . Thank you in advance 🙏
@Shortbrainsofficial
@Shortbrainsofficial 4 ай бұрын
Please share these queries script in a document for download🙏
@umesh6600
@umesh6600 4 ай бұрын
it's same fiscal year
@chiranjib-konwar
@chiranjib-konwar 4 ай бұрын
Ankit sir, please share the advanced SQL course link to buy. Hindi English both are fine
@ankitbansal6
@ankitbansal6 4 ай бұрын
@chiranjib-konwar www.namastesql.com/course-detail/think-sql-go-from-zero-to-hero-english
@anandmahajan943
@anandmahajan943 4 ай бұрын
@ankitbansal6 can u share whole query of time frame table please
@dfkgjdflkg
@dfkgjdflkg 4 ай бұрын
never thought it was possible, once I saw the title of your video I was convinced it is possible. Keep up the great work
@sravyasrinivas
@sravyasrinivas 4 ай бұрын
Ankit, Really you are the god of SQL. Please keep helping people like us 🙏
@Ashu23200
@Ashu23200 2 ай бұрын
agreed!!! god of sql
@subhajitdey6806
@subhajitdey6806 4 ай бұрын
Ankit , this is the top class things of Analystics , kindly share more videos like this where we get to know more real world problems; KPI metrices etc !
@srinubathina7191
@srinubathina7191 4 ай бұрын
wow superb never thought that it was possible Thank you Ankit Bro
@theraizadatalks14
@theraizadatalks14 3 күн бұрын
One word, tooooo good. How to handle all scenarios, you beautifully explained. Thanks
@ankitbansal6
@ankitbansal6 3 күн бұрын
Glad you liked it
@mohitsanskar1688
@mohitsanskar1688 4 ай бұрын
sir, you are true champion.
@srinubathina4495
@srinubathina4495 4 ай бұрын
Your sql videos are fantastic. Its really helped improve my skills keep up the great work sir thanknyou so much❤❤
@sparshkapoor8517
@sparshkapoor8517 3 ай бұрын
Simply Awesome!!
@bankimdas9517
@bankimdas9517 4 ай бұрын
Thank you sir for making this video
@addhyasumitra90
@addhyasumitra90 10 күн бұрын
this video is top notch !! awesome work
@ankitbansal6
@ankitbansal6 10 күн бұрын
Cheers 🥂
@rishabhjain133
@rishabhjain133 4 ай бұрын
How awesome is that, thanks for the video.😀
@ankitbansal6
@ankitbansal6 4 ай бұрын
Thanks for watching!
@akashjha7277
@akashjha7277 4 ай бұрын
Superb❤
@Gaurav-wy2wm
@Gaurav-wy2wm 4 ай бұрын
Hi Ankit Please try to create videos on data modelling for any product
@HariKrishna-uy5bc
@HariKrishna-uy5bc 4 ай бұрын
Hi Ankit, Thank you very much for your content. You explain in simple layman terms and understandable way. I am facing a problem in finding the difference between two dates in hours excluding the weekend hours. Can you please make a video on this.This should cover all scenarios like first date and second date on weekdays and firstdate, seconddate on weekends, firstdate on weekday and 2nd date on weekend and firstdate on weekend and second date on weekday. I hope you understood the requirement. Giving one example for this requirement. date1 = 2024-02-24 21:00:00 and date2 = 2024-02-26 04:00:00 and the difference should give 4 hours as 2024-02-24 and 2024-02-25 are weekends and hours should be considered only for 2024-02-26 which is a weekday. Solution should cover all scenarios. Thanks!!
@Gareeb_
@Gareeb_ 4 ай бұрын
Thanks 😊🙏
@gayatri7536
@gayatri7536 4 ай бұрын
This is really good video 👍
@ankitbansal6
@ankitbansal6 4 ай бұрын
Glad you think so!
@santoshkiran5858
@santoshkiran5858 4 ай бұрын
Awesome 😎
@ankitbansal6
@ankitbansal6 4 ай бұрын
Thank you! Cheers!
@Gareeb_
@Gareeb_ 20 күн бұрын
Bhaiya only adha samajh me aaya baaki isiliye nhi aaya qki mere concept clear nhi h . Soon I'll join your course. But I can say it's very advanced and important for a successful data analyst Thanks a lot
@adharshsunny5154
@adharshsunny5154 4 ай бұрын
When to start AWS training
@Pirate_Hunter_Zoro11x
@Pirate_Hunter_Zoro11x 2 ай бұрын
My SQL GOD🙏
@ankitbansal6
@ankitbansal6 2 ай бұрын
🙏
@shashank2004
@shashank2004 4 ай бұрын
Awesome video sir...i have 9 yrs exp in Oracle database developer so to boost the profile which other tool or technology should be learn? Or sq/ plsql is enough?
@ankitbansal6
@ankitbansal6 4 ай бұрын
Learn python
@ankitachougule4711
@ankitachougule4711 4 ай бұрын
Awesome video. I am new subscriber to your channel. Could you please share the link for datasets used in your video and also queries.
@ankitbansal6
@ankitbansal6 4 ай бұрын
In the description
@pateldh23
@pateldh23 4 ай бұрын
Respected Ankit Sir, Best video for learning new things, Sir will you please share query I write query but i forgot what is the next step. And my concern is that i want to calculate for financial year which is starting from 1st April and ends on 31st march so please sir help me. First quarter is April to June then second then third and final last is january to march. Sir, I am poor in my english communication skills but trying my best for learning new things so please help me
@ankitbansal6
@ankitbansal6 4 ай бұрын
description box
@user-jf8fd3gy9w
@user-jf8fd3gy9w 2 ай бұрын
Is calendar year table will refreshing automatically as per the time frame ? So we dont need hardcode anything
@ankitbansal6
@ankitbansal6 2 ай бұрын
Exactly
@gazart8557
@gazart8557 4 ай бұрын
Csn we use this in postgresql?
@ankitbansal6
@ankitbansal6 4 ай бұрын
Absolutely 💯
@gazart8557
@gazart8557 4 ай бұрын
Please show what commands can be used in AWS redshift and postgres ❤
@ankitbansal6
@ankitbansal6 4 ай бұрын
The same will work in redshift. For Postgres just some date functions changes
@gazart8557
@gazart8557 4 ай бұрын
@ankitbansal6 thank you sir 🙏
@chiranjib-konwar
@chiranjib-konwar 4 ай бұрын
I want to buy course in advanced SQL. Please share the link to buy the advanced sql course. Thanks 🙏
@ankitbansal6
@ankitbansal6 4 ай бұрын
www.namastesql.com/courses/SQL-For-Analytics-6301f405e4b0238f71788354
@pateldh23
@pateldh23 4 ай бұрын
Sir, please share query files please
@MITHUNKUMAR-nx8rd
@MITHUNKUMAR-nx8rd 4 ай бұрын
Where is create and insert statement for practice?
@ankitbansal6
@ankitbansal6 4 ай бұрын
description box
@avneet_webdeveloperdepartm4182
@avneet_webdeveloperdepartm4182 4 ай бұрын
Hello sir please share the query so that we can practice
@ankitbansal6
@ankitbansal6 4 ай бұрын
in the description
@g-ij9km
@g-ij9km 4 ай бұрын
where is the insert statement?
@ankitbansal6
@ankitbansal6 4 ай бұрын
check description
All About SQL Aggregations | SQL Advance | Zero to Hero
17:43
Ankit Bansal
Рет қаралды 50 М.
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 8 МЛН
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 10 МЛН
The 25 SQL Questions You MUST Know for Data Analyst Interviews
32:47
KSR Datavizon
Рет қаралды 206 М.
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 8 МЛН