This MS SQL Server and SQL Online Test
Separates Good From Bad Hires

Check our public questions below

Solve questions to get feedback or
take a practice test and get a free certificate.

Screen with work-sample questions

Work-samples are the best predictor of work performance. 8,000+ companies use TestDome premium questions.

About the test

The Microsoft SQL Server and SQL online test assesses candidates' knowledge of SQL queries, relational database concepts, and their ability to use T-SQL.

It's an ideal test for pre-employment screening. A good database admin or back-end developer working exclusively on a Microsoft SQL server database needs to be able to use features specific to SQL Server to interface efficiently with the database.

This online test requires candidates to write SQL Server stored procedures and to write SQL queries that extract, combine, or manipulate data.

Sample public questions

Easy
15 min
code
Public
MS SQL Server
Date Functions
Select
Stored Procedure
T-SQL

The following table is used in an application that tracks the items its users bought:

TABLE items
  id INTEGER NOT NULL PRIMARY KEY
  name VARCHAR(30) NOT NULL
  dateBought DATE NOT NULL

Finish the ItemsBought procedure so that it returns only items whose dateBought is between @date and one month after @date (both inclusive). For each item it should return:

  • The day of the month the item was bought [1-31].
  • The number of the month the item was bought [1-12].
  • The name of the item.

See the example case here for more details.

Easy
3 min
code
Public
SQL
Aggregation
Select

Given the following data definition, write a query that returns the number of students whose first name is John.

TABLE students
   id INTEGER PRIMARY KEY,
   firstName VARCHAR(30) NOT NULL,
   lastName VARCHAR(30) NOT NULL

For jobseekers: get certified

Earn a free certificate by achieving top 25% on the MS SQL Server and SQL test with public questions.

Take a Certification Test

For companies: premium questions

Buy TestDome to access premium questions that can't be practiced.
Get money back if you find any premium question answered online.

Sign Up to Offer this Test

44 more premium MS SQL Server and SQL questions

Roads, Authors, Autocomplete, Bank Branches, Cheapest Product, Countries, Developers, Hospital Patients, Index Performance, Menu Items, Movies, Projects, Rectangles, Restaurant Menu, Retirees, SMS Messages, Poll, Users and Accounts, Matching Clothes, Manager Sales, Agents, Sales, Employee Manager, Auto Show, Delete Orders, Welfare Organization, Tasks, Manager Sales, Student Rankings, Student Activities, Youngest Child, Movies Live, Department Report, Ingredients, Average Salary, Movie Genres, River Discharge, ATM Locations, User Procedure, Customer Paging, Manager Check, Transactions, Merge Stock Index, Ban Users.

Skills and topics tested

  • SQL
  • Conditions
  • Views
  • Select
  • Create Index
  • Database Schema
  • Performance Tuning
  • Constraints
  • Create Table
  • Aggregation
  • Subqueries
  • Ordering
  • Bug Fixing
  • Indexes
  • Alter Table
  • Group by
  • Update
  • Insert
  • Joins
  • MS SQL Server
  • CTE
  • Left Join
  • Right Join
  • Delete
  • SQL CASE
  • Union
  • Database Normalization
  • Stored Procedure
  • T-SQL
  • Pagination
  • Recursion

For job roles

  • Data Analyst
  • Database Administrator
  • MS SQL Server Database Administrator
  • MS SQL Server Developer
  • SQL Developer

Solve all your skill testing needs

150+ Pre-made tests

From web development and database administration to project management and customer support. See all pre-made tests.

Multi-skills Test

Mix questions for different skills or even custom questions in one test. See an example.

How TestDome works

1

Choose a pre-made test
or create a custom test

2

Invite candidates via
email, URL or your ATS

3

Candidates take
a test remotely

4

Sort candidates and
get individual reports

Want to know more?

Not exactly what you're looking for?

Related MS SQL Server and SQL Programming Tests: