UPDATE AND DELETE USING JOINS in SQL: Advanced JOIN Operations

access_time 1712134980000 face Vijay Kashyap
UPDATE AND DELETE USING JOINS in SQL: Advanced JOIN Operations CREATE TABLE Sales.Targets ( Target_Id INT PRIMARY KEY, Percentage DECIMAL(4, 2) NOT NULL DEFAULT 0.00 ); CREATE TABLE Sales.Commissions ( Staff_Id INT PRIMARY KEY, Target_Id INT, Base_Amount DECIMAL(10, 2) NOT NULL DEFAULT 0, Commissio...

Temporary Functions in SQL Server- ( Part-2 )

access_time 1712064300000 face Vijay Kashyap
Temporary Functions in SQL Server- ( Part-2 ) Introduction: Temporary functions are a type of functions in SQL Server that are created and used within a specific session or connection. These functions are temporary and are only available for use during the duration of the connection in which they a...

Creating a Temporary Table from a Stored Procedure in SQL Server

access_time 1712063640000 face Vijay Kashyap
Creating a Temporary Table from a Stored Procedure in SQL Server Problem Statement: In SQL Server, it's a common requirement to create a temporary table from the result set of a stored procedure. However, doing this is not as straightforward as it might seem. This blog will address the problem of c...

SQL Server Concatenate text from multiple rows into single text string: Using XML PATH and STRING_AGG

access_time 1712061660000 face Vijay Kashyap
SQL Server Concatenate text from multiple rows into single text string: Using XML PATH and STRING_AGG SQL Combining text from various rows into a single string: In SQL Server, situations may arise where combining text from various rows into a single string is necessary. This process is valuable for...

SQL Joins: Inner Join, Left join, Right Join, And Full Outer Join

access_time 1711961880000 face Vijay Kashyap
SQL Joins: Inner Join, Left join, Right Join, And Full Outer Join SQL Server Joins: Definition, Types and Examples DEFINITION : A join is a way to combine data from two or more tables into a single result set based on a related column between the tables. Joining tables allows you to retrieve data t...