Question 6

Examine these commands which execute successfully in the sequence shown in Sessions S1 and S2:

Now, examine this statement that execute successfully in s1:
S1> SELECT * FROM emp;
Which is true about the result of the select statement?
  • Question 7

    Examine these commands and output:

    Which is true?
  • Question 8

    Your session has sqi_mode set to default.
    Examine this statement which executes successfully:

    Now examine this statement:

    Which two changes are required to the insert statement so that it inserts the correct data?
    * std_id = 10301
    * firstname = Mary
    * lastname = O'Hagen
    * birthdate = November 26, 1997
    * reg_date = the current date
  • Question 9

    Which select statement returns true?
  • Question 10

    The employee table includes these columns:
    e_id INT, e_name VARCHAR (45), dept_id INT salart INT
    You must create a stored function, getMaxSalary(), which returns the maximum salary paid for a given department id.
    Which statement will create the function?
    A)

    B)

    C)

    D)