MS SQL Server 2014 Skill Assessment Test

Topics covered

SQL Server 2014 DATEDIFF() Function, Pivot Query in SQL Server 2014, SQL Server 2014 Execution Plan, OFFSET FETCH Clause in 2024 Edition, Merge Joins, Design & implementation of stored procedures, Data Platforms, SQL Server 2014 Query Optimizer, Disaster recovery and backup via Azure, In-memory capabilities, AlwaysOn Azure Template, Updateable Clustered ColumnStore Indexes

  • MAQ (Multiple Answer Question)
  • MCQ (Multiple Choice Question)
  • Descriptive Question
  • White Board Simulator
  • Coding Simulator
  • Audio Question
  • Video Question
  • Case Study Question

SQL Server Online Test enables Recruiters, Hiring Managers and Employers to effectively assess the candidate’s knowledge of MS SQL Server 2014 before the interview.

MS SQL Server 2014 is one of the powerful and reliable data management systems provided by Microsoft that delivers rich and reliable data storage. MS SQL 2014 test is specially designed to check the application, networking and routing skills of an MS SQL Server 2014 expert – as per Industry Standards.

The MS SQL 2014 Test Contains Questions on Following Topics :-
 

  • SQL Server 2014 DATEDIFF() Function

  • Pivot Query in SQL Server 2014

  • SQL Server 2014 Execution Plan

  • OFFSET FETCH Clause in 2024 Edition

  • Merge Joins

  • Design & implementation of stored procedures

  • Data Platforms

  • SQL Server 2014 Query Optimizer

  • Disaster recovery and backup via Azure

  • New features included in 2014 Edition:

    • In-memory capabilities

    • AlwaysOn Azure Template

    • Updateable Clustered ColumnStore Indexes


MS SQL Server 2014 assessment test is designed by our subject matter experts to analyze one’s understanding of this discipline. Using powerful reporting, you can have a detailed analysis of the test results to help you make a better hiring decision and predict the candidate’s performance.

This pre-employment test is useful for hiring:
  • SQL Server Developer
  • MS SQL Server Developer
  • SQL Server Database Administrator
  • SQL Server Database Developer

Test details:

SQL Server test online enables employers and recruiters to evaluate skills and job readiness of candidates. For this reason, the emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.

Test Duration              :  20 Minutes

No. of Questions        :  20   (Application Oriented - 15 & Theory-Based - 5)

Type of Questions   :  This test contains MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blanks, Descriptive & True or False Questions.

MS SQL Server 2014 Test

Question #1 of 3

Which code will give an error?

1 -SELECT DATEDIFF_BIG(MILLISECOND,
 '12/01/2015','12/30/2015') 
AS 'Difference in MILLISECOND'

2- SELECT DATEDIFF(MILLISECOND,
 '12/01/2015','12/30/2015')
 AS 'Difference in MILLISECOND'

    • 1

    • 2

    • 1,2

Question #2 of 3

