Here is another popular lab from Hands-On-Lab library: User Defined Functions in SQL Server.
In Transact-SQL (T-SQL) User-Defined Functions allows to define our own function to perform logical calculations and it returns the result set of an action as a value. Scalar User-Defined Function, Inline table valued function and Multi-statement table valued function are three types of user-defined functions in T-SQL. This lab is divided into five exercises explaining scalar user defined functions, inline table valued functions and multi valued table valued functions.
Exercise 1: CREATE and implement a Scalar User-Defined Function
Exercise 2: CREATE and implement an Inline table valued function
Exercise 3: CREATE and implement a Multi-statement table valued function
Exercise 4: Self-Assessment
Exercise 5: T-SQL Challenge
SQLMaestros Hands-On-Labs enables the practical way of learning. Each lab document consists of multiple exercises and each exercise consists of multiple tasks. Apart from step-by-step instructions, the HOL document contains images, explanations, observations, notes, tips & tricks to ensure a great learning experience. With each lab, you can practice a specific concept step-by-step. With our HOL documents, you will get hands-on with hundreds of topics in SQL Server & Microsoft Data Platform. Learn More.