Filters
Question type

Study Flashcards

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

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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


A) EXIT
B) END
C) RETURN
D) PROCESS

E) A) and B)
F) C) and D)

Correct Answer

verifed

verified

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.


A) NVL
B) TO_CHAR
C) DECODE
D) CONVERT

E) B) and C)
F) All of the above

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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?


A) 7
B) 10
C) 15
D) 17

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

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


A) 8
B) 18
C) 26
D) 144

E) B) and C)
F) All of the above

Correct Answer

verifed

verified

The PL/SQL block starts with the ____ clause.


A) IS
B) OPEN
C) DECLARE
D) BEGIN

E) C) and D)
F) A) and D)

Correct Answer

verifed

verified

An explicit cursor must return two or more rows.

A) True
B) False

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

The ____ data type is compatible with NUMBER.


A) VARCHAR(15)
B) SMALLINT
C) DATE
D) CHAR(10)

E) B) and D)
F) C) and D)

Correct Answer

verifed

verified

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


A) full
B) inner
C) outer
D) set

E) B) and D)
F) None of the above

Correct Answer

verifed

verified

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


A) PSM
B) PLS
C) SQL Statement
D) PMR

E) All of the above
F) C) and D)

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

Showing 41 - 60 of 100

Related Exams

Show Answer