Question 46

The SYSDATEfunction displays the current Oracle Server date as:
21-MAY-19
You wish to display the date as:
MONDAY, 21 MAY, 2019
Which statement will do this?
SELECT TO_DATE(SYSDATE, 'FMDAY, DD MONTH, YYYY') FROM DUAL;
  • Question 47

    Examine the structure of the PROMOTIONS table:

    Management requires a report of unique promotion costs in each promotion category.
    Which query would satisfy this requirement?
  • Question 48

    View the exhibit and examine the structure in ORDERS and ORDER_ITEMS tables.

    You need to create a view that displays the ORDER_ID, ORDER_DATE, and the total number of items in each order.
    Which CREATE VIEW statement would create the views successfully?
  • Question 49

    View the exhibit and examine the structure of the STORES table.
    STORES table
    NameNull?Type
    ---------------------- -------------
    STORE_IDNUMBER
    NAMEVARCHAR2(100)
    ADDRESSVARCHAR2(200)
    CITYVARCHAR2(100)
    COUNTRYVARCHAR2(100)
    START_DATEDATE
    END_DATEDATE
    PROPERTY_PRICENUMBER
    You want to display the NAME of the store along with the ADDRESS, START_DATE, PROPERTY_PRICE, and the projected property price, which is 115% of property price.
    The stores displayed must have START_DATE in the range of 36 months starting from 01- Jan-2000 and above.
    Which SQL statement would get the desired output?
  • Question 50

    Examine the description of the CUSTOMERS table:

    You need to display last names and credit limits of all customers whose last name starts with A or B in lower or upper case, and whose credit limit is below 1000.
    Examine this partial query:

    Which two WHERE conditions give the required result?