Deck 8: Advanced SQL

Full screen (f)
exit full mode
Question
One of the disadvantages of stored procedures is that they increase network traffic.
Use Space or
up arrow
down arrow
to flip the card.
Question
Just like database triggers,stored procedures are stored in the database.
Question
Procedural code is executed on the database client machine.
Question
Every PL/SQL block must be given a name.
Question
In Oracle,you can use the SQL*Plus command SHOW ERRORS to help you diagnose errors found in PL/SQL blocks.
Question
To test a trigger,you should use the EXECUTE TRIGGER command.
Question
To remedy the lack of procedural functionality in SQL,and to provide some standardization within the many vendor offerings,the SQL-99 standard defined the use of persistent stored modules.
Question
Stored procedures help reduce code duplication by means of code isolation and code sharing.
Question
Each statement inside the PL/SQL code must end with a period (".").
Question
The most useful feature of PL/SQL blocks is that they let you create code that can be named,stored,and executed by the DBMS.
Question
Triggers can only be used to update table values.
Question
UNION,INTERSECT,and MINUS work properly only if relations are union-compatible,which means that the names of the relation attributes and their data types must be different.
Question
PL/SQL blocks have a section used to declare variables.
Question
Automating business procedures and automatically maintaining data integrity and consistency are trivial in a modern business environment.
Question
SQL supports the conditional execution of procedures (if..then...else statements)that are typically supported by a programming language.
Question
PL/SQL functions are executed in the same way as functions such as MIN and AVG.
Question
A trigger is executed as part of the transaction that triggered it.
Question
One of the major advantages of stored procedures is that they can be used to encapsulate and represent business transactions.
Question
A trigger is procedural SQL code that is automatically invoked by the RDBMS upon the occurrence of a given data manipulation event.
Question
A statement-level trigger is assumed if you omit the FOR EACH ROW keywords.
Question
"Linked SQL" is a term used to refer to SQL statements that are contained within an application programming language such as COBOL,C++,ASP,Java,or ColdFusion.
Question
"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
Question
An implicit cursor is automatically created in procedural SQL when the SQL statement returns only one value.
Question
An explicit cursor must return two or more rows.
Question
Assume you are using the INTERSECT 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 INTERSECT operator?

A) 0
B) 2
C) 7
D) 10
Question
The ____ data type is compatible with NUMBER.

A) VARCHAR(15)
B) SMALLINT
C) DATE
D) CHAR(10)
Question
The syntax for the UNION query is ____.

A) query + query
B) UNION (query,query)
C) UNION: query query
D) query UNION query
Question
Assume you are using the UNION ALL 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 ALL operator?

A) 7
B) 10
C) 15
D) 17
Question
Cursor-style processing involves retrieving data from the cursor,one row at a time.
Question
The ____ query combines rows from two queries and excludes duplicates.

A) UNION
B) UNION ALL
C) INTERSECT
D) MINUS
Question
The ____ data type is considered compatible with VARCHAR(35).

A) DATE
B) INT
C) TINYINT
D) CHAR(15)
Question
The ____ statement in SQL combines rows from two queries and returns only the rows that appear in the first set but not in the second.

A) UNION
B) UNION ALL
C) INTERSECT
D) MINUS
Question
The NEXT command for a cursor is used to retrieve a row from the cursor and place it in the respective PL/SQL variables.
Question
A stored function is another name for a stored procedure.
Question
You can declare variables inside a stored procedure.
Question
Stored procedures must have at least one argument.
Question
____ is a relational set operator.

A) MINUS
B) PLUS
C) ALL
D) EXISTS
Question
Cursors are held in a reserved memory area in the client computer.
Question
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
Question
Stored procedures are executed using the EXEC command.
Question
The Oracle ____ function returns the current date.

A) DATE
B) SYSDATE
C) CURRENT_DATE
D) TO_DATE
Question
In Oracle,the ____ function converts a date to a character string.

A) CONVERT()
B) TO_DATE
C) TO_CHAR()
D) TO_STRING()
Question
The ____ operator could be used in place of INTERSECT if the RDBMS does not support it.

A) IN
B) OF
C) AND
D) UNION
Question
If you wish to create an inner join,but the two tables do not have a commonly named attribute,you can use a(n)____ clause.

A) OF
B) USING
C) HAS
D) JOIN ON
Question
A ____ join returns rows with matching values and includes all rows from both tables (T1 and T2)with unmatched values.

A) natural
B) cross
C) full outer
D) left outer
Question
A(n)____ join will select only the rows with common values in the common attribute(s).

A) natural
B) cross
C) full
D) outer
Question
The following SQL statement uses a(n)____.
SELECT P_CODE,P_DESCRIPT,P_PRICE,V_NAME
FROM PRODUCT,VENDOR
WHERE PRODUCT.V_CODE = VENDOR.V_CODE;

A) set operator
B) natural join
C) "old-style" join
D) procedural statement
Question
When using the Oracle TO_DATE function,the code ____ represents a three-letter month name.

A) MON
B) MM3
C) MONTH
D) MM
Question
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
Question
The statement SELECT * FROM T1,T2 produces a(n)____ join.

A) cross
B) natural
C) equi-
D) full
Question
In a subquery,the ____ query is executed first.

A) left
B) right
C) inner
D) outer
Question
A(n)____ join returns not only the rows matching the join condition (that is,rows with matching values in the common columns)but also the rows with unmatched values.

A) outer
B) inner
C) equi-
D) cross
Question
The ____ function returns the current system date in MS Access.

A) TO_DATE()
B) SYSDATE()
C) DATE()
D) TODAY()
Question
In subquery terminology,the first query in the SQL statement is known as the ____ query.

A) outer
B) left
C) inner
D) base
Question
The ANSI standard defines ____ type(s)of outer join(s)

A) one
B) two
C) three
D) four
Question
The syntax for a left outer join is ____.

A) SELECT column-list
FROM table1 OUTER JOIN table2 LEFT
WHERE join-condition
B) SELECT column-list
FROM table1 LEFT [OUTER] JOIN table2
ON join-condition
C) SELECT column-list
WHERE LEFT table1 = table 2
D) SELECT column-list
FROM table1 LEFT table2 [JOIN]
WHERE join-condition
Question
When using a(n)____ join,only rows that meet the given criteria are returned.

A) full
B) inner
C) outer
D) set
Question
Assume you are using the MINUS 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 MINUS operator?

A) 0
B) 2
C) 8
D) 10
Question
A ____ is a query (SELECT statement)inside a query.

A) subquery
B) range query
C) join
D) set query
Question
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
Question
If the DBMS does not support the INTERSECT statement,you can use a(n)____________________ subquery to achieve the same result.
Question
A stored function uses the ____ statement to return a value.

A) EXIT
B) END
C) RETURN
D) PROCESS
Question
The Oracle string concatenation function is ____.

A) CONCAT
B) +
C) ||
D) &&
Question
When using the Oracle TO_NUMBER function to convert a character string into a number,____ represents a digit.

A) 0
B) 9
C) $
D) #
Question
The ____________________ statement can be used to combine rows from two queries,returning only the rows that appear in both sets.
Question
Oracle recommends ____ for creating audit logs.

A) triggers
B) stored procedures
C) stored functions
D) tables
Question
The ____________________ statement in SQL combines rows from two queries and returns only the rows that appear in the first set but not in the second.
Question
The PL/SQL block starts with the ____ clause.

A) IS
B) OPEN
C) DECLARE
D) BEGIN
Question
The ____________________ statement combines rows from two or more queries without including duplicate rows.
Question
A(n)____________________ join returns the Cartesian product JOIN of T1 and T2 and is sometimes called "old style".
Question
An alternate syntax for a join is SELECT column-list FROM table1 JOIN table2 ____________________ (common-column).
Question
The Oracle equivalent to an MS Access AutoNumber is a(n)____.

A) auto-number
B) sequence
C) TO_NUMBER function
D) trigger
Question
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
Question
A(n)____________________ query can be used to produce a relation that retains the duplicate rows.
Question
In Oracle,____ make(s)it possible to merge SQL and traditional programming constructs,such as variables,conditional processing (IF-THEN-ELSE),basic loops (FOR and WHILE loops,)and error trapping.

A) triggers
B) indexes
C) embedded SQL
D) procedural SQL
Question
A(n)____________________ join returns not only the matching rows but also the rows with unmatched attribute values for one or both tables to be joined.
Question
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
Question
The ____________________ join is the traditional join in which only rows that meet a given criteria are selected.
Question
A(n)____________________ join returns all rows with matching values in the matching columns and eliminates duplicate columns.
Question
The ____ pseudo-column is used to select the next value from a sequence.

A) CURRVAL
B) NEXTVAL
C) NEXT
D) GET_NEXT
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/100
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 8: Advanced SQL
1
One of the disadvantages of stored procedures is that they increase network traffic.
False
2
Just like database triggers,stored procedures are stored in the database.
True
3
Procedural code is executed on the database client machine.
False
4
Every PL/SQL block must be given a name.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
5
In Oracle,you can use the SQL*Plus command SHOW ERRORS to help you diagnose errors found in PL/SQL blocks.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
6
To test a trigger,you should use the EXECUTE TRIGGER command.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
7
To remedy the lack of procedural functionality in SQL,and to provide some standardization within the many vendor offerings,the SQL-99 standard defined the use of persistent stored modules.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
8
Stored procedures help reduce code duplication by means of code isolation and code sharing.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
9
Each statement inside the PL/SQL code must end with a period (".").
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
10
The most useful feature of PL/SQL blocks is that they let you create code that can be named,stored,and executed by the DBMS.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
11
Triggers can only be used to update table values.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
12
UNION,INTERSECT,and MINUS work properly only if relations are union-compatible,which means that the names of the relation attributes and their data types must be different.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
13
PL/SQL blocks have a section used to declare variables.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
14
Automating business procedures and automatically maintaining data integrity and consistency are trivial in a modern business environment.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
15
SQL supports the conditional execution of procedures (if..then...else statements)that are typically supported by a programming language.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
16
PL/SQL functions are executed in the same way as functions such as MIN and AVG.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
17
A trigger is executed as part of the transaction that triggered it.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
18
One of the major advantages of stored procedures is that they can be used to encapsulate and represent business transactions.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
19
A trigger is procedural SQL code that is automatically invoked by the RDBMS upon the occurrence of a given data manipulation event.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
20
A statement-level trigger is assumed if you omit the FOR EACH ROW keywords.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
21
"Linked SQL" is a term used to refer to SQL statements that are contained within an application programming language such as COBOL,C++,ASP,Java,or ColdFusion.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
22
"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
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
23
An implicit cursor is automatically created in procedural SQL when the SQL statement returns only one value.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
24
An explicit cursor must return two or more rows.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
25
Assume you are using the INTERSECT 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 INTERSECT operator?

A) 0
B) 2
C) 7
D) 10
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
26
The ____ data type is compatible with NUMBER.

A) VARCHAR(15)
B) SMALLINT
C) DATE
D) CHAR(10)
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
27
The syntax for the UNION query is ____.

A) query + query
B) UNION (query,query)
C) UNION: query query
D) query UNION query
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
28
Assume you are using the UNION ALL 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 ALL operator?

A) 7
B) 10
C) 15
D) 17
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
29
Cursor-style processing involves retrieving data from the cursor,one row at a time.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
30
The ____ query combines rows from two queries and excludes duplicates.

A) UNION
B) UNION ALL
C) INTERSECT
D) MINUS
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
31
The ____ data type is considered compatible with VARCHAR(35).

A) DATE
B) INT
C) TINYINT
D) CHAR(15)
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
32
The ____ statement in SQL combines rows from two queries and returns only the rows that appear in the first set but not in the second.

A) UNION
B) UNION ALL
C) INTERSECT
D) MINUS
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
33
The NEXT command for a cursor is used to retrieve a row from the cursor and place it in the respective PL/SQL variables.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
34
A stored function is another name for a stored procedure.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
35
You can declare variables inside a stored procedure.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
36
Stored procedures must have at least one argument.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
37
____ is a relational set operator.

A) MINUS
B) PLUS
C) ALL
D) EXISTS
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
38
Cursors are held in a reserved memory area in the client computer.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
39
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
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
40
Stored procedures are executed using the EXEC command.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
41
The Oracle ____ function returns the current date.

A) DATE
B) SYSDATE
C) CURRENT_DATE
D) TO_DATE
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
42
In Oracle,the ____ function converts a date to a character string.

A) CONVERT()
B) TO_DATE
C) TO_CHAR()
D) TO_STRING()
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
43
The ____ operator could be used in place of INTERSECT if the RDBMS does not support it.

A) IN
B) OF
C) AND
D) UNION
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
44
If you wish to create an inner join,but the two tables do not have a commonly named attribute,you can use a(n)____ clause.

A) OF
B) USING
C) HAS
D) JOIN ON
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
45
A ____ join returns rows with matching values and includes all rows from both tables (T1 and T2)with unmatched values.

A) natural
B) cross
C) full outer
D) left outer
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
46
A(n)____ join will select only the rows with common values in the common attribute(s).

