STRUCTURED QUERY LANGUAGE TEST

Progress

1.

Which of the following database cannot be dropped?

2.

The result of a SQL SELECT statement is a ______.

3.

Which one is a non-relational database?

4.

Which one is not part of the Database backup file?

5.

Which file type is used for database backup?

6.

What can be the condition in the "WHERE" clause in a SQL query?

7.

If you don't specify ASC or DESC after a SQL ORDER BY clause, the following is used by default

8.

You need to find out the names of all employees who belong to the same department as the employee 'Jessica Butcher' who is in department 100 and has an employee ID 40. Which of the following queries will be correct?

9.

Which command is used to change the definition of a table in SQL ?

10.

What is the significance of “ORDER BY” in the following MySQL statement?

SELECT emp_id, fname, lname  
FROM person    
ORDER BY emp_id;  

11.

What is the significance of the statement of the below query?

SELECT branch_name, COUNT (DISTINCT customer_name)     
FROM depositor, account           
WHERE depositor.account_number = account.account_number   
GROUP BY branch_id          

12.

Select ID, name, dept name, salary * 1.1 where instructor;

The query given below will not give an error. Which one of the following has to be replaced to get the desired output?

13.

You can delete a view with _____________ Command.

14.

Find the name of these cities with temperature and condition whose condition is neither sunny nor cloudy

15.

Analyse the following Query and Mark the answer whether it's the correct query or not?

SELECT Name, Age, Firstname, Lastname
FROM EMPLOYEE     
GROUP BY NAME, SALARY;  

16.

Which of the SQL statement is correct?

17.

Which syntax is used for Drop Index (idx_pname) from the Person table in MYSQL?

18.

Find all the cities whose humidity is 89

19.

The HAVING clause does which of the following?

20.

Analyze the following Query and Mark the answer whether it's a correct query or not?

Select OrderID, Shipdate
From Orders  
Where CustomerID=20
Order by Shipdate;

21.

Can you validate the statement?

"ORDER BY" can only be used by WHERE Clause.

True or False?

22.

How to delete the Customer name of Alfreds Futterkiste (CustomerID is 1) from the Customers table?

23.

Find the names of the countries whose condition is sunny

24.

Which of the following query is correct for selecting the name of the staff from ''staffinfo'' table where salary is 10000 or 25000?

25.

Which one is not used in SQL?

26.

If emp_id contains the following set {-1, -2, 2, 3, -3, 1}, what will be the output on the execution of the following MySQL statement?

SELECT emp_id
FROM person
ORDER BY emp_id;

27.

The _______ clause allows us to select only those rows in the result relation of the ____ clause that satisfy a specified predicate.

28.

What is the meaning of the “ORDER BY” clause in MySQL?

29.

 Syntax for create a  views is _______

30.

Select ________ dept_name from instructor; 

Here which of the following displays the unique values of the column?

31.

Can you validate the statement?

A subquery can be used anywhere an expression is allowed.

True or False?

32.

Which of the following multi-row operators can be used with a sub-query?

33.

Which of the following operators cannot be used in a sub-query?

34.

Which of the following clause is mandatorily used in a sub-query?

35.

Which of the following statement(s) is TRUE regarding subqueries?

36.

Which one of the following is a set of one or more attributes taken collectively to uniquely identify a record?

37.

Which of the following do you need to consider when you make a table in SQL?

38.

Can you validate the statement?

We can use the index on columns that contain a high number of NULL values.

True or False?

39.

Does an Index help to speed up?

40.

Can you validate the statement?

A column with a Primary key has a Null value.

True or False?

41.

Which type of join is not desirable for retrieval?

42.

Analyze the following tables and output and choose the correct query to achieve the output.

43.

Analyze the following tables and output and choose the correct query to achieve the output.

44.

What is the syntax for joining two tables? Pick Two

45.

What is the function of Full Outer Join in SQL?

46.

Statement: Join for each row of one table to every row of another table.

Which Join?

47.

Analyze the following tables and output and choose the correct query to achieve the output.

 

48.

What are the joins available in SQL?

49.

Analyze the following tables and output and choose the correct query to achieve the output.

50.

Can you validate the statement?

Join is different from Inner join.

True or False?

51.

Which SQL keyword is used to retrieve a maximum value?

52.

Use below table (Salesemployee) and answer the following question
What is the output of following query ?
SELECT Count(*) from Salesemployee 
WHERE Salary >=500 and Dept = 'Sales';

 

53.

Use below table (Salesemployee) and answer the following question
What is the output of following query ?
SELECT Count(Salary) from Salesemployee 
where name Like 'T%';  

 

54.

Use below table (Salesemployee) and answer the following question
What is the output of following query ?
SELECT AVG(Salary) from Salesemployee 
where Dept = ' HR';    

 

55.

Use below table (Salesemployee) and answer the following question
What is the output of following query ?
SELECT MAX(Salary) from Salesemployee 
WHERE Employee_ID % 2 = 0 ;  

 

56.

Use below table (Salesemployee) and answer the following question
What is the output of following query ?
SELECT Count(Salary) from Salesemployee 
where name Like 'S%';

 

57.

Which SQL keyword is used to retrieve the highest value? 

58.

Which among the following belongs to an “aggregate function”?

59.

Use below table (Salesemployee) and answer the following question
What is the output of following query ?
SELECT COUNT(*) from Salesemployee 
WHERE Employee_ID % 2 <> 0 ;  

 

60.

Use below table (Salesemployee) and answer the following question
What is the output of following query ?
SELECT Count(*) from Salesemployee 
WHERE Gender = 'Male';  

 

Assessment complete! Thank you for you time.
We are redirecting you to the result page, Please click on 'SUBMIT'