Sunday, 26 January 2014

MS SQL Server Interview point of view concepts – Part 1

 

Connecting to SQL Server using SSMS - Part 1

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

Creating altering and dropping a database

 

image

 

 

 

image

 

 

 

image

 

 

 

 

image

 

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Creating and working with tables

 

image

 

 

 

image

 

 

Relationship via GUI

 

image

 

 

 

image

 

 

 

Relationship via Query

 

image

 

 

 

 

Adding a default constraint

 

image

 

 

 

image

 

 

 

image

 

 

 

 

 

Cascading referential integrity constraint

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Adding a check constraint

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Identity Column in SQL Server

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

 

How to get the last generated identity column value in SQL Server

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Unique key constraint

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Select statement in sql server

 

image

 

 

image

 

 

image

 

 

 

image

 

 

 

image

ote: when we use distinct on more than one columns, that means it will be performed distinct on across the columns.

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Group by in sql server

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

image

 

 

 

 

Joins in sql server

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

image

 

 

image

 

 

 

 

Advanced or intelligent joins in sql server

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Self join in sql server

 

image

 

 

 

image

 

 

 

 

Different ways to replace NULL in sql server

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Coalesce function in sql server

 

image

 

 

 

image

 

 

 

 

 

Union and union all in sql server

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Stored procedures in sql server

 

image

 

 

 

image

 

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Stored procedures with output parameters

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Stored procedure output parameters or return values

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

Note: If you use RETRUN keyword in stored procedure, it should be always integer.  AS well as, it will return only one value.

 

 

 

 

Advantages of stored procedures

 

image

 

 

 

 

Built in string functions in sql server 2008

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

 

LEFT, RIGHT, CHARINDEX and SUBSTRING functions in sql server

 

image

 

 

 

 

image

 

 

 

image

 

 

 

 

Replicate, Space, Patindex, Replace and Stuff string functions in sql server

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

image

 

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

DateTime functions in SQL Server

 

image

 

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

IsDate, Day, Month, Year and DateName DateTime functions in SQL Server

 

image

 

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

DatePart, DateAdd and DateDiff functions in SQL Server

 

image

 

 

 

image

 

 

 

 

Cast and Convert functions in SQL Server

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

 

 

Mathematical functions in sql server

 

image

 

 

 

image

 

 

 

image

 

 

 

 

image

 

 

 

 

Scalar user defined functions in sql server

 

image

 

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

Inline table valued functions

 

image

 

 

 

image

 

 

 

image

 

 

 

 

 

Multi statement table valued functions in sql server

 

image

 

 

 

image

 

 

 

image

 

 

 

Important concepts related to functions in sql server

 

image

 

 

Blogger Labels: Server,Tutorial,Beginners,SSMS,Part,database,Relationship,Query,constraint,Column,Unique,Select,statement,columns,Group,Joins,Self,Different,NULL,Coalesce,Union,procedures,output,parameters,procedure,Note,RETRUN,integer,Advantages,Built,LEFT,CHARINDEX,Replicate,Space,Patindex,Replace,Stuff,DateTime,IsDate,Month,DateName,DatePart,DateAdd,DateDiff,Cast,Convert,Mathematical,Scalar,user,Inline,Multi,Important,concepts

No comments:

Post a Comment