SQL Server: Common Interview Questions
What is the difference between Delete and Truncate in SQL Server?
What is trigger? Write syntax of trigger.
What is the difference between “char” and “varchar”?
What is function in Sql server? How many types of functions?
What is stored procedure? Write syntax of stored procedure?
How parameter is passed to sql function and how call a function?
What is input and output parameter in stored procedure? How it works?
Write syntax to create a table.
What is view? What is the difference between table and view?
What is constraint? Tell different type of constraint and its functionality.
Discuss different type of joining. How it works?
How left outer joining works?
How inner join works? Give an example.
How outer join works? Give an example.
How right outer join works? Give an example.
How full outer join works? Give an example?
How Cross Join works? Give an example?
Which one faster – Inner join or Cross Join?
How do you move all data to another table using query?
Find out the maximum salary from a salary table?
How do you find number of employee from employee table?
What is commit and rollback? How it works?
What do you know about transaction block? How it works?
How primary key constraints, foreign key constraints and default constraints works?
How not null constraints, check constraints, rules constraint and unique constraints works?
What are DDL and DML? Give example.
How distinct keyword works?
What do you know about sql wildcard? Give example.
How to select top 10 employees from employee table?
How “between” and “in” operator works?
Union / Union all, requirement and difference.
What is sub query? Give an example.
How “having” clause works?
How “group by” clause works?
Why “Where” clause is needed?
comments powered by Disqus.