How to Split Strings in Python With the split Method
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=CMyE4ETUwCk
Text version of the video • http://csharp-video-tutorials.blogspo... • Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help. • / @aarvikitchen5572 • Slides • http://csharp-video-tutorials.blogspo... • All SQL Server Text Articles • http://csharp-video-tutorials.blogspo... • All SQL Server Slides • http://csharp-video-tutorials.blogspo... • All Dot Net and SQL Server Tutorials in English • https://www.youtube.com/user/kudvenka... • All Dot Net and SQL Server Tutorials in Arabic • / kudvenkatarabic • Parameters of a sql server stored procedure can be made optional by specifying default values. • We wil be using table tblEmployee for this Demo. • CREATE TABLE tblEmployee • ( • Id int IDENTITY PRIMARY KEY, • Name nvarchar(50), • Email nvarchar(50), • Age int, • Gender nvarchar(50), • HireDate date, • ) • Insert into tblEmployee values • ('Sara Nan','[email protected]',35,'Female','1999-04-04') • Insert into tblEmployee values • ('James Histo','[email protected]',33,'Male','2008-07-13') • Insert into tblEmployee values • ('Mary Jane','[email protected]',28,'Female','2005-11-11') • Insert into tblEmployee values • ('Paul Sensit','[email protected]',29,'Male','2007-10-23') • Name, Email, Age and Gender parameters of spSearchEmployees stored procedure are optional. Notice that, we have set defaults for all the parameters, and in the WHERE clause we are checking if the respective parameter IS NULL. • Create Proc spSearchEmployees • @Name nvarchar(50) = NULL, • @Email nvarchar(50) = NULL, • @Age int = NULL, • @Gender nvarchar(50) = NULL • as • Begin • Select * from tblEmployee where • (Name = @Name OR @Name IS NULL) AND • (Email = @Email OR @Email IS NULL) AND • (Age = @Age OR @Age IS NULL) AND • (Gender = @Gender OR @Gender IS NULL) • End • Testing the stored procedure • 1. Execute spSearchEmployees - This command will return all the rows • 2. Execute spSearchEmployees @Gender = 'Male' - Retruns only Male employees • 3. Execute spSearchEmployees @Gender = 'Male', @Age = 29 - Retruns Male employees whose age is 29
#############################
