Skip to main content

Section 3 Quiz Oracle Database Programming with SQL

Section 3 Quiz
            (Answer all questions in this section)
                                                           
1.         The PLAYERS table contains these columns:
PLAYERS TABLE:
LAST_NAME VARCHAR2 (20)
FIRST_NAME VARCHAR2 (20)
SALARY NUMBER(8,2)
TEAM_ID NUMBER(4)
MANAGER_ID NUMBER(9)
POSITION_ID NUMBER(4)

You must display the player name, team id, and salary for players whose salary is in the range from 25000 through 100000 and whose team id is in the range of 1200 through 1500. The results must be sorted by team id from lowest to highest and then further sorted by salary from highest to lowest. Which statement should you use to display the desired result?

 Mark for Review
(1) Points
                                   
            SELECT last_name, first_name, team_id, salary
FROM players
WHERE salary BETWEEN 24999.99 AND 100000.01
AND team_id BETWEEN 1200 AND 1500
ORDER BY team_id DESC, salary DESC;

            SELECT last_name, first_name, team_id, salary
FROM players
WHERE salary BETWEEN 25000 AND 100000
AND team_id BETWEEN 1200 AND 1500
ORDER BY team_id, salary DESC;
(*)

            SELECT last_name, first_name, team_id, salary
FROM players
WHERE (salary > 25000 OR salary < 100000)
AND team_id BETWEEN 1200 AND 1500
ORDER BY team_id, salary;

            SELECT last_name, first_name, team_id, salary
FROM players
WHERE salary > 24999.99 AND salary < 100000
AND team_id BETWEEN 1200 AND 1500
ORDER BY team_id ASC, salary DESC;

2.         Evaluate this SQL statement:
SELECT e.employee_id, e.last_name, e.first_name, m.manager_id
FROM employees e, employees m
ORDER BY e.last_name, e.first_name
WHERE e.employee_id = m.manager_id;

This statement fails when executed. Which change will correct the problem?

 Mark for Review
(1) Points
            Remove the table aliases in the WHERE clause.
            Reorder the clauses in the query. (*)
            Include a HAVING clause.
            Remove the table aliases in the ORDER BY clause.

3.         Will the following statement return one row?
SELECT MAX(salary), MIN(Salary), AVG(SALARY)
FROM employees;

 Mark for Review
(1) Points
            No, it is illegal. You cannot use more than one multi-row function in a SELECT statement.
            Yes, it will return the highest salary, the lowest salary, and the average salary from all employees. (*)
            Yes, it will return the highest salary from each employee.
            Yes, it will return the average salary from the employees table.

4.         The function COUNT is a single row function. True or False?            Mark for Review
(1) Points
            True
            False (*)

5.         The EMPLOYEES table contains these columns:
EMPLOYEE_ID NUMBER(9) PK
LAST_NAME VARCHAR2(25)
FIRST_NAME VARCHAR2(25)
DEPARTMENT_ID NUMBER(9)
Compare these two SQL statements:

1.
SELECT DISTINCT department_id DEPT, last_name, first_name
FROM employees
ORDER BY department_id;

2.
SELECT department_id DEPT, last_name, first_name
FROM employees
ORDER BY DEPT;

How will the results differ?

 Mark for Review
(1) Points

            One of the statements will return a syntax error.
            One of the statements will eliminate all duplicate DEPARTMENT_ID values.
            There is no difference in the result between the two statements.
            The statements will sort on different column values. (*)

6.         Which columns can be added to the ORDER BY clause in the following SELECT statement? (Choose Three)
SELECT first_name, last_name, salary, hire_date
FROM employees
WHERE department_id = 50
ORDER BY ?????;

 Mark for Review
(1) Points
                                                           
                                    (Choose all correct answers)   
                                                           
            last_name, first_name (*)
            Any column in the EMPLOYEES table, any expression in the SELECT list or any ALIAS in the SELECT list (*)
            All the columns in the database
            All columns in the EMPLOYEES table (*)
            The table name, EMPLOYEES, which would then automatically sort by all columns in the table

