Common Functions in MS SQL Server

Learn how to use common T-SQL functions to process various types of data with ease. Soon, you’ll be able to modify textual data, perform calculations, round numbers up or down, change date and time formats, and even adjust time zone info!

Table of contents

14 free interactive coding challenges

Lifetime access


limited to this course only


Buy now

Want a better deal?


Get unlimited lifetime access to all 69 present and future courses

Save $450

Unlimited lifetime access


to all 69 present and future courses



75% OFF

Buy now

Interactive exercises

10 h

Estimated time


Users enrolled


433 ratings

T-SQL, which is used in Microsoft SQL Server, has many built-in functions. Understanding T-SQL functions is essential to anyone who wants to work with SQL Server. Data analysts use these functions to prepare accurate reports. SQL developers and software developers use them to write concise and readable queries. In both cases, T-SQL functions make it easier to get the right results!

The course offers 150 interactive exercises. You’ll read clear explanations on what each SQL Server function does, and then you’ll write your own T-SQL queries to solve realistic problems. The practice exercises are fun and engaging, and they’ll give you confidence in using T-SQL.

Cover image for the course 'Common Functions in MS SQL Server'

Try our T-SQL course and become proficient in SQL Server functions!

What Do You Need to Take This Course?

  • A web browser and an Internet connection
  • Some understanding of T-SQL, such as the concepts presented in our T-SQL Basics for SQL Server course*

This Course Will Teach You How To:

  • Recognize and work with text, numeric, and date and time data
  • Use SQL Server text functions to search, split, combine, and change strings
  • Perform complicated calculations with SQL Server numeric functions
  • Select the right T-SQL function to get and change date and time data
  • Handle NULLs safely and effectively
  • Change data from one data type to another in T-SQL

Plus, you'll get to practice your skills on 149 interactive exercises.

Who Should Take This Course?

  • Anyone who wants to learn about common SQL Server functions
  • Data analysts who need to create complex reports
  • SQL Server developers who want to become more proficient in SQL Server functions
  • Students taking classes in relational databases using SQL Server
  • People interviewing for jobs where they will work with SQL Server
  • Business SQL Server users who want to improve their query-writing skills

What's in it for me?

  • 149 interactive exercises. Learn at your own pace, from anywhere and anytime. Interact with hands-on exercises for improved retention.
  • Lifetime access to the course. When you purchase the course, you’ll get instant personal access to all of its content.
  • Certificate of completion. After you successfully finish all of the exercises, you’ll get a downloadable PDF certificate to showcase your accomplishment.
  • 30-day money back guarantee. If you’re not satisfied with the quality of the course, you can get a refund within 30 days of your purchase.
  • Hints for the exercises. You can ask questions and share insights with other members of our community through the Disqus tab. You can also drop us a line directly, and we’ll be more than happy to answer! 😉

*The material in Common Functions in MS SQL Server is intended for intermediate users. To complete this course, you’ll need to know:

  • How to select from a single table, including writing complex WHERE conditions
  • How to JOIN tables
  • How GROUP BY and HAVING work

Table of contents


Paid content


Course progress


Exercises completed


Intro Quiz

In this course, we assume you know the basics of T-SQL: selecting information from a single table, joining queries, and grouping results. Take the test to see if you know SQL Server well enough to continue with the course.


Introductory quiz


String functions

Learn the basic SQL Server text functions to transform text values and make your reports look pretty.




Simple text functions

How to modify Strings



Numeric functions

Master numeric functions in SQL Server. Learn about the caveats of mathematical operators in T-SQL, various rounding functions, and computing proportions.



So you think you can count?

Rounding functions and more

Review and practice


Date and time

Study date and time functions and learn how to select events from a period of time.



Dealing with dates

Working with time data

Date and time date

Extracting dates and times

Doing arithmetic with dates

Converting date and time data

Current date and time data

Building date and time data from parts

Summary and review


Other T-SQL Functions

Learn about SQL Server functions working with NULLs and other useful functions.



The ISNULL() function

The COALESCE() function

The NULLIF() function



Final quiz

Check your knowledge of SQL Server functions in this quiz.



Reviews (16)

Average rating



433 ratings


5 stars


4 stars


3 stars


2 stars


1 stars