Skip to Content
Using T-SQL Functions and Summarizing Results
on-demand course

Using T-SQL Functions and Summarizing Results

with John Deardurff
April 2019
Intermediate
48m
English
Apress
Closed Captioning available in English

Overview

Enhance your SELECT statements by invoking a vast library of built-in features and capabilities that SQL Server exposes in the form of functions. This video shows how these functions enable data type conversions, null detections, date and number formatting, and much more.  Also available are functions helping you to analyze data in the database itself. These functions enable you to summarize data to count occurrences, compute averages, and generate statistics.
 
The video begins with an introduction to basic functions to work with character data and NULL values. From there you’ll move on to functions dealing with conditional structures, NULL values, and formatting. You’ll also cover aggregate functions to average, count, and summarize data. Finally, this video discusses how to group result sets by a field using the GROUP BY clause, and how to filter those results after they have been grouped -- using the HAVING clause.
 
Functions are the doorway to an ever-increasing number of powerful database engine features and capabilities. There is so much more that you can do in SQL other than simply SELECT data. Functions enable you to take full advantage of the power that’s available to you in Microsoft’s flagship database engine. This video is the second in a series and leaves you well positioned to step into the next video covering how to select data from multiple tables. 
 
What You Will Learn
  • Sort data into groups and count the records in each group
  • Compute max, min, and mean values for records in a group
  • Format dates and numbers for display to end users
  • Filter to eliminate unwanted groupings from your result set
  • Search, concatenate, and manipulate strings
  • Detect NULL values and replace them with real values
Who This Video Is For
 
Developers, business analysts, and others whose career will benefit from knowledge of SQL for accessing Microsoft SQL Server databases and the data they contain. The video is for anyone working in a SQL Server environment and wanting to derive business value from their organization’s data by analyzing that data, creating reports, and even generating visualizations.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Watch now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

T-SQL Querying: Writing a SELECT Statement

T-SQL Querying: Writing a SELECT Statement

John Deardurff
Learn T-SQL Querying

Learn T-SQL Querying

Pedro Lopes, Pam Lahoud

Publisher Resources

ISBN: 9781484245484