How to replace NULL by 0 in the dynamic PIVOT query result?

    • DECLARE @DynamicPivotQuery AS NVARCHAR(MAX)
       DECLARE @ColumnName AS NVARCHAR(MAX)
       --Get distinct values of the PIVOT Column
       SELECT @ColumnName= ISNULL(@ColumnName + ',','')
       + QUOTENAME(Course)
       FROM (SELECT DISTINCT Course FROM #CourseSales) AS Courses
       --Prepare the PIVOT query using the dynamic
       SET @DynamicPivotQuery =
       N'SELECT Year, ' + @ColumnName + '
       FROM #CourseSales
       PIVOT(SUM(Earning)
       FOR Course IN (' + @ColumnName + ')) AS PVTTable'
       --Execute the Dynamic Pivot Query
       EXEC sp_executesql @DynamicPivotQuery
       GO

    • DECLARE @DynamicPivotQuery AS NVARCHAR(MAX),
              @PivotColumnNames AS NVARCHAR(MAX),
              @PivotSelectColumnNames AS NVARCHAR(MAX)
      --Get distinct values of the PIVOT Column
      SELECT @PivotColumnNames= ISNULL(@PivotColumnNames + ',','')
      + QUOTENAME(Course)
      FROM (SELECT DISTINCT Course FROM #CourseSales) AS Courses
      --Get distinct values of the PIVOT Column with isnull
      SELECT @PivotSelectColumnNames 
          = ISNULL(@PivotSelectColumnNames + ',','')
          + 'ISNULL(' + QUOTENAME(Course) + ', 0) AS '
          + QUOTENAME(Course)
      FROM (SELECT DISTINCT Course FROM #CourseSales) AS Courses
      --Prepare the PIVOT query using the dynamic
      SET @DynamicPivotQuery =
      N'SELECT Year, ' + @PivotSelectColumnNames + '
      FROM #CourseSales
      PIVOT(SUM(Earning)
      FOR Course IN (' + @PivotColumnNames + ')) AS PVTTable'
      --Execute the Dynamic Pivot Query
      EXEC sp_executesql @DynamicPivotQuery

    • DECLARE @DynamicPivotQuery AS NVARCHAR(MAX)
       DECLARE @ColumnName AS NVARCHAR(MAX)
       --Get distinct values of the PIVOT Column
       SELECT @ColumnName= ISNULL(@ColumnName + ',','')
       + QUOTENAME(Course)
       FROM (SELECT DISTINCT Course FROM #CourseSales) AS Courses
       --Prepare the PIVOT query using the dynamic
       SET @DynamicPivotQuery =
       N'SELECT Year, ' + @ColumnName + '
       FROM #CourseSales
       FOR Course IN (' + @ColumnName + ')) AS PVTTable'
       --Execute the Dynamic Pivot Query
       EXEC sp_executesql @DynamicPivotQuery
       GO

Question #3 of 3

You have following insert query:

--Create Temporary Table #CourseSales
CREATE TABLE #CourseSales
(Course VARCHAR(50),Year INT,Earning MONEY)
GO
--Populate Sample records
INSERT INTO #CourseSales VALUES('.NET',2012,10000)
INSERT INTO #CourseSales VALUES('Java',2012,20000)
INSERT INTO #CourseSales VALUES('.NET',2012,5000)
INSERT INTO #CourseSales VALUES('.NET',2013,48000)
INSERT INTO #CourseSales VALUES('Java',2013,30000)
GO

What is the result of the following query?

SELECT *
FROM #CourseSales
PIVOT(SUM(Earning) 
FOR Course IN ([.NET], Java)) AS PVTTable

    • Year NET Java
      1 2012 15000.00 20000.00
      2 2013 48000.00 30000.00

    • Year NET Java
      1 2012 15000.00 20000.00
      2 2012 48000.00 30000.00

    • Year NET Java
      1 2013 1500.00 2000.00
      2 2013 4800.00 3000.00

Candidate Name
Assessment Name
Invited by
Assessment Date
IP Address
Status








24.00 Out of 40.00
Pass
60%
03
23 Minutes

Java EE

9/10

Hibernate

3/10

Oracle PL/SQL

7/10

Analytical Thinking

5/10

Note:If score<= 30% then its a Weakness. If score >=70% then its a Strength.

Strengths

Java EE, Oracle PL/SQL, Analytical Thinking

Weaknesses

Hibernate

Sign up for a free trial today

Get your free trial and test up to 10 candidates. No strings attached. No credit card required.

SIGN UP FOR FREE

Schedule a Demo

How Interview Mocha works?

  • Add this test to your account

  • Invite candidates to take this test online

  • Candidates take the test

  • View and share actionable test reports

Trusted by leading brands worldwide

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • hexaware
Why hiring managers and recruiters across the globe love Interview Mocha
  • Largest number of ready pre-employment skill tests
  • Relevant test compositions and quality questions designed by Subject Matter Experts (IM SME)
  • Fastest custom test creation DNA
  • World’s most super easy skill assessment platform
  • High level of platform security implementation
  • Friendly and quick customer support
  • Ready to listen and implement your feedback, we are all ears
  • Affordable pricing

Sign up for a free trial today

Get your free trial and test up to 10 candidates. No strings attached. No credit card required.

SIGN UP FOR FREE

Schedule a Demo