7.         Which SELECT statement should you use to limit the display of product information to those products with a price of less than 50?    Mark for Review
(1) Points
                                   
            SELECT product_id, product_name
FROM products
GROUP BY price < 50;

            SELECT product_id, product_name
FROM products
HAVING price < 50;

            SELECT product_id, product_name
FROM products
WHERE price < 50;
(*)

            SELECT product_id, product_name
FROM products
WHERE price < 50.00
GROUP BY price;

            SELECT product_id, product_name
FROM products
WHERE price <= 50;

8.         Evaluate this SQL statement:
SELECT product_id, product_name, price
FROM products
ORDER BY product_name, price;

What occurs when the statement is executed?

 Mark for Review
(1) Points

            The results are sorted alphabetically and then numerically. (*)
            The results are sorted numerically only.
            The results are sorted numerically and then alphabetically.
            The results are sorted alphabetically only.

9.         Evaluate this SELECT statement:
SELECT last_name, first_name, salary
FROM employees;

How will the results of this query be sorted?

 Mark for Review
(1) Points
                                   
            The results will be sorted ascending by LAST_NAME and FIRST_NAME only.
            The database will display the rows in whatever order it finds it in the database, so no particular order. (*)
            The results will be sorted ascending by the LAST_NAME column only.
            The results will be sorted ascending by LAST_NAME, FIRST_NAME, and SALARY.

10.       Evaluate this SELECT statement:
SELECT *
FROM employees
WHERE department_id = 34
OR department_id = 45
OR department_id = 67;

Which operator is the equivalent of the OR conditions used in this SELECT statement?

 Mark for Review
(1) Points
                                   
            IN (*)
            AND
            BETWEEN AND ...
            LIKE

11.       From left to right, what is the correct order of Precedence?     Mark for Review
(1) Points
                                   
            Arithmetic, Concatenation, Comparison, OR (*)
            Arithmetic, NOT, Logical, Comparison
            NOT, AND, OR, Arithmetic
            Arithmetic, NOT, Concatenation, Logical

12.       What will be the results of the following selection?
SELECT *
FROM employees
WHERE last_name NOT LIKE 'A%' AND last_name NOT LIKE 'B%'

 Mark for Review
(1) Points
                                   
            No rows will be returned. There is a syntax error
            All last names that do not begin with A or B (*)
            All rows will be returned
            All last names that begin with A or B

13.       The ORDER BY clause always comes last. True or False?      Mark for Review
(1) Points

            True (*)
            False

14.       Which symbol in the WHERE clause means "Not Equal To"? (Choose Two)  Mark for Review
(1) Points
                                    (Choose all correct answers)   
            =+
            <> (*)
            ><
            NOT IN (..) (*)

15.       Which comparison condition means "Less Than or Equal To"?           Mark for Review
(1) Points

            ">="
            "+<"
            "<=" (*)
            "=)"

1.         You attempt to query the database with this SQL statement:
SELECT product_id "Product Number", category_id "Category", price "Price"
FROM products
WHERE "Category" = 5570
ORDER BY "Product Number";

This statement fails when executed. Which clause contains a syntax error?

 Mark for Review
(1) Points

            WHERE "Category" = 5570 (*)
            SELECT product_id "Product Number", category_id "Category", price "price"
            FROM products
            ORDER BY "Product Number";

2.         Which of the following is true of the ORDER BY clause:? (Choose Two)      Mark for Review
(1) Points
                                    (Choose all correct answers)   

            Displays the fetched rows in no particular order
            Must be the last clause of the SQL statement (*)
            Defaults to a descending order (DESC)
            Defaults to an ascending order (ASC) (*)

3.         Evaluate this SELECT statement:
SELECT first_name, last_name, email
FROM employees
ORDER BY last_name;

Which statement is true?

 Mark for Review
