Skip to content
UdemySQLPaid courseIntermediate levelCertificate

70-461 Session 6: Querying Microsoft SQL Server (T-SQL code) (Udemy.com)

Using SQL, correlated subqueries, CTEs, Pivots, UDFs and Sequences. SQL Server 2012 to 2022, including SQL Server 2019

Created by: Phillip Burton

Last updated December 2024

icon
What you will learn

  • Learn all about subqueries, using them in the SELECT, FROM and WHERE clauses.
  • Learn about correlated subqueries, where the results of the subquery depends on the main query.
  • Learn about Common Table Expressions (CTE), using the WITH statement.
  • Use ROW_NUMBER, LAG and CTEs to group consecutive numbers.
  • Learn about PIVOT and UNPIVOT to spread data across columns.
  • Find out all about functions, including UDFs (user defined functions): scalar, inline table and multi-statement table functions
  • "Join" the functions into tables using the CROSS APPLY and OUTER APPLY.
  • Learn about synonyms, dynamic SQL and SQL injection.
  • Find out about uniqueidentifiers (NEWID and NEWSEQUENTIALID functions), and create and use Sequences.

How it compares

Against the other 397 rated Udemy courses in SQL on CourseDuck:

  • Rating4.6 out of 5higher than 69% of them
  • Reviews2,024#96 of 398 by number of reviews
  • Length6.7 hourslonger than 52% of them
  • Last updatedDecember 2024more recently than 61% of them

icon
Course Description

This course is the foundation for the Microsoft Certificate 70-461: "Querying Microsoft SQL Server 2012/2014". 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.

Welcome to Session 6 of this T-SQL course.

We'll start with creating sub-queries, in the WHERE, FROM and SELECT clause. We'll be created correlated subqueries, where the results of the subquery depend on the main query. We'll be looking at Common Table Expressions (CTE) using the WITH statement and PIVOTting and UNPIVOTting, and we'll be using what we have learned to solve a common business problem.

We'll be looking at functions, including the three different types of User Defined Functions (UDF): scalar functions, inline table functions, and multi-statement table functions. We'll then look at synonyms, dynamic SQL, and GUIDs. We'll also look at sequences.

Finally, we'll look at use XML data, shredding and querying it, manipulating JSON data, and exploring Temporal Data, so you can query data that used to be in your tables.

No prior knowledge other than what we covered in Sessions 1 to 5 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 subqueries, functions, sequences and more, and we'll have expanded on our current knowledge of T-SQL.

icon
Udemy Discount

The discount is applied through our link. Open the course from here and Udemy's current promotional price is applied at checkout on most courses, no code to type.

Some courses are excluded from Udemy's promotions. If the price does not drop, clear your browser cookies and use the button again.

icon
Instructor Details

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.

icon
More courses by Phillip Burton

$18.99

Original price $129.9985% off

$22.99

Original price $159.9986% off

$14.99

Original price $99.9985% off

$22.99

Original price $159.9986% off

$13.99

Original price $99.9986% off

Free

icon
Reviews

4.6

2,024 ratings on Udemy

Select a bar to show only those reviews.Select the bar again to show every rating.

By Anonymized User on 10/17/2023

very good course; Feels something wrong with two quiz questions one from UDF and one from Dynamic SQL .

By Anonymized User on 9/21/2022

Course is very good but the skillup progress is not updating. I am struggling to complete the course.

By Joe Lomonaco on 7/11/2022

There is quite a bit of good information and wished I had more time to dive deeper into what is being taught.

By Gerald Weightman on 11/1/2018

This course is a good review of features I have already used in my professional career. It helps to learn alternate ways of selecting the data I need. This course is also very helpful in giving techniques for improving my writing of efficient queries using ways I am not familiar with currently. Very encouraged by this series of courses. Looking forward to Session 7.

By Mervyn Sheppard on 9/5/2018

The course progressively builds up and revises knowledge clearly explaining the principals behind and uses of the code.

By Mary Holcombe on 11/14/2017

Pivot and Unpivot were great new additions to my SQL learning Still wish we had the quizzes to answer questions, but the information provided is greatly demonstrated.

By Mohammed Salih on 9/23/2017

I felt empowered with bite size learning, but missed the exercises as there were none to do or questions to answer

By Andre Stone on 9/18/2017

Very detailed series of courses. Overall the best Sql course that I have seen on the web.

By Charles Schweiger on 5/11/2017

Best of its' kind. Please keep in mind, your audience may not be as experienced and this is their first exposure to many of these concepts. There have been times where the examples, while great for an advanced course, are overly complicated and very hard to follow.

By Reza K Ghazi on 11/22/2016

Session 6 has been covered lots of contents in T-SQL that are really needed. There are some points, that may be useful for making it better. 1) It should be more concentrated on different Functions with more examples. 2) Dynamic SQL's and how we can create them in stored procedures had not discussed. 3) Synonyms are not well defined and introduced. For example, what are their abilities for security, making generic stored procedures and so on, has never discussed. 4) Ther were no Quizzes and assignments. ‌But, None of these points has not diminished the importance and beauty of this session. I am very glad that I've got this series of SQL courses, and I would recommend to anybody who wants to really learn T-SQL from scratch, to take this series and enjoy the learning. I thank ful for the wise and knowledgeable instructor, Philip, who taught lots to me. And the last thing is I am looking for session 7. Best regards,

Thorough info

Excellent session

Showing 12 of 17 reviews

icon
Quality Score

Content Quality
/
Video Quality
/
Qualified Instructor
/
Course Pace
/
Course Depth & Coverage
/

Overall Score : 92 / 100