Professional Documents
Culture Documents
IF Else condition we can use in limited place like if we have only two condition
either true or false.
But in real world we can have more then two condition , in that time we have an
option called Else If condition, which we can use inside IF Else condition multiple
time
Q.What is the difference between Table scan , Index scan and Index Seek ?
Note:Since, we now have a UNIQUE CLUSTERED INDEX on the Id column,
any attempt to duplicate the key values, will throw an error stating
'Violation of PRIMARY KEY constraint 'PK__tblEmplo__3214EC07236943A5'.
Cannot insert duplicate key in object dbo.tblEmployee'
NONCLUSTERED index: Logical read means sql server reads data from buffer memory
-- Physical read means sql server reads data from Disk
-- Larger Physical read means slow performace.