Filters
Question type

Study Flashcards

The ____________________ statement can be used to combine rows from two queries,returning only the rows that appear in both sets.

Correct Answer

verifed

verified

An alternate syntax for a join is SELECT column-list FROM table1 JOIN table2 ____________________ (common-column).

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

The PL/SQL block starts with the ____ clause.


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

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

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

A(n)____________________ join returns all rows with matching values in the matching columns and eliminates duplicate columns.

Correct Answer

verifed

verified

The ____________________ outer join returns not only the rows matching the join condition (that is,rows with matching values in the common column),but also the rows in the left-side table with unmatched values in the right-side table.

Correct Answer

verifed

verified

left

An explicit cursor must return two or more rows.

A) True
B) False

Correct Answer

verifed

verified

False

The ____ data type is compatible with NUMBER.


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

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

Correct Answer

verifed

verified

The ____ operator could be used in place of MINUS if the RDBMS does not support it.


A) IN
B) NOT IN
C) AND
D) UNION

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

Correct Answer

verifed

verified

What are SQL functions and when are they used? Provide a couple of examples of situations in which they are necessary.

Correct Answer

verifed

verified

SQL functions are very useful tools.You'...

View Answer

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

Correct Answer

verifed

verified

When using the Oracle TO_DATE function,the code ____ represents a three-letter month name.


A) MON
B) MM3
C) MONTH
D) MM

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

Correct Answer

verifed

verified

The syntax for the UNION query is ____.


A) query + query
B) UNION (query,query)
C) UNION: query query
D) query UNION query

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

Correct Answer

verifed

verified

When using the Oracle TO_NUMBER function to convert a character string into a number,____ represents a digit.


A) 0
B) 9
C) $
D) #

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

Correct Answer

verifed

verified

"Union-compatible" means that the ____.


A) names of the relation attributes can be different,but the data types must be identical
B) names of the relation attributes must be the same,but the data types can be different
C) names of the relation attributes must be the same and their data types must be identical
D) number of attributes must be the same,but the names and data types can be different

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

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) B) and C)
F) A) and D)

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

IN

A(n)____________________ pools multiple transactions into a single batch to update a master table field in a single operation.

Correct Answer

verifed

verified

batch upda...

View Answer

In subquery terminology,the first query in the SQL statement is known as the ____ query.


A) outer
B) left
C) inner
D) base

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

Correct Answer

verifed

verified

Showing 1 - 20 of 100

Related Exams

Show Answer