A) natural
B) cross
C) full
D) outer
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
47
The following SQL statement uses a(n)____.
SELECT P_CODE,P_DESCRIPT,P_PRICE,V_NAME
FROM PRODUCT,VENDOR
WHERE PRODUCT.V_CODE = VENDOR.V_CODE;

A) set operator
B) natural join
C) "old-style" join
D) procedural statement
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
48
When using the Oracle TO_DATE function,the code ____ represents a three-letter month name.

A) MON
B) MM3
C) MONTH
D) MM
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
49
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
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
50
The statement SELECT * FROM T1,T2 produces a(n)____ join.

A) cross
B) natural
C) equi-
D) full
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
51
In a subquery,the ____ query is executed first.

A) left
B) right
C) inner
D) outer
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
52
A(n)____ join returns not only the rows matching the join condition (that is,rows with matching values in the common columns)but also the rows with unmatched values.

A) outer
B) inner
C) equi-
D) cross
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
53
The ____ function returns the current system date in MS Access.

A) TO_DATE()
B) SYSDATE()
C) DATE()
D) TODAY()
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
54
In subquery terminology,the first query in the SQL statement is known as the ____ query.

A) outer
B) left
C) inner
D) base
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
55
The ANSI standard defines ____ type(s)of outer join(s)

A) one
B) two
C) three
D) four
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
56
The syntax for a left outer join is ____.

A) SELECT column-list
FROM table1 OUTER JOIN table2 LEFT
WHERE join-condition
B) SELECT column-list
FROM table1 LEFT [OUTER] JOIN table2
ON join-condition
C) SELECT column-list
WHERE LEFT table1 = table 2
D) SELECT column-list
FROM table1 LEFT table2 [JOIN]
WHERE join-condition
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
57
When using a(n)____ join,only rows that meet the given criteria are returned.

A) full
B) inner
C) outer
D) set
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
58
Assume you are using the MINUS 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 MINUS operator?

A) 0
B) 2
C) 8
D) 10
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
59
A ____ is a query (SELECT statement)inside a query.

A) subquery
B) range query
C) join
D) set query
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
60
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
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
61
If the DBMS does not support the INTERSECT statement,you can use a(n)____________________ subquery to achieve the same result.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
62
A stored function uses the ____ statement to return a value.

A) EXIT
B) END
C) RETURN
D) PROCESS
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
63
The Oracle string concatenation function is ____.

A) CONCAT
B) +
C) ||
D) &&
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
64
When using the Oracle TO_NUMBER function to convert a character string into a number,____ represents a digit.

A) 0
B) 9
C) $
D) #
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
65
The ____________________ statement can be used to combine rows from two queries,returning only the rows that appear in both sets.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
66
Oracle recommends ____ for creating audit logs.

A) triggers
B) stored procedures
C) stored functions
D) tables
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
67
The ____________________ statement in SQL combines rows from two queries and returns only the rows that appear in the first set but not in the second.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
68
The PL/SQL block starts with the ____ clause.

A) IS
B) OPEN
C) DECLARE
D) BEGIN
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
69
The ____________________ statement combines rows from two or more queries without including duplicate rows.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
70
A(n)____________________ join returns the Cartesian product JOIN of T1 and T2 and is sometimes called "old style".
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
71
An alternate syntax for a join is SELECT column-list FROM table1 JOIN table2 ____________________ (common-column).
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
72
The Oracle equivalent to an MS Access AutoNumber is a(n)____.

A) auto-number
B) sequence
C) TO_NUMBER function
D) trigger
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
73
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
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
74
A(n)____________________ query can be used to produce a relation that retains the duplicate rows.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
75
In Oracle,____ make(s)it possible to merge SQL and traditional programming constructs,such as variables,conditional processing (IF-THEN-ELSE),basic loops (FOR and WHILE loops,)and error trapping.

A) triggers
B) indexes
C) embedded SQL
D) procedural SQL
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
76
A(n)____________________ join returns not only the matching rows but also the rows with unmatched attribute values for one or both tables to be joined.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
77
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
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
78
The ____________________ join is the traditional join in which only rows that meet a given criteria are selected.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
79
A(n)____________________ join returns all rows with matching values in the matching columns and eliminates duplicate columns.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
80
The ____ pseudo-column is used to select the next value from a sequence.

A) CURRVAL
B) NEXTVAL
C) NEXT
D) GET_NEXT
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 100 flashcards in this deck.