Various interview questions on SQL Server
- By Shiv Prasad Koirala in SQL
- May 17th, 2014
In this part we have tried to put some light on various SQL Server interview questions asked by the interviewer. So here we go with SQL Server questions.
What is primary key in SQL?
Primary key let us uniquely identify the row in a table.
How it is different from Unique key?
Primary key never accepts null value whereas in case of unique key one of the values can be null.
Can you write down a query which will display the current financial year?
How will you find the index of a particular character in a SQL variable?
We will use CharIndex method.
Let say we have multiple queries and we have to show result set of all queries as one result. What we have to do?
Is it possible to use order by with UNION?
We cannot write order by in each query but can in last query which will affect entire result set.
For more SQL Server interview questions and .NET Interview Questions and Answers videos visit QuestPond.com
Get revised with most asked SQL Server Interview Questions with below 1 hour tutorial :-
Shiv Prasad Koirala
Visit us @ www.questpond.com or call us at 022-66752917... read more