Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Building Calendar Dimension Table from Scratch with SQL | SQL For Analytics
Play lesson

SQL Tips and Tricks - Building Calendar Dimension Table from Scratch with SQL | SQL For Analytics

5.0 (3)
42 learners

What you'll learn

This course includes

  • 15 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

In this video we are going to create a calendar dimension table from scratch. It is a very important video as calendar table has many use cases and I will be using this table in many of my future videos. Here is the script to get very first row : select cast('2000-01-01' as date) as cal_date ,datepart(year,'2000-01-01') as cal_year ,datepart(dayofyear, '2000-01-01') as cal_year_day ,datepart(quarter, '2000-01-01') as cal_quarter ,datepart(month, '2000-01-01') as cal_month ,datename(month, '2000-01-01') as cal_month_name ,datepart(day, '2000-01-01') as cal_month_day ,datepart(week, '2000-01-01') as cal_week ,datepart(weekday, '2000-01-01') as cal_week_day ,datename(weekday, '2000-01-01') as cal_day_name Start your analytics journey : https://www.namastesql.com/ Zero to hero(Advance) SQL Aggregation: https://youtu.be/5Ighj_2PGV0 Most Asked Join Based Interview Question: https://youtu.be/xR87ctOgpAE Solving 4 Trick SQL problems: https://youtu.be/Ck1gQrlS5pQ Data Analyst Spotify Case Study: https://youtu.be/-YdAIMjHZrM Top 10 SQL interview Questions: https://youtu.be/Iv9qBz-cyVA Interview Question based on FULL OUTER JOIN: https://youtu.be/KQfWd6V3IB8 Playlist to master SQL : https://youtube.com/playlist?list=PLBTZqjSKn0IeKBQDjLmzisazhqQy4iGkb Rank, Dense_Rank and Row_Number: https://youtu.be/xMWEVFC4FOk #sql #dataengineer #calendar

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere