EssentialSQL: SQL Window Functions for Business Analytics
What you'll learn
- Learn how to incorporate window functions into your SQL queries.
- Understand how partitions and windows work together within a query.
- Apply window functions so you can avoid using cursors in your SQL.
- Understand the difference between window function mechanics and GROUB BY summaries.
- Create complex queries involving joins using window functions.
- Apply aggregate, analytic, and ranking functions to perform common business tasks such as calculating running totals or comparing one row’s value to the next.
- Create queries using either MySQL, PostgreSQL, or SQL Server.
Requirements
- You should already be familiar with SELECT, GROUP BY, and ORDER BY clauses
- Knowledge of joins and subqueries isn't required, but recommended.
- If you can write a simple GROUP BY statement with HAVING, then you are ready for this course.
- No special equipment needed, all exercises are done online.
- Optional: Install a MySQL, PostgreSQL, or SQL Server learning lab on your own computer.
Description
In this Course you will Learn to:
Write simpler queries using window functions.
Know how window functions work with partition and other clauses to help you form running totals or compare values from one row to the next.
Create complex queries involving joins using window functions.
Learn how to use LEAD and LAG to avoid using cursors in your SQL scripts.
Write window functions using MySQL, PostgreSQL, SQLite, or SQL Server – your choice! I'm sure they will work with Oracle, I just haven't tested... :)
Understand how to set up a window frame and their affect on the window function.
Know the difference between window functions and classing GROUP BY results.
Work with multiple window functions within a query.
Who to use results from a window functions within the same query.
Learn to us the three classes of functions: Aggregate, Ranking, and Analytic functions.
Nothing is worse than
Being excited to learn something new but not knowing where to start.
Wasting time learning the wrong features.
You being overwhelmed with options and not knowing which to use.
Imagine Having...
Knowledge - Knowing how to quickly use window functions to take your SQL to the next level.
Confidence - Feeling good that you’re on the right track.
Accomplishment - Having a sense of accomplishment that you've learned something most cannot.
By the time you’ve completed this course you’ll have an appreciation of window functions, overcome your fear, and able to use them to simplify some of your very complex queries.
Who this course is for:
- Advanced Beginner to Intermediate SQL query authors curious about window functions.
- If you're having a hard time understanding the ins and outs of window functions, then this course is for you as I explain it to you in simple to understand English.
- Business analysts looking more ways to write queries.
- Data Engineers needing more tools to deal with dirty data, such as an easy means to deduplicate incoming rows.
- Recent college graduates looking to hone their SQL skills.
- Job applicants looking for that extra edge with their next interview!
Instructor
If you're interested in learning SQL, you're in the right place.
I'm here to help you build a strong foundation in all aspects of SQL: from the very first steps to complex data architectures and designs. Many people struggle with where to begin learning SQL, but you don’t have to!! Essential SQL is my platform for bringing all aspects of SQL to you.
With more than 30 years of experience in SQL and a degree in Computer Engineering from the University of Michigan, I am passionate about helping others learn this valuable skill. As a blogger, I share SQL tips and how-to articles with over a million readers each year on my blog, Essential SQL. In addition, I have been teaching online for over eight years to people from various industries, including accounting, purchasing, and human resources.
In my professional life, I work with large corporations to design data warehouses that support business intelligence and data science activities. I believe that SQL is a valuable skill that is within reach for anyone, and my courses are designed to help you learn and grow with the technology.
So, what will you get out of my courses?
You will learn SQL from the ground up and progress to advanced concepts. Whether you are a beginner with no prior experience in SQL or looking to expand your knowledge and skills, these courses are tailored to meet your needs.
One of the key features of my courses is the hands-on experience and exercises that I provide. Instead of just talking about concepts and theories, I believe that the best way to learn is by doing. That's why my courses are packed with practical exercises that allow you to apply what they have learned and see the results for yourself.
As you work through my courses, I will be with you every step of the way to provide guidance and support. I will walk you through the very basics of SQL, such as selecting data from tables and filtering results, and then progress to more advanced topics like creating and modifying tables, working with data types, and using built-in functions. By the end of the course, you will have a solid understanding of SQL and be able to apply what you have learned to real-world situations.
In short, my Essential SQL courses offer a comprehensive and practical learning experience that will take you from the very basics to advanced concepts in SQL. Whether you are looking to improve your career prospects, solve problems more efficiently, or just want to learn more about this powerful language, my courses have you covered.
What are Students Saying?
For the lessons I have covered so far, the instructor is doing a great job in explaining key concepts of stored procedure with several examples of SQL statements to refine business logic. Pretty cool -- Billandre O.
Teaching style is really practical. It takes a depth of topical understanding to reduce the topic to an accessible form. He’s got those skillz – Mathew C
I like the way Kris teaches delicate subjects in simple English. This course helps students and beginners to better understand Database Design and Data Modeling. I highly recommend it to start your journey in the relational database world. – Radouane B
So far this course teach me in a very short of time how to get confidence with Stored Procedures. I need to learn the subject quick for a job interview . But it's not only basic staff. The lecture gave important example and teach us to use it in the most advantage way for SQL. – Yael M.
Excellent course with clear explanations. The instructor had an easy and likeable approach that comprehensively answered how to wield the power of the subquery. Highly recommended. – Andre M
So what are you waiting for? Enroll in one of my courses today.
See you in class.
Kris