Articles tagged #T-SQL
5 article(s)
-
How to Pivot Data in SQL Server
To pivot data in SQL Server, use the PIVOT operator to turn distinct row values into columns while aggregating a measure. You supply an aggregate (like…
@llaxmikant · Mar 6, 2026 -
SQL Server Stored Procedure vs User-Defined Function
The core difference is this: a stored procedure is a routine you execute to do work — it can modify data, run transactions, handle errors, and return one or…
@llaxmikant · Dec 15, 2025 -
User-Defined Functions in SQL Server
A user-defined function (UDF) in SQL Server is a reusable routine that takes parameters, runs T-SQL, and returns either a single value or a table. SQL Server…
@llaxmikant · Nov 26, 2025 -
Exception Handling using TRY/CATCH in SQL Server
Exception handling in SQL Server is done with a TRY...CATCH block: you wrap risky statements in BEGIN TRY ... END TRY, and when any of them raises a runtime…
@llaxmikant · Sep 22, 2025 -
Types of SQL Server Joins with Examples
A join in SQL Server combines rows from two or more tables based on a related column. The type of join decides which rows survive: an INNER JOIN keeps only…
@llaxmikant · Jun 20, 2025