All quizzes
Free quiz · 50 questions in the bank

SQL Server quiz

Test your SQL Server knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What does `SCOPE_IDENTITY()` return?

Questions in this quiz
  1. What does `SCOPE_IDENTITY()` return?
  2. What is the purpose of a foreign key constraint like `FOREIGN KEY (CustomerId) REFERENCES dbo.Customers(CustomerId)`?
  3. What does `THROW` do in T-SQL?
  4. What does `BEGIN TRANSACTION` / `COMMIT TRANSACTION` do?
  5. How do you execute a stored procedure named `usp_GetOrders` with a parameter?
  6. What does `SELECT * FROM dbo.Orders;` mean by the `dbo.` prefix?
  7. What is T-SQL?
  8. What is the default transaction isolation level in SQL Server?
  9. What is a clustered index in SQL Server?
  10. What is `NVARCHAR` used for, as opposed to `VARCHAR`?
  11. What tool is most commonly used to write and run T-SQL queries with a graphical interface, including execution plan visualization?
  12. What does the `IDENTITY(1,1)` property on a column do?
Gaps to close?
Read the curated SQL Server notes — core concepts, patterns, interview prep.
SQL Server notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web