(1) Points

            The rows will be sorted alphabetically by the FIRST_NAME and then the LAST_NAME values
            The rows will be sorted in reverse alphabetical order by the LAST_NAME values.
            The rows will not be sorted.
            The rows will be sorted alphabetically by the LAST_NAME values. (*)

4.         Evaluate this SELECT statement:
SELECT last_name, first_name, email
FROM employees
ORDER BY email;

If the EMAIL column contains null values, which statement is true?

 Mark for Review
(1) Points

            Null email values will be displayed first in the result.
            Null email values will be displayed last in the result. (*)
            Null email values will not be displayed in the result.
            The result will not be sorted.

5.         Which columns can be added to the ORDER BY clause in the following SELECT statement? (Choose Three)
SELECT first_name, last_name, salary, hire_date
FROM employees
WHERE department_id = 50
ORDER BY ?????;

 Mark for Review
(1) Points
                                    (Choose all correct answers)   
            All columns in the EMPLOYEES table (*)
            The table name, EMPLOYEES, which would then automatically sort by all columns in the table
            Any column in the EMPLOYEES table, any expression in the SELECT list or any ALIAS in the SELECT list (*)
            last_name, first_name (*)
            All the columns in the database

6.         The following statement represents a multi-row function. True or False?
SELECT MAX(salary)
FROM employees

 Mark for Review
(1) Points

            True (*)
            False

7.         Evaluate this SQL statement:
SELECT e.employee_id, e.last_name, e.first_name, m.manager_id
FROM employees e, employees m
ORDER BY e.last_name, e.first_name
WHERE e.employee_id = m.manager_id;

This statement fails when executed. Which change will correct the problem?

 Mark for Review
(1) Points

            Include a HAVING clause.
            Remove the table aliases in the WHERE clause.
            Reorder the clauses in the query. (*)
            Remove the table aliases in the ORDER BY clause.

8.         The conversion function TO_CHAR is a single row function. True or False? Mark for Review
(1) Points

            True (*)
            False

9.         The following statement represents a multi-row function. True or False?
SELECT UPPER(last_name)
FROM employees;

 Mark for Review
(1) Points

            True
            False (*)

10.       The function COUNT is a single row function. True or False?            Mark for Review
(1) Points

            True
            False (*)

11.       Which of the following statements best describes the rules of precedence when using SQL?  Mark for Review
(1) Points

            The order in which the columns are displayed
            The order in which the expressions are sorted
            The order in which the operators are returned
            The order in which the expressions are evaluated and calculated (*)
            All of the above

12.       Which of the following best describes the meaning of the LIKE operator?     Mark for Review
(1) Points

            Match a character pattern. (*)
            To test for values in a list.
            Display rows based on a range of values.
            To find Null values.

13.       Which statement about the ORDER BY clause is true?            Mark for Review
(1) Points

            You can use a column alias in the ORDER BY clause. (*)
            The default sort order of the ORDER BY clause is descending.
            The ORDER BY clause can only contain columns that are included in the SELECT list.
            The ORDER BY clause should immediately precede the FROM clause in a SELECT statement

14.       From left to right, what is the correct order of Precedence?     Mark for Review
(1) Points

            Arithmetic, NOT, Concatenation, Logical
            Arithmetic, NOT, Logical, Comparison
            Arithmetic, Concatenation, Comparison, OR (*)
            NOT, AND, OR, Arithmetic

15.       Find the clause that will give the same results as:
SELECT *
FROM d_cds
WHERE cd_id NOT IN(90, 91, 92);

 Mark for Review
(1) Points

            WHERE cd_id <=90 and cd_id >=92;
            WHERE cd_id NOT LIKE (90, 91, 92);
            WHERE cd_id != 90 or cd_id != 91 or cd_id!= 92;
            WHERE cd_id != 90 and cd_id != 91 and cd_id != 92; (*)

1.         The function COUNT is a single row function. True or False?            Mark for Review
(1) Points

            True
            False (*)

