Top 1000+ Solved DataBase Management System (DBMS) MCQ Questions Answer

From 811 to 825 of 1187

Q. Find all the cities with temperature, condition and humidity whose humidity is in the rangeof 63 to 79.

a. SELECT * FROM weather WHERE humidity IN (63 to 79)

b. SELECT * FROM weather WHERE humidity NOT IN (63 AND 79)

c. SELECT * FROM weather WHERE humidity BETWEEN 63 AND 79

d. SELECT * FROM weather WHERE humidity NOT BETWEEN 63 AND 79

  • c. SELECT * FROM weather WHERE humidity BETWEEN 63 AND 79

Q. The command to remove rows from a table ‘CUSTOMER’ is __________________

a. DROP FROM CUSTOMER

b. UPDATE FROM CUSTOMER

c. REMOVE FROM CUSTOMER

d. DELETE FROM CUSTOMER WHERE

  • d. DELETE FROM CUSTOMER WHERE

Q. What type of join is needed when you wish to include rows that do not have matchingvalues?

a. Equi-join

b. Natural join

c. Outer join

d. All of the Mentioned

  • c. Outer join

Q. What type of join is needed when you wish to return rows that do have matching values?

a. Equi-join

b. Natural join

c. Outer join

d. All of the Mentioned

  • d. All of the Mentioned

Q. Which of the following is one of the basic approaches for joining tables?

a. Subqueries

b. Union Join

c. Natural join

d. All of the Mentioned

  • d. All of the Mentioned

Q. A UNION query is which of the following?

a. Combines the output from no more than two queries and must include the same number of columns

b. Combines the output from no more than two queries and does not include the same number of columns

c. Combines the output from multiple queries and must include the same number of columns

d. Combines the output from multiple queries and does not include the same number of columns

  • c. Combines the output from multiple queries and must include the same number of columns

Q. Which of the following statements is true concerning subqueries?

a. Involves the use of an inner and outer query

b. Cannot return the same result as a query that is not a subquery

c. Does not start with the word SELECT

d. All of the mentioned

  • a. Involves the use of an inner and outer query

Q. Which of the following is a correlated subquery?

a. Uses the result of an inner query to determine the processing of an outer query

b. Uses the result of an outer query to determine the processing of an inner query

c. Uses the result of an inner query to determine the processing of an inner query

d. Uses the result of an outer query to determine the processing of an outer query

  • a. Uses the result of an inner query to determine the processing of an outer query

Q. Which is not a type of join in T-SQL?

a. Equi-join

b. Natural join

c. Outer join

d. Cartesian join

  • b. Natural join

Q. What is a view?

a. A view is a special stored procedure executed when certain event occurs

b. A view is a virtual table which results of executing a pre-compiled query

c. A view is a database diagram

d. None of the Mentioned

  • b. A view is a virtual table which results of executing a pre-compiled query

Q. Which of the following is not a limitation of view?

a. ORDER BY Does Not Work

b. Index Created on View Used Often

c. Cross Database Queries Not Allowed in Indexed View

d. Adding Column is Expensive by Joining Table Outside View

  • b. Index Created on View Used Often

Q. Which of the following statement is true?

a. Views could be looked as an additional layer on the table which enables us to protect intricate or sensitive data based upon our needs

b. Views are virtual tables that are compiled at run time

c. Creating views can improve query response time

d. All of the Mentioned

  • d. All of the Mentioned

Q. SQL Server has mainly how many types of views?

a. one

b. two

c. three

d. four

  • b. two
Subscribe Now

Get All Updates & News