Induction_Training_2

Induction_Training_2

Professional Development

71 Qs

quiz-placeholder

Similar activities

Oracle CX Marketing Responsys

Oracle CX Marketing Responsys

Professional Development

70 Qs

IS101 - Finals

IS101 - Finals

Professional Development

68 Qs

SIMULADO NOVO CEA - Renda Fixa

SIMULADO NOVO CEA - Renda Fixa

Professional Development

68 Qs

m.subakozhoev naryn high school quiz

m.subakozhoev naryn high school quiz

Professional Development

70 Qs

Induction_Training_2

Induction_Training_2

Assessment

Quiz

Education

Professional Development

Practice Problem

Medium

Created by

Training TechHub

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Similar Resources on Wayground