2.         The PLAYERS table contains these columns:
PLAYERS TABLE:
LAST_NAME VARCHAR2 (20)
FIRST_NAME VARCHAR2 (20)
SALARY NUMBER(8,2)
TEAM_ID NUMBER(4)
MANAGER_ID NUMBER(9)
POSITION_ID NUMBER(4)

You want to display all players' names with position 6900 or greater.
You want the players names to be displayed alphabetically by last name and then by first name.
Which statement should you use to achieve the required results?

 Mark for Review
(1) Points

            SELECT last_name, first_name
FROM players
WHERE position_id > 6900
ORDER BY last_name, first_name;

            SELECT last_name, first_name
FROM players
WHERE position_id >= 6900
ORDER BY last_name DESC, first_name;

            SELECT last_name, first_name
FROM players
WHERE position_id >= 6900
ORDER BY last_name, first_name;
(*)

            SELECT last_name, first_name
FROM players
WHERE position_id <= 6900
ORDER BY last_name, first_name;

3.         The EMPLOYEES table contains these columns:
EMPLOYEE_ID NUMBER(9) PK
LAST_NAME VARCHAR2(25)
FIRST_NAME VARCHAR2(25)
DEPARTMENT_ID NUMBER(9)
Compare these two SQL statements:

1.
SELECT DISTINCT department_id DEPT, last_name, first_name
FROM employees
ORDER BY department_id;

2.
SELECT department_id DEPT, last_name, first_name
FROM employees
ORDER BY DEPT;

How will the results differ?

 Mark for Review
(1) Points

            One of the statements will return a syntax error.
            There is no difference in the result between the two statements.
            One of the statements will eliminate all duplicate DEPARTMENT_ID values.
            The statements will sort on different column values. (*)

4.         The following statement represents a multi-row function. True or False?
SELECT MAX(salary)
FROM employees

 Mark for Review
(1) Points

            True (*)
            False

5.         The PLAYERS table contains these columns:
PLAYERS TABLE:
LAST_NAME VARCHAR2 (20)
FIRST_NAME VARCHAR2 (20)
SALARY NUMBER(8,2)
TEAM_ID NUMBER(4)
MANAGER_ID NUMBER(9)
POSITION_ID NUMBER(4)

You must display the player name, team id, and salary for players whose salary is in the range from 25000 through 100000 and whose team id is in the range of 1200 through 1500. The results must be sorted by team id from lowest to highest and then further sorted by salary from highest to lowest. Which statement should you use to display the desired result?

 Mark for Review
(1) Points

            SELECT last_name, first_name, team_id, salary
FROM players
WHERE salary BETWEEN 25000 AND 100000
AND team_id BETWEEN 1200 AND 1500
ORDER BY team_id, salary DESC;
(*)

            SELECT last_name, first_name, team_id, salary
FROM players
WHERE (salary > 25000 OR salary < 100000)
AND team_id BETWEEN 1200 AND 1500
ORDER BY team_id, salary;

            SELECT last_name, first_name, team_id, salary
FROM players
WHERE salary > 24999.99 AND salary < 100000
AND team_id BETWEEN 1200 AND 1500
ORDER BY team_id ASC, salary DESC;

            SELECT last_name, first_name, team_id, salary
FROM players
WHERE salary BETWEEN 24999.99 AND 100000.01
AND team_id BETWEEN 1200 AND 1500
ORDER BY team_id DESC, salary DESC;

6.         Which statement about the ORDER BY clause is true?            Mark for Review
(1) Points

            The ORDER BY clause can only contain columns that are included in the SELECT list.
            You can use a column alias in the ORDER BY clause. (*)
            The default sort order of the ORDER BY clause is descending.
            The ORDER BY clause should immediately precede the FROM clause in a SELECT statement

7.         Which of the following best describes the meaning of the LIKE operator?     Mark for Review
(1) Points

            To find Null values.
            Match a character pattern. (*)
            Display rows based on a range of values.
            To test for values in a list.

