
Introduction of SQL server
Install SQL Server And SQL Server Management Studio
Create, Rename, and Delete Database
Create, Delete and rename table in SQL server database
Add, Rename And Delete column name
Records insert, update & delete
Select statement
Select Unique and Distinct statement
Select into statement
Insert, update and delete statement
Aggregate function count, max, min, sum, avg
What are SQL Joins
Introduction to Group by Clause
Introduction to Having Clause
Introduction to Order by clause
Introduction to Where clause
AND & OR Operator
Arithmetic Operator
Between Operator
Comparison Operator
While loop
Break and continue statement
Introduction to Stored Procedures
Select Statement Inside the Stored procedure
Insert Statement Inside a Stored Procedure
Update Statement within the Stored Procedure
Input Parameters in a Stored Procedures
Output Parameters in a Stored Procedure
Return Values in a Stored Procedure
Insert Stored Procedure output into Temporary Table
Introduction to function
Introduction to SQL View
Useful System Stored Procedures
Insert Statement Inside a Stored Procedure: In this code we create a stored procedure for insert the data into salary table then we insert the values by EXEC the stored procedure then gets the data by before create the DetData stored procedure. Now given bellow the example code:
/*CREATE PROCEDURE*/
CREATE PROCEDURE InsertData
AS
BEGIN
SET NOCOUNT ON
INSERT INTO Salary(FirstName, LastName, Gendar, Salary, Department)
VALUES ('Reza', 'Karim', 'Male', '50000', 'CSE');
END
/*Insert data*/
EXEC [dbo].[InsertData]
/*show data*/
EXEC [dbo].[GetData]
In this code we see the create stored procedures for insert data then using procedure name insert data into table then GetData procedure using show the all data.