20 Questions

Oracle database sql Quiz

1 :-

Examine the description of the PROMOTIONS table:

name                              null                         type

promo_id                not null                      number (6)

promo_name         not null                      varchar2(30)

promo_category    not null                      varchar2(30)

promo_cost           not null                        number (10,2)

You want to display the unique promotion costs in each promotion category. Which two queries can be used? (Choose two.)

2 :-

Which three queries execute successfully? (Choose three.)

3 :-

You create a table named 123. Which statement runs successfully?

4 :-

Which three statements are true about single-row functions? (Choose three.)

5 :-

Examine the description of the PRODUCTS table:

name                                    null                                      type

product_id                       not null                               number(2)

product_name                                                            varchar2(10)

unit_price                                                                    number(3)

surcharge                                                                    varchar2(2)

expiry_date                                                                 date

delivery_date                                                              date

Which three queries use valid expressions? (Choose three.)

6 :-

Which three statements are true about views in an Oracle Database? (Choose three.)

7 :-

Which two actions can you perform with object privileges? (Choose two.)

 

8 :-

Examine this SQL statement:

update orders 0

set customer _name=

(select cast _last  _name

from customers

where customer_id = 0 customer_id);

Which two are true? (Choose two.)

9 :-

Examine this list of requirements for a sequence: 1. Name: EMP_SEQ 2. First value returned: 1 3. Duplicates are never permitted. 4. Provide values to be inserted into the EMPLOYEES.EMPLOYEE_ID column. 5. Reduce the chances of gaps in the values. Which two statements will satisfy these requirements? (Choose two.)

10 :-

Which two statements are true about the COUNT function? (Choose two.)

11 :-

Which three are true about dropping columns from a table? (Choose three.)

12 :-

Which two statements are true about conditional INSERT ALL? (Choose two.)

13 :-

The SALES table has columns PROD_ID and QUANTITY_SOLD of data type NUMBER. Which two queries execute successfully? (Choose two.)

14 :-

Examine this partial query:

Which GROUP BY clause must be added so the query returns the results shown?

15 :-

You own table DEPARTMENTS, referenced by views, indexes, and synonyms. Examine this command which executes successfully: DROP TABLE departments PURGE; Which three statements are true? (Choose three.)

16 :-

Examine the data in the INVOICES table:

INVOICE ID                          CURRENCY  CODE                     RAISED  _DATE

1                                               EUR                                             01-JAN-2019

2                                               USD                                             01- FEB -2019

3                                               JPY                                               31-MAR-2019

CURRENCY _ CODE

JPY

GPB

CAD

EUR

USD

Examine the data in the CURRENCIES table:

A)    SELECT   *   FROM CURRENCIES

         WHERE NOT EXISTS (

         SELECT NULL FROM INVOICES WHERE CURRENCY-CODE =CURRENCY_CODE);

B)   SELECT  * FROM CURRENCIES

MINUS

SELECT * FROM INVOICES ;

C)  SELECT CURRENCY -CODE FROM CURRENCIES

MINUS

SELECT CURRENCY _CODE FROM INVOICES

D)   SELECT CURRENCY _CODE FROM CURRENCIES

INTERSECT 

SELECT CURRENCY _ CODE FROM INVOICES ;

Which query returns the currencies in CURRENCIES that are not present in INVOICES?

 

 

17 :-

The STORES table has a column START_DATE of data type DATE, containing the date the row was inserted. You only want to display details of rows where START_DATE is within the last 25 months. Which WHERE clause can be used?

18 :-

Examine this statement:

SELECT 1 AS ID, ‘JOHN’ AS FIRST _NAME

FROM DUAL

UNION

SELECT 1, ‘JOHN ’  AS NAME 

FROM DUAL

ORDER BY 1;

What is returned upon execution?

19 :-

Which three actions can you perform on an existing table containing data? (Choose three.)

20 :-

The EMPLOYEES table contains columns EMP_ID of data type NUMBER and HIRE_DATE of data type DATE. You want to display the date of the first Monday after the completion of six months since hiring. The NLS_TERRITORY parameter is set to AMERICA in the session and, therefore, Sunday is the first day of the week.Which query can be used?

Mock Test Completion Certificate
You scored 0 out of 20 questions.

🏅

For your extraordinary service and contributions to your profession.
We are delighted in providing this certificate to you.

Tips for improving your score:

  • Make sure to read the questions and answer choices carefully.
  • Don't try to answer any choices that you don't know. It's better to skip a question.