8.         Which of the following are TRUE regarding the logical AND operator?          Mark for Review
(1) Points

            TRUE AND FALSE return FALSE (*)
            TRUE AND TRUE return FALSE
            TRUE AND FALSE return TRUE
            FALSE AND TRUE return NULL

9.         Which statement about the default sort order is true?  Mark for Review
(1) Points

            Character values are displayed in reverse alphabetical order.
            The lowest numeric values are displayed last.
            The earliest date values are displayed first. (*)
            Null values are displayed first.

10.       What will be the results of the following selection?
SELECT *
FROM employees
WHERE last_name NOT LIKE 'A%' AND last_name NOT LIKE 'B%'

 Mark for Review
(1) Points

            All last names that begin with A or B
            All last names that do not begin with A or B (*)
            No rows will be returned. There is a syntax error
            All rows will be returned

11.       Evaluate this SELECT statement:
SELECT employee_id, last_name, first_name, salary 'Yearly Salary'
FROM employees
WHERE salary IS NOT NULL
ORDER BY last_name, 3;

Which clause contains an error?

 Mark for Review
(1) Points

            FROM employees
            SELECT employee_id, last_name, first_name, salary 'Yearly Salary' (*)
            WHERE salary IS NOT NULL
            ORDER BY last_name, 3;

12.       Which of the following is true of the ORDER BY clause:? (Choose Two)      Mark for Review
(1) Points
                                    (Choose all correct answers)   

            Defaults to an ascending order (ASC) (*)
            Must be the last clause of the SQL statement (*)
            Defaults to a descending order (DESC)
            Displays the fetched rows in no particular order

13.       A column alias can be specified in an ORDER BY Clause. True or False?      Mark for Review
(1) Points

            True (*)
            False

14.       Evaluate this SELECT statement:
SELECT last_name, first_name, email
FROM employees
ORDER BY email;

If the EMAIL column contains null values, which statement is true?

 Mark for Review
(1) Points

            Null email values will be displayed last in the result. (*)
            The result will not be sorted.
            Null email values will not be displayed in the result.
            Null email values will be displayed first in the result.

15.       You attempt to query the database with this SQL statement:
SELECT product_id "Product Number", category_id "Category", price "Price"
FROM products
WHERE "Category" = 5570
ORDER BY "Product Number";

This statement fails when executed. Which clause contains a syntax error?

 Mark for Review
(1) Points

            WHERE "Category" = 5570 (*)
            ORDER BY "Product Number";
            FROM products

            SELECT product_id "Product Number", category_id "Category", price "price"

