Exam 8: Advanced SQL

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The PL/SQL block starts with the ____ clause.

(Multiple Choice)
4.7/5
(25)

In an Oracle sequence,the ____________________ pseudo-column retrieves the current value of a sequence.

(Short Answer)
4.9/5
(38)

A(n)____ is a block of code (containing standard SQL statements and procedural extensions)that is stored and executed at the DBMS server.

(Multiple Choice)
4.8/5
(35)

A trigger is procedural SQL code that is automatically invoked by the RDBMS upon the occurrence of a given data manipulation event.

(True/False)
4.7/5
(34)

How many rows would be returned from a cross join of tables A and B,if A contains 8 rows and B contains 18?

(Multiple Choice)
4.9/5
(30)

____________________ functions allow you to take a value of a given data type and convert it to the equivalent value in another data type.

(Short Answer)
4.9/5
(31)

Just like database triggers,stored procedures are stored in the database.

(True/False)
4.9/5
(33)

A row-level trigger requires use of the ____________________ keywords.This type of trigger is executed once for each row affected by the triggering statement.

(Short Answer)
4.8/5
(41)

Each statement inside the PL/SQL code must end with a period (".").

(True/False)
4.7/5
(33)

If the DBMS does not support the INTERSECT statement,you can use a(n)____________________ subquery to achieve the same result.

(Short Answer)
4.9/5
(27)

Assume you are using the UNION operator to combine the results from two tables with identical structure,CUSTOMER and CUSTOMER_2.The CUSTOMER table contains 10 rows,while the CUSTOMER_2 table contains 7 rows.Customers Dunne and Olowski are included in the CUSTOMER table as well as in the CUSTOMER_2 table.How many records are returned when using the UNION operator?

(Multiple Choice)
4.9/5
(29)

An explicit cursor must return two or more rows.

(True/False)
4.7/5
(31)

The Oracle ____ function compares an attribute or expression with a series of values and returns an associated value or a default value if no match is found.

(Multiple Choice)
4.8/5
(35)

The NEXT command for a cursor is used to retrieve a row from the cursor and place it in the respective PL/SQL variables.

(True/False)
4.8/5
(22)

When using a subquery,the output of a(n)____________________ query is used as the input for the outer query.

(Short Answer)
4.9/5
(31)

A(n)____________________ view is a view that can be used to update attributes in the base table(s)that are used in the view.

(Short Answer)
4.8/5
(30)

To test a trigger,you should use the EXECUTE TRIGGER command.

(True/False)
4.9/5
(33)

When using a(n)____ join,only rows that meet the given criteria are returned.

(Multiple Choice)
4.8/5
(34)

The ____ data type is compatible with NUMBER.

(Multiple Choice)
4.8/5
(25)

A stored function uses the ____ statement to return a value.

(Multiple Choice)
4.8/5
(33)
Showing 41 - 60 of 100
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)