Tag: databases

Questions Related to databases

  1. The tablespace must be online

  2. The tablespace must not contain any active rollback segments

  3. he tablespace must not be involved in an open backup

  4. All of the above


Correct Option: D
  1. The Default tablespace

  2. The temp tablespace

  3. The SYSTEM tablespace

  4. None of the above


Correct Option: C
  1. in the INTO clause of an INSERT statement

  2. in the GROUP BY clause of a SELECT statement

  3. in the VALUES clause of an INSERT statement

  4. in the ORDER BY clause of a SELECT statement


Correct Option: A
  1. to move data from one data source to another

  2. powerful ETL tool

  3. To design various kind of reports

  4. to provide business information to a wider audience within an organization


Correct Option: A,B,D
  1. Selects the total number of orders from the Sales table, if this number is greater than 5

  2. Selects all customers from table Sales that have made more than 5 orders.

  3. Selects all Customers from the Sales table

  4. None of the above


Correct Option: B
Explanation:

To understand this SQL statement, the user needs to know the basic structure of SQL queries. In this case, the statement selects two fields, Customer and COUNT(Order), from the Sales table. It then groups these fields by Customer and applies a filter using the HAVING clause to only return rows where the count of orders for that customer is greater than 5.

A. This option is incorrect because the statement is not selecting the total number of orders, but rather the count of orders for each customer.

B. This option is correct. The statement is selecting all customers from the Sales table that have made more than 5 orders.

C. This option is incorrect because the statement is not selecting all customers, but rather only those who have made more than 5 orders.

D. This option is incorrect because option B is correct.

Therefore, the answer is: B. Selects all customers from table Sales that have made more than 5 orders.