Comments

  1. Replies
    1. Deni Ace: Section 3 Quiz Oracle Database Programming With Sql >>>>> Download Now

      >>>>> Download Full

      Deni Ace: Section 3 Quiz Oracle Database Programming With Sql >>>>> Download LINK

      >>>>> Download Now

      Deni Ace: Section 3 Quiz Oracle Database Programming With Sql >>>>> Download Full

      >>>>> Download LINK zs

      Delete
  2. Evaluate this SELECT statement:
    SELECT last_name, first_name, salary
    FROM employees;

    How will the results of this query be sorted?

    ReplyDelete
    Replies
    1. The database will display the rows in whatever order it finds it in the database, so no particular order.

      Delete
  3. Which of the following would be returned by this SQL statement:
    SELECT First_name, last_name, department_id
    FROM employees
    WHERE department_id IN(50,80)
    AND first_name LIKE ' C% '
    OR last_name LIKE ' %s% '

    FIRST_NAME LAST_NAME DEPARTMENT_ID
    Shelly Higgins 110

    FIRST_NAME LAST_NAME DEPARTMENT_ID
    Curtis Davies 50

    FIRST_NAME LAST_NAME DEPARTMENT_ID
    Randall Matos 50

    FIRST_NAME LAST_NAME DEPARTMENT_ID
    Michael Hartstein 20

    All of the above (*)

    ReplyDelete
  4. You query the database with this SQL statement:
    SELECT price
    FROM products
    WHERE price IN(1, 25, 50, 250)
    AND (price BETWEEN 25 AND 40 OR price > 50);

    Which two values could the statement return? (Choose two.)

    10
    25 (*)
    50
    250 (*)
    1

    Which logical operator returns TRUE if either condition is true?

    NOT
    OR (*)
    AND
    BOTH

    ReplyDelete
  5. Thanks for proving valuable information on Oracle SQL, but also I want know about Salesforce Training

    ReplyDelete
  6. Deni Ace: Section 3 Quiz Oracle Database Programming With Sql >>>>> Download Now

    >>>>> Download Full

    Deni Ace: Section 3 Quiz Oracle Database Programming With Sql >>>>> Download LINK

    >>>>> Download Now

    Deni Ace: Section 3 Quiz Oracle Database Programming With Sql >>>>> Download Full

    >>>>> Download LINK

    ReplyDelete
  7. Which statement about the logical operators is true?
    The order of operator precedence is AND, NOT, and OR.
    The order of operator precedence is NOT, AND, and OR. (*)
    The order of operator precedence is NOT, OR, and AND.
    The order of operator precedence is AND, OR, and NOT.

    ReplyDelete
  8. Will the following statement return one row?
    SELECT MAX(salary), MIN(Salary), AVG(SALARY)
    FROM employees;

    Yes, it will return the highest salary, the lowest salary, and the average salary from all employees. (*)
    Yes, it will return the average salary from the employees table.
    Yes, it will return the highest salary from each employee.
    No, it is illegal. You cannot use more than one multi-row function in a SELECT statement.

    ReplyDelete
  9. Evaluate this SELECT statement:
    SELECT *
    FROM employees
    WHERE department_id = 34
    OR department_id = 45
    OR department_id = 67;

    Which operator is the equivalent of the OR conditions used in this SELECT statement?

    BETWEEN AND ...
    LIKE
    AND
    IN (*)

    ReplyDelete
  10. Which clause would you include in a SELECT statement to sort the rows returned by the LAST_NAME column?
    WHERE
    HAVING
    FROM
    ORDER BY (*)

    ReplyDelete
  11. Which of the following is true of the ORDER BY clause? (Choose Two)
    (Choose all correct answers)
    Displays the fetched rows in no particular order
    Must be the last clause of the SQL statement (*)
    Defaults to a descending order (DESC)
    Defaults to an ascending order (ASC) (*)

    ReplyDelete
  12. Evaluate this SELECT statement:
    SELECT last_name, first_name, department_id, manager_id
    FROM employees;

    You need to sort data by manager id values and then alphabetically by employee last name and first name values. Which ORDER BY clause could you use?

    ORDER BY last_name, first_name, manager_id
    ORDER BY manager_id, first_name, last_name
    ORDER BY manager_id, last_name, first_name (*)
    ORDER BY department_id, last_name

    ReplyDelete
  13. Evaluate this SELECT statement:
    SELECT *
    FROM employees
    WHERE salary > 30000
    AND department_id = 10
    OR email IS NOT NULL;

    Which statement is true?

    The OR condition will be evaluated before the AND condition.
    The OR and AND conditions have the same precedence and will be evaluated from left to right
    The AND condition will be evaluated before the OR condition. (*)
    The OR and AND conditions have the same precedence and will be evaluated from right to left

    ReplyDelete
  14. You need to create a report to display all employees that were hired on or before January 1, 1996. The data should display in this format:
    Employee Start Date and Salary
    14837 - Smith 10-May-1992 / 5000
    Which SELECT statement could you use?

    SELECT employee_id || - || last_name "Employee",
    hire_date || / || salary "Start Date and Salary
    FROM employees
    WHERE hire_date <= '01-Jan-1996';
    SELECT employee_id ||'"- "|| last_name "Employee",
    hire_date ||" / "|| salary Start Date and Salary"
    FROM employees
    WHERE hire_date <= '01-Jan-1996';
    SELECT employee_id ||' - '|| last_name 'Employee',
    hire_date ||' / '|| salary 'Start Date and Salary"
    FROM employees
    WHERE hire_date <= '01-Jan-1996';
    SELECT employee_id ||' - '|| last_name "Employee",
    hire_date ||' / '|| salary "Start Date and Salary"
    FROM employees
    WHERE hire_date <= '01-Jan-1996'; (*)
    SELECT employee_id ||' '|| last_name "Employee",
    hire_date ||' '|| salary "Start Date and Salary"
    FROM employees
    WHERE hire_date <= 01-Jan-1996';

    ReplyDelete
  15. Which of the following are examples of logical operators that might be used in a WHERE clause. (Choose Two)
    (Choose all correct answers)
    AND, OR (*)
    < >, =, <=, >=, <>
    NOT (*)
    LIKES
    All of the above

    ReplyDelete
  16. You need to change the default sort order of the ORDER BY clause so that the data is displayed in reverse alphabetical order. Which keyword should you include in the ORDER BY clause?
    SORT
    DESC (*)
    ASC
    CHANGE

    ReplyDelete
  17. Which of the following is earliest in the rules of precedence?
    Arithmetic operator (*)
    Logical condition
    Comparison condition
    Concatenation operator

    ReplyDelete

Post a Comment

Popular posts from this blog

Section 6 Quiz Oracle Database Programming with SQL

Section 6 Quiz             (Answer all questions in this section)                                                             1.         Given the following descriptions of the employees and jobs tables, which of the following scripts will display each employee ï¾’ s possible minimum and maximum salaries based on their job title? EMPLOYEES Table: Name   Null?    Type EMPLOYEE_ID          NOT NULL     NUMBER (6) FIRST_NAME             VARCHAR2 (20) LAST_NAME  NOT NULL     VARCHAR2 (25) EMAIL NOT NULL     VARCHAR2 (25) PHONE_NUMBER                  VARCHAR2 (20) HIRE_DATE   NOT NULL     DATE JOB_ID           NOT NULL     VARCHAR2 (10) SALARY                     NUMBER (8,2) COMMISSION_PCT                NUMBER (2,2) MANAGER_ID                       NUMBER (6) DEPARTMENT_ID                 NUMBER (4) JOBS Table: Name   Null?    Type JOB_ID           NOT NULL     VARCHAR2 (10) JOB_TITLE     NOT NULL     VARCHAR2 (35) MIN_SALARY                      

Section 10 Quiz Database Programming With SQL

Section 10 Quiz             (Answer all questions in this section) 1.         A multiple-row operator expects how many values?   Mark for Review (1) Points             One or more (*)             Only one             Two or more             None 2.         The salary column of the f_staffs table contains the following values: 4000 5050 6000 11000 23000 Which of the following statements will return the last_name and first_name of those employees who earn more than 5000?  Mark for Review (1) Points             SELECT last_name, first_name FROM f_staffs WHERE salary IN (SELECT last_name, first_name FROM f_staffs WHERE salary <5000 o:p="">             SELECT last_name, first_name FROM f_staffs WHERE salary = (SELECT salary FROM f_staffs WHERE salary < 5000);             SELECT last_name, first_name FROM f_staffs WHERE salary IN (SELECT salary FROM f_staffs WHERE salary > 5000); (*)             SELEC

Section 2 Quiz Database Design Oracle

Section 2 Quiz             (Answer all questions in this section) 1.         An Entity Relationship model is independent of the hardware or software used for implementation. True or False?  Mark for Review (1) Points             True (*)             False 2.         A well structured ERD will show only some parts of the finished data model. You should never try to model the entire system in one diagram, no matter how small the diagram might be. True or False?           Mark for Review (1) Points             True             False (*) 3.         The purpose of an ERD is to document the proposed system and facilitate discussion and understanding of the requirements captured by the developer. True or False?          Mark for Review (1) Points             True (*)             False 4. Documenting Business Requirements helps developers control the scope of the system and prevents users from claiming that the new system does not meet their business req