Skip to content
Home ยป SQL ยป Page 5

SQL

Cascading referential integrity in SQL Server

Cascading referential integrity constraints are foreign key constraints that is used to defines the action that SQL Server performs when a user try to delete or update a primary key value to which an existing foreign key points.

Loading

SQL Server TEMPORAL TABLE

SQL Server Temporal tables (system-versioned tables) allow us to track data changes. It was introduced in SQL Server 2016.

It allows SQL Server to maintain and manage the history of the data in the table automatically, So we can get all information about the data that was stored at any specified time rather than just the data that is current.

Loading

SQL SERVER IF..ELSE

SQL Server IF..ELSE block is a control-of-flow that allows you to execute or skip a statement block based on a specified condition.ย ย 

SYNTAX

IF Boolean_expression
{ sql_statement | statement_block }
[ ELSE { sql_statement | statement_block } ]ย ย 

SYNTAX

IF Boolean_expression
{ sql_statement | statement_block }
[ ELSE { sql_statement | statement_block } ]

Loading

SQL Server Stored Procedures Vs User Defined Functions

What is the difference between SQL Server Stored Procedures and User Defined Functions (UDF)?

Following are the some major difference between Stored procedures and User Defined functions

Return a value

Stored procedure may or may not return a value while UDF function must return a value.

Loading