
Explore SQL fundamentals and learn to access and retrieve data in databases using SQL, illustrated with the Billboard Top 100 year end table and basic table concepts.
Use limit clause to view first few rows of a table, avoiding loading entire dataset. Place limit at end of query and adjust from 10 to 20 rows.
Filter data with the where clause using comparison operators, applying conditions like year greater or equal than 2011 and top five songs per year.
Apply the like operator to search patterns with % for multiple characters, _ for a single character, and use I like for case-insensitive results, including starts with or contains Taylor.
Sort data using order by clause to arrange by artist name or year_rank, ascending or descending, and by multiple columns. Use where and limit to filter, and substitute column numbers.
Explore count and sum as aggregate functions, counting rows with count(*), count(col), and handling nulls; apply sum to numerical columns like volume, avoiding non-numerical data such as date.
Learn to use joins and aggregation in SQL for data analytics to build sales dashboards, analyze total sales by month, top accounts, and regional performance.
Learn how to combine two data sets with union and union all, following rules for number of columns, similar data types, and column order, and understand how duplicates are handled.
Master self-join and subjoined techniques in SQL to compare rows within the same table, using aliases for hierarchical relationships and time-series patterns, such as orders within 30 days.
Explore how subqueries power multi-step data analysis, from aggregating daily spend by account to filtering by a single value, with joins, unions, and performance improvements.
Learn to compute a cumulative sum with window functions in sql for data analytics, using over, partition, order by, and window frame clause to produce running totals by date.
learn how row_number, rank, and dense_rank compute ordered rankings within a window partition and identify the top 10 accounts by region based on sales quantity.
Explore how to use the window frame clause to compute running totals, moving averages, and min/max values across a partition.
Explore using lag and lead to compare sales quantities against previous or next rows, compute day over day growth, and analyze two day prior trends in SQL for data analytics.
Attached is the solution for the SQL Window Functions Assignment. For visualization questions, you can use anything you want, the preferred way is to use Mode’s Dashboard.
Welcome to SQL for Data Analytics!
There are literally thousands of SQL courses online, but most of them don’t prepare you for using it in the real world.
In this course, instead of just learning about the basic fundamentals of SQL, I will teach you how to use SQL and data to develop your Data Analytics mindset. Together, we will learn how to apply SQL and Data Analysis to real-life business use cases, to draw insights from data in order to make data-informed decisions. We will also learn about the advanced concept in SQL like Self-join and Window Analytics Functions to solve complex business problems.
We even go further to present and communicate that insight effectively with interactive visualization dashboard.
This course requires absolutely no programming experience.
By the end of this course, you will be well equipped to pass all of the SQL interviews questions in the data world: whether you are looking for a job as a data scientist, data analyst, or data engineer.
Feel free to look through the preview videos of this course to see if it's a good fit for you!
Remember I offer a 30-day money-back guarantee, so you can join me for an entire month, risk-free, and decide whether to keep going or not.
I'll see you inside the course!
Best,
Tuan Vu