Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Transact SQL (T SQL) Online Assessment Test

Topics Covered

  • Nested Cursors
  •  Top Filters
  • JOIN
  • Pivot Table
  • Loops
  • Common Table Expressions

Useful for hiring

  • T-SQL Developer
  • Sr. T-SQL Developer
  • SQL Developer- T SQL
  • SQL Server Database Developer

Start hiring job-fit candidates using this assessment


"Interview Mocha has provided UNEECOPS with a veritable assessment platform with a comprehensive test library, online test platform, and intelligent reports. This made it easier for us to map different job openings with job-fit candidates and recruit faster."

Nisha Chandila, UNEECOPS,
Talent Acquisition Manager

What is true regarding scalar subquery?

Note: There can be multiple correct answers to this question.

    • You can not substitute the technique that uses a variable with an embedded subquery.

    • If a scalar subquery returns no value, it returns " ".

    • Returns a single value—regardless of whether it is self-contained.

    • Can appear anywhere in the outer query where a single-valued expression can appear.

    • If a scalar subquery can return more than one value, it might fail at run time.


Which of the following SQL statements is correct?

    • SELECT customername, Count(customername) 
      FROM orders;

    • SELECT customername, Count(customername) 
      FROM orders 
      GROUP BY customername;

    • SELECT customername, Count(customername) 
      FROM orders 
      ORDER BY customername;


What will be the result of running this script, without any additional operations? 


USE loxf;goBEGIN 
FROM   a local instance.DELETE datatbasename.dbo.tbluserprofile 
WHERE  userindex = 13;DELETE candidate 
FROM   remote instance.DELETE remoteserver.datatbasename.dbo.tbluserprofile

    • Candidates will be deleted from remote instance first.

    • Candidates will be deleted from local instance then same from a remote distance.

    • Error: Could not find server 'RemoteServer'.

Test details:

Transact SQL (T SQL) skill test will evaluate candidate’s practical knowledge and will identify whether the candidate is ready to be employed. Transact SQL (T SQL) assessment test has an online proctoring feature to detect misconduct during the test.

Transact SQL (T SQL) programming test may contain MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, Whiteboard Questions, Audio / Video Questions, True or False.

Duration: 20 minutes 

15 Application Questions
05 Theory Questions 

Test description:

Transact-SQL (T-SQL) is a programming language which is Microsoft's and Sybase's proprietary extension to SQL. It is the language that is developed for querying, altering, defining relational databases and using declarative statements. Transact-SQL has additional features and expands on the SQL standards including procedural programming and data processing, transaction control and error handling.
Transact SQL (T SQL) online test helps recruiters and hiring managers to assess candidate's T SQL programming skills. Interview Mocha’s Transact SQL (T SQL) assessment test is created & validated by experienced subject matter experts (SMEs) to assess & hire T SQL developer as per industry standards.

Online Transact SQL (T SQL) test helps you to screen the candidates who possess traits as follows:
1.  T-SQL query development skills for building queries, data mining and analytics
2.  Ability to work with SQL scripts, stored procedures
3.  Strong knowledge of concepts like nested cursors, loops, common table expressions

Interview Mocha’s powerful reporting & intelligent analytics will help you overview candidate’s performance in each section within a glance. Candidate feedback module will ensure candidates are having excellent experience with Interview Mocha.

Transact SQL (T SQL) online test has set of questions crafted by industry experts to cope with recent developments in technology. Moreover, you can add your questions as per the requirement of the job description.

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates