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

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024
  • 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.c...
    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  5 หลายเดือนก่อน +16

    Please do like the videos to increase its reach . Thank you in advance 🙏

    • @SQLGURUOFFICIAL
      @SQLGURUOFFICIAL 5 หลายเดือนก่อน

      Please share these queries script in a document for download🙏

    • @umesh6600
      @umesh6600 5 หลายเดือนก่อน

      it's same fiscal year

    • @chiranjib-konwar
      @chiranjib-konwar 5 หลายเดือนก่อน

      Ankit sir, please share the advanced SQL course link to buy. Hindi English both are fine

    • @ankitbansal6
      @ankitbansal6  5 หลายเดือนก่อน

      @chiranjib-konwar www.namastesql.com/course-detail/think-sql-go-from-zero-to-hero-english

    • @anandmahajan943
      @anandmahajan943 5 หลายเดือนก่อน

      @ankitbansal6 can u share whole query of time frame table please

  • @sravyasrinivas
    @sravyasrinivas 5 หลายเดือนก่อน +4

    Ankit, Really you are the god of SQL. Please keep helping people like us 🙏

    • @Ashu23200
      @Ashu23200 3 หลายเดือนก่อน +1

      agreed!!! god of sql

  • @theraizadatalks14
    @theraizadatalks14 หลายเดือนก่อน +1

    One word, tooooo good. How to handle all scenarios, you beautifully explained. Thanks

    • @ankitbansal6
      @ankitbansal6  หลายเดือนก่อน

      Glad you liked it

  • @dfkgjdflkg
    @dfkgjdflkg 5 หลายเดือนก่อน +2

    never thought it was possible, once I saw the title of your video I was convinced it is possible. Keep up the great work

  • @subhajitdey6806
    @subhajitdey6806 5 หลายเดือนก่อน +2

    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 !

  • @addhyasumitra90
    @addhyasumitra90 หลายเดือนก่อน

    this video is top notch !! awesome work

  • @HariKrishna-uy5bc
    @HariKrishna-uy5bc 5 หลายเดือนก่อน

    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_ หลายเดือนก่อน

    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

  • @srinubathina7191
    @srinubathina7191 5 หลายเดือนก่อน

    wow superb never thought that it was possible
    Thank you Ankit Bro

  • @srinubathina4495
    @srinubathina4495 5 หลายเดือนก่อน

    Your sql videos are fantastic. Its really helped improve my skills keep up the great work sir thanknyou so much❤❤

  • @mohitsanskar1688
    @mohitsanskar1688 5 หลายเดือนก่อน

    sir, you are true champion.

  • @Gaurav-wy2wm
    @Gaurav-wy2wm 5 หลายเดือนก่อน

    Hi Ankit
    Please try to create videos on data modelling for any product

  • @sparshkapoor8517
    @sparshkapoor8517 5 หลายเดือนก่อน

    Simply Awesome!!

  • @pateldh23
    @pateldh23 5 หลายเดือนก่อน

    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  5 หลายเดือนก่อน

      description box

  • @rishabhjain133
    @rishabhjain133 5 หลายเดือนก่อน

    How awesome is that, thanks for the video.😀

    • @ankitbansal6
      @ankitbansal6  5 หลายเดือนก่อน

      Thanks for watching!

  • @bankimdas9517
    @bankimdas9517 5 หลายเดือนก่อน

    Thank you sir for making this video

  • @Pirate_Hunter_Zoro11x
    @Pirate_Hunter_Zoro11x 3 หลายเดือนก่อน

    My SQL GOD🙏

  • @akashjha7277
    @akashjha7277 5 หลายเดือนก่อน

    Superb❤

  • @Gareeb_
    @Gareeb_ 5 หลายเดือนก่อน

    Thanks 😊🙏

  • @gayatri7536
    @gayatri7536 5 หลายเดือนก่อน

    This is really good video 👍

    • @ankitbansal6
      @ankitbansal6  5 หลายเดือนก่อน

      Glad you think so!

  • @gazart8557
    @gazart8557 5 หลายเดือนก่อน +1

    Csn we use this in postgresql?

    • @ankitbansal6
      @ankitbansal6  5 หลายเดือนก่อน

      Absolutely 💯

  • @user-jf8fd3gy9w
    @user-jf8fd3gy9w 3 หลายเดือนก่อน

    Is calendar year table will refreshing automatically as per the time frame ? So we dont need hardcode anything

  • @shashank2004
    @shashank2004 5 หลายเดือนก่อน

    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  5 หลายเดือนก่อน

      Learn python

  • @gazart8557
    @gazart8557 5 หลายเดือนก่อน

    Please show what commands can be used in AWS redshift and postgres ❤

    • @ankitbansal6
      @ankitbansal6  5 หลายเดือนก่อน +1

      The same will work in redshift. For Postgres just some date functions changes

    • @gazart8557
      @gazart8557 5 หลายเดือนก่อน

      @ankitbansal6 thank you sir 🙏

  • @santoshkiran5858
    @santoshkiran5858 5 หลายเดือนก่อน

    Awesome 😎

    • @ankitbansal6
      @ankitbansal6  5 หลายเดือนก่อน

      Thank you! Cheers!

  • @ankitachougule4711
    @ankitachougule4711 5 หลายเดือนก่อน

    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  5 หลายเดือนก่อน

      In the description

  • @chiranjib-konwar
    @chiranjib-konwar 5 หลายเดือนก่อน

    I want to buy course in advanced SQL. Please share the link to buy the advanced sql course.
    Thanks 🙏

    • @ankitbansal6
      @ankitbansal6  5 หลายเดือนก่อน +1

      www.namastesql.com/courses/SQL-For-Analytics-6301f405e4b0238f71788354

  • @adharshsunny5154
    @adharshsunny5154 5 หลายเดือนก่อน

    When to start AWS training

  • @MITHUNKUMAR-nx8rd
    @MITHUNKUMAR-nx8rd 5 หลายเดือนก่อน

    Where is create and insert statement for practice?

    • @ankitbansal6
      @ankitbansal6  5 หลายเดือนก่อน

      description box

  • @avneet_webdeveloperdepartm4182
    @avneet_webdeveloperdepartm4182 5 หลายเดือนก่อน

    Hello sir please share the query so that we can practice

    • @ankitbansal6
      @ankitbansal6  5 หลายเดือนก่อน

      in the description

  • @pateldh23
    @pateldh23 5 หลายเดือนก่อน

    Sir, please share query files please

  • @g-ij9km
    @g-ij9km 5 หลายเดือนก่อน

    where is the insert statement?

    • @ankitbansal6
      @ankitbansal6  5 หลายเดือนก่อน

      check description