Sql Server Interview Questions and Answers (1758) - Page 45

How can you add carriage returns to text when inserting into a table?

NOTE: This is objective type question, Please click question title for correct answer.
Which of the following would be a correct way to call the stored procedure USP_MyProc?

NOTE: This is objective type question, Please click question title for correct answer.
Which of the following is the standard four-part naming convention when referencing database objects in SQL Server?

NOTE: This is objective type question, Please click question title for correct answer.
Which of the following CANNOT be passed back as an output parameter from a stored procedure?

NOTE: This is objective type question, Please click question title for correct answer.
What is the output of select COALESCE(10, getdate()) as 'COALESCE' ?

NOTE: This is objective type question, Please click question title for correct answer.
What is the output of select ISNULL(10, getdate()) as 'IsNullWithDifferentTypesofData' ?

NOTE: This is objective type question, Please click question title for correct answer.
Which of the following datepart argument is used to get the MINUTE value from datetime using DATENAME() function in SQL server?

NOTE: This is objective type question, Please click question title for correct answer.
How to generate grand total for the total column as a separate result in SQL server?

NOTE: This is objective type question, Please click question title for correct answer.
Which of the following statement is TRUE regarding INSTEAD OF triggers?

NOTE: This is objective type question, Please click question title for correct answer.
How to limit the results to include only the top 100 most recent records. What is the best way to achieve this?

NOTE: This is objective type question, Please click question title for correct answer.
Which of the following is FALSE regarding DML triggers?

NOTE: This is objective type question, Please click question title for correct answer.
Which of the following transaction isolation levels is the default in SQL Server 2012?

NOTE: This is objective type question, Please click question title for correct answer.
How to get Table row no/row index in sql-server.

With the help of Row_Number() sql-server in-built function, we can get table row number as below:-

select row_number() over(order by employee_id) as 'sr. no.'
from employee_mster where status='AA';
Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories