Induction_Training_2

Induction_Training_2

Professional Development

71 Qs

quiz-placeholder

Similar activities

Soal Pedagogi PPPK

Soal Pedagogi PPPK

Professional Development

75 Qs

04MELE - Sociolingüística y Pragmática

04MELE - Sociolingüística y Pragmática

University - Professional Development

70 Qs

Egzamin A1 - Kurs Wstępny

Egzamin A1 - Kurs Wstępny

Professional Development

69 Qs

ESTUDIO 2

ESTUDIO 2

Professional Development

74 Qs

Cengage Accounting ll Final Exam Study Guide

Cengage Accounting ll Final Exam Study Guide

Professional Development

69 Qs

Google Analytics - 70 questions

Google Analytics - 70 questions

Professional Development

70 Qs

Budgeting 101

Budgeting 101

11th Grade - Professional Development

74 Qs

Statistics Set 2

Statistics Set 2

University - Professional Development

75 Qs

Induction_Training_2

Induction_Training_2

Assessment

Quiz

Education

Professional Development

Medium

Created by

Training TechHub

Used 2+ times

FREE Resource

71 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Given table has 100 tuples and write a query to find out only 50 tuples from given table (only first half records).

SELECT TOP FIRSTHALF * FROM Bikes;

ELECT TOP 1/2 * 

FROM Bikes;  

SSELECT TOP 

HALF  * FROM Bikes;  

SELECT TOP 50 PERCENT * FROM Bikes; 

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Write a query and find out number of unique salaries and return unique salary from EMP table.

SELECT COUNT (UNIQUE Emp_Salary) AS Unique_Salary FROM Employee ; 

SELECT COUNT (DISTINCT Emp_Salary) ,Salary FROM Employee ; 

SELECT AS Unique_Salary , COUNT (DISTINCT Emp_Salary)  FROM Employee ; 

SELECT COUNT (DISTINCT Emp_Salary) AS Unique_Salary FROM Employee ; 

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which query will “find out two employees who came from Delhi”?

SELECT TOP 2 * FROM Employee WHERE Emp_City = Delhi ;  

SELECT  2 * FROM Employee WHERE Emp_City = Delhi ; 

SELECT  * FROM Employee WHERE Emp_City = Delhi  AND Emp_City<2;  

SELECT TOP 2 *  Employee WHERE Emp_City = Delhi ;  

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which query will help us to select a random record from table?

SELECT column  FROM table  ORDER BY NEWID()  

SELECT RANDOM column FROM table  ORDER BY NEWID()  

SELECT TOP 1 column FROM table  ORDER BY NEWID()  

SELECT TOP 1 column FROM table  AS NEWID()  

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Write a query to find out total sales but total sales greater then 300 from department table?

SELECT department, SUM (sales) AS "Total Sales"  

FROM order_details  

GROUP BY department WHERE SUM (sales)>300;

SELECT department, SUM (sales) AS "Total Sales"  

FROM order_details  

GROUP BY department HAVING SUM (sales)>300;

SELECT department, SUM (sales) AS "Total Sales"  

FROM order_details  

GROUP BY sales HAVING SUM (sales)>300;

SELECT * SUM (sales) AS "Total Sales"  

FROM order_details  GROUP BY department HAVING SUM (sales)>300;

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Write a query and return all records from Table A and Table B.

SELECT Distinct *

FROM table_A  

FULL OUTER JOIN table_B  

ON table_A.A = table_B.A;  

SELECT (Distinct *)  

FROM table_A  

FULL OUTER JOIN table_B  

ON table_A.A = table_B.A;  

SELECT *  

FROM table_A  

JOIN table_B  

ON table_A.A = table_B.A;  

SELECT *  

FROM table_A  

FULL OUTER JOIN table_B  

ON table_A.A = table_B.A;  

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We have two tables, Table-1 and Table-2. Column id is common attribute in both tables. Also, only 5 ID are matches in both tables. So, here is the question.

Table-1 has 6 tuples and table-2 has 7 tuples. If we will perform cross join on these tables then, how many tuples will return?

30

5

42

13

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?