70-461 Session 5: Querying Microsoft SQL Server (T-SQL code) (Udemy.com)
Using SQL, create analytical functions, grouping sets, ranking functions, spatial aggregates. SQL Server 2012-2022
Created by: Phillip Burton
Last updated December 2024
What you will learn
- Apply the ranking functions ROW_NUMBER, RANK, DENSE_RANK and NTILE
- Use the analytic functions new to SQL Server 2012, such as LAG, LEAD, FIRST_VALUE and LAST_VALUE
- Use different ways to group, such as ROLLUP, CUBE, GROUPING SETS, and related functions such as GROUPING_ID.
- Understand the geography and geometry data types, add points, line, polygons and circles, find where lines and shapes intersect, and aggregate them.
How it compares
Against the other 397 rated Udemy courses in SQL on CourseDuck:
- Rating4.6 out of 5higher than 69% of them
- Reviews2,119#93 of 398 by number of reviews
- Length3.4 hoursshorter than 72% of them
- Last updatedDecember 2024more recently than 61% of them
Quality Score
Overall Score : 92 / 100
Course Description
This course is the foundation for the Microsoft Certificate 70-461: "Querying Microsoft SQL Server 2012". Please note - this certificate is no longer being offered by Microsoft. However, the exam requirements allow you to have a good understanding of T-SQL.
We will now be creating aggregate queries, using the OVER() clause, together with PARTITION BY and ORDER BY. We'll also compare and contrast RANGE and ROWS, and how they work with CURRENT ROW and UNBOUNDED.
We'll be reviewing the ranking functions ROW_NUMBER, RANK, DENSE_RANK and NTILE. We'll look at the 8 analytic functions new to SQL Server 2012, such as LAG, LEAD, FIRST_VALUE and LAST_VALUE.
We'll look at alternative ways of grouping and adding totals, using ROLLUP, CUBE, GROUPING SETS and GROUPING_ID. We'll also look at the geometry and geography data types, plotting locations on a grid, together with functions and aggregates.
No prior knowledge other than what we covered in Sessions 1 to 4 is required. This course builds on the knowledge previously gained in those previous sessions.
There are regular quizzes to help you remember the information.
Once finished, you will know what how to write ranking functions, analytic functions, grouping sets and spatial aggregates, and we'll have expanded on our current knowledge of T-SQL.
Instructor Details
- 4.6 Rating
2,119 Reviews
Phillip Burton
Hi. I'm Phillip, and I'm proud to Teach with Udemy as a Udemy Instructor Partner. I have been teaching on Udemy since 2015, and I have over 1,000,000 students and more than 60 video courses, including over a dozen Bestseller courses.
My courses include Microsoft Power BI and Fabric, Tableau, SQL Server, Power Platform (Power Apps, Power Automate, etc.), Azure, Microsoft Office, and more. The majority of my courses align with the requirements for official certifications from Microsoft, Oracle, and Tableau - so with a bit of practice, you could enter the exam or assessment and put it on your CV or resume.
I have been a Computing Consultant providing expert services in the development of computer systems and data analysis. I am one of 9 award winning Experts for Experts Exchange's 11th Annual Expert Awards. My interests are working with data, including Microsoft Power BI, Excel, Access, SQL Server, and the Power Platform.
More courses by Phillip Burton
PL-300 certification prep: Microsoft Power BI Data Analyst (2026)
4.6 (38,841 Reviews)
Provider: Udemy
Time: 30.3h
$18.99
Original price70-461, 761: Querying Microsoft SQL Server with T-SQL course (2026)
4.6 (18,624 Reviews)
Provider: Udemy
Time: 28.7h
$22.99
Original pricePL-900 prep: Microsoft Power Platform Fundamentals (2026)
4.6 (15,355 Reviews)
Provider: Udemy
Time: 4.8h
$14.99
Original priceSalesforce Tableau Data Analyst/Specialist Desktop Cert Prep (2026)
4.7 (15,238 Reviews)
Provider: Udemy
Time: 15.7h
$22.99
Original priceSQL Server Integration Services (SSIS) - An Introduction (2026)
4.6 (11,116 Reviews)
Provider: Udemy
Time: 3.9h
$13.99
Original priceMicrosoft Excel - Improve your skills quickly (2024)
4.6 (9,076 Reviews)
Provider: Udemy
Time: 1.6h
Free
Reviews
By Carlos Lorenzo Ramos Rios on 9/29/2025
Si , sin embargo no cuenta con subtitulos en español o transcripcion de voz en español lo que dificulta la total comprension del curso.
By Jason Prull on 9/8/2020
I learned that I was not leveraging certain functions to their full potential (unused clauses) and causing inefficiencies (settling for default vs optimized specifications). I also learned how to use several valuable functions that I did not know before.
By Eric H Simmons on 3/30/2020
This has been a very good course. He is pleasant to listen to and is thorough .
By Wendy Weber on 5/22/2019
The instructor is extremely thorough and his lectures are well prepared! He simplifies the process of learning SQL so anyone can learn it.
By Gerald Weightman on 10/19/2018
I am learning new concepts and functions with this video. It will be very helpful for me. I am sure that I will be able to apply these concepts in my work. The spacial and geometric data types are fascinating. Not sure how I will use them in my job, but good to know they exist, and can play around with them to see what they can produce.
By Anonymized User on 4/17/2018
It is pitched at exactly the right level for me, I feel I'm learning a lot, understanding the details and doing it in a minimum amount of time :-)
By Mary Holcombe on 11/9/2017
This session was probably the most complex of all taken so far- gives in depth knowledge of analytics that may be used in SQL. Would really love to have the quizzes back as in earlier sessions but at least the instructor demonstrates many scenarios for us to see as examples. Materials are clear and easy to read on the screen. Phillip is very easy to understand.
By David Babayan on 5/20/2017
Course is great. Goes through the MS Exam structure, so everything is covered, and maybe not in depth enough to pass (i assume), but at least you get a great introduction.
By Matt Livingston on 5/18/2017
Instructor combines detailed description of the technology with questions for the student, and demonstration by writing the code to run the technology. The instructor builds on previous examples to build more elaborate solutions for real world examples. Very effective.
By David Clark on 3/10/2017
Very informative and easy to follow. A bit slow-paced. Works best if you have some data sets of your own to experiment with as the training progresses.









