T- SQL Interview Questions and Answer
- Different type of statements in SQL?
- What's the use of INTO keyword in Select statement in SQL?
- How do you add a column in an already existing table in SQL?
- How to update a value in a column in SQL?
- Can you rename an object in SQL?
- What is identity in SQL and whats the use of it?
- How to reset an identity?
- Difference between having and where clause?
- What data types have you used to setup a table?
- Whats the different between nvarchar and varchar?
- Difference between delete and truncate command ?
- Difference between truncate and drop command?
- What are joins in sql and explain different types of Joins?
- Difference between Union and Union All?
- What are Indexes?
- Different Types of indexes?
- Difference between clustered and non - clustered indexes?
- What are Views in SQL?
- What is CTE in SQL?
- Difference between CTE and Views?
- What is temp table?
- What is temporary variable?
- Difference between temp table and temp variable?
- Difference between temp table and CTE?
- What is Sub-Query in SQL?
- What is Nested query in SQL?
- What is inline Query in SQL?
- What are ranking functions in SQL?
- Difference between Rank and Dense Rank?
- Which Ranking functions is used to delete duplicate rows from a table?
- what is store procedure?
- what is UDF in SQL?
- difference between a store procedure and function in SQL?
- whats the use of NO COUNT?
- What is charindex function used for in SQL?
- What is substring function used for in SQL?
- What is coalesce function in SQL?
- difference between coalesce and ISNULL function?
- what is datediff function?
- what is dateadd function?
- explain functionality of Case function?
- how to use Case function in Select statement?
- Write a query to generate Running Total?
- Write a query to generate Running Average Values?
- What is BCP in SQL?