GoConqr has a new look! Let us know what you think.

Quiz

Fundamentals

Umanji 23 questions

Take the quiz

This quiz has a time limit, so it opens in the usual player.

Questions in this quiz (23)

  1. 1Which two statements are true regarding working with dates?
    1. AThe default internal storage of dates is in the numeric format
    2. BThe RR date format automatically calculates the century from the SYSDATE function but allows the user to enter the century if required
    3. CThe default internal storage of dates is in the character format
    4. DThe RR date format automatically calculates the century from the SYSDATE function and does not allow the user to enter the century
  2. 2promo_begin_date is stored in the default date format. Produce a report that provides name, cost, and start date of all promos in the post category that were launched before jan 1, 2000.
    1. Aselect promo_name, promo_cost, promo_begin_date
      from promotions
      where promo_category='post' and promo_begin_date <'01-01-00';
    2. Bselect promo_name, promo_cost, promo_begin_date
      from promotions
      where promo_cost like 'post%' and promo_begin_date <'01-01-2000';
    3. Cselect promo_name, promo_cost, promo_begin_date
      from promotions
      where promo_category like 'p%' and promo_begin_date <'1-JANUARY-2000';
    4. Dselect promo_name, promo_cost, promo_begin_date
      from promotions
      where promo_category like '%post%' and promo_begin_date <'1-JAN-00';
  3. 3Employees:
    Employee_id number(4)
    Last_name varchar2 (25)
    Job_ID varchar2 (10)

    Search for strings 'SA_' in job_ID.
    1. Aselect employee_id, last_name, job_id from employees where job_id like '%SA\_'ESCAPE'\';
    2. Bselect employee_id, last_name, job_id from employees where job_id like '%SA_';
    3. Cselect employee_id, last_name, job_id from employees where job_id like '%SA_'ESCAPE"\";
    4. Dselect employee_id, last_name, job_id from employees where job_id ='%SA_';
  4. 4Which two are valid?
    1. Aselect promo_id, decode(nvl(promo_cost, 0), promo_cost, promo_cost * 0.25, 100) "Discount"
      from promotions;
    2. Bselect promo_id, decode(promo_cost, 10000, decode(promo_category, 'G1', promo_cost *.25, NULL), NULL) "Catcost"
      from promotions;
    3. Cselect promo_id, decode(nullif(promo_cost, 10000), null, promo_cost *.25,'N/A') "Catcost"
      from promotions;
    4. Dselect promo_id, decode(promo_cost, >10000, 'High',<10000, 'Low') "Range"
      from promotions;
  5. 5Which two are true regarding dates?
    1. ADefault internal storage of dates is in the numeric format
    2. BThe RR date format automatically calculates the century from sysdate function but allows the user to enter century if required
    3. CDefault internal storage of dates is in the character format
    4. DThe RR date format automatically calculates the century from sysdate function and does not allow the user to enter century if required
  6. 6Which two are true regarding using and on clauses in table joins?
    1. AOn clause can be used to join tables on columns that have different names but compatible data types
    2. BMaximum one pair of columns can be joined between two tables using the on clause
    3. CBoth using and on clause can be used for equijoins and nonequijoins
    4. DWhere clause can be used to apply additional conditions in the select statement containing the on or the using clause
  7. 7In which two cases would one use an outer join?
    1. ATables being joined have not null columns
    2. BTables being joined have only matched data
    3. CColumns being joined have null values
    4. DTables being joined have only unmatched data
    5. ETables being joined have both matched and unmatched data
  8. 8Which two are true regarding constraints?
    1. AFK cannot contain null values
    2. BColumn with unique constraint can contain null values
    3. CConstraint is enforced only for insert operation on table
    4. DConstraint can be disabled even if constraint column contains data
  9. 9select lpad (salary, 10, '*')
    from emp
    where emp_id=1001;

    If employee 1001 has a salary of 17000, what is the result?
    1. A17000.00
    2. B17000*****
    3. C****170.00
    4. D**17000.00
    5. Eerror
  10. 10Create synonym emp for hr.employees;

    What happens?
    1. AError
    2. BTwo identical tables in HR schema with different names
    3. CA table called employees in HR schema based on EMP table is created
    4. DAlternative name for employees table in HR schema in your schema is created

Information

Description
Quiz on Fundamentals, created by Umanji on 20/04/2015.
Author
Umanji
Language
English
Views
1
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?