Pregunta 1
Pregunta
1. A relational join operation merges rows from two tables.
Pregunta 2
Pregunta
2. An inequality condition is also known as a natural join and an equality condition is also called a theta join.
Pregunta 3
Pregunta
3. Subqueries cannot be used in combinations with joins.
Pregunta 4
Pregunta
4. The SELECT statement uses the attribute list to indicate what columns to project in the resulting set.
Pregunta 5
Pregunta
5. Numeric functions take one numeric parameter and return one value.
Pregunta 6
Pregunta
6. String manipulation functions are rarely used in programming.
Pregunta 7
Pregunta
7. UNION, INTERSECT, and MINUS work properly only if relations are intersect-compatible, which means that the names of the relation attributes and their data types must be different.
Pregunta 8
Pregunta
8. A view is a virtual table based on a SELECT query.
Pregunta 9
Pregunta
9. A sequence is not associated with a table and can be dropped from a database with a DROP SEQUENCE command.
Pregunta 10
Pregunta
10. SQL supports the conditional execution of procedures (IF-THEN-ELSE statements) that are typically supported by a programming language.
Pregunta 11
Pregunta
11. 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.
Pregunta 12
Pregunta
12. A persistent stored module is stored and executed on the database client machine.
Pregunta 13
Pregunta
13. Every PL/SQL block must be given a name.
Pregunta 14
Pregunta
14. In Oracle, you can use the SQL*Plus command SHOW ERRORS to help you diagnose errors found in PL/SQL blocks.
Pregunta 15
Pregunta
15. PL/SQL blocks have a section used to declare variables.
Pregunta 16
Pregunta
16. The most useful feature of PL/SQL blocks is that they let a designer create code that can be named, stored, and executed by the DBMS.
Pregunta 17
Pregunta
17. Automating business procedures and automatically maintaining data integrity and consistency are trivial in a modern business environment.
Pregunta 18
Pregunta
18. A trigger is procedural SQL code that is automatically invoked by the RDBMS upon the occurrence of a given data manipulation event.
Pregunta 19
Pregunta
19. Triggers can only be used to update table values.
Pregunta 20
Pregunta
20. A statement-level trigger is assumed if a designer omits the FOR EACH ROW keywords.
Pregunta 21
Pregunta
21. A row-level trigger is assumed if we omit the FOR EACH ROW keywords and a statement-level trigger required the use of the FOR EACH ROW keyword.
Pregunta 22
Pregunta
22. MySQL allows multiple triggering conditions per trigger.
Pregunta 23
Pregunta
23. BEFORE means before the changes are made in memory but after the changes are permanently saved to disk.
Pregunta 24
Pregunta
24. Just like database triggers, stored procedures are stored in the database.
Pregunta 25
Pregunta
25. One of the major advantages of stored procedures is that they can be used to encapsulate and represent business transactions.
Pregunta 26
Pregunta
26. Stored procedures must have at least one argument.
Pregunta 27
Pregunta
27. Variables can be declared inside a stored procedure.
Pregunta 28
Pregunta
28. Cursors are held in a reserved memory area in the client computer.
Pregunta 29
Pregunta
29. An implicit cursor is automatically created in procedural SQL when the SQL statement returns only one
Pregunta 30
Pregunta
30. An explicit cursor must return two or more rows.
Pregunta 31
Pregunta
31. A stored function is another name for a stored procedure.
Pregunta 32
Pregunta
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.
Pregunta 33
Pregunta
33. 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;
Respuesta
-
a. set operator
-
b. natural join
-
c. “oldstyle” join
-
d. procedural statement
Pregunta 34
Pregunta
34. When using a(n) join, only rows that meet the given criteria are returned.
Respuesta
-
a. full
-
b. inner
-
c. outer
-
d. set
Pregunta 35
Pregunta
35. The statement SELECT * FROM T1, T2 produces a(n) join.
Respuesta
-
a. cross
-
b. natural
-
c. equi-
-
d. full
Pregunta 36
Pregunta
36. How many rows would be returned from a cross join of tables A and B, if A contains 8 rows and B contains 18?
Pregunta 37
Pregunta
37. A(n) join will select only the rows with matching values in the common attribute(s).
Respuesta
-
a. natural
-
b. cross
-
c. full
-
d. outer
Pregunta 38
Pregunta
38. If a designer wishes to create an inner join, but the two tables do not have a commonly named attribute, he can use a(n) _____ clause.
Respuesta
-
a. OF
-
b. USING
-
c. HAS
-
d. JOIN ON
Pregunta 39
Pregunta
39. 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.
Respuesta
-
a. outer
-
b. inner
-
c. equi-
-
d. cross
Pregunta 40
Pregunta
40. The syntax for a left outer join is .
Respuesta
-
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
-
SELECT column-list
WHERE LEFT table1 = table 2
-
. SELECT column-list
FROM table1 LEFT table2 [JOIN]
WHERE join-condition
Pregunta 41
Pregunta
41. In subquery terminology, the first query in the SQL statement is known as the query.
Respuesta
-
a. outer
-
b. left
-
c. inner
-
d. base
Pregunta 42
Pregunta
42. In the context of SELECT subquery types, a is returned when an UPDATE subquery is used.
Respuesta
-
a. NULL
-
b. single value
-
c. list of values
-
d. virtual table
Pregunta 43
Pregunta
43. Which of the following is a feature of a correlated subquery?
Respuesta
-
a. The inner subquery executes first.
-
b. The outer subquery initiates the process of execution in a subquery.
-
c. The inner subquery initiates the process of execution in a subquery.
-
d. The outer subquery executes independent of the inner subquery
Pregunta 44
Pregunta
44. The function returns the current system date in MS Access.
Respuesta
-
a. TO_DATE()
-
b. SYSDATE()
-
c. DATE()
-
d. TODAY()
Pregunta 45
Pregunta
45. When using the Oracle TO_DATE function, the code represents a three-letter month name.
Respuesta
-
a. MON
-
b. MM3
-
c. MONTH
-
d. MM
Pregunta 46
Pregunta
46. In Oracle, the function converts a date to a character string.
Respuesta
-
a. CONVERT()
-
b. TO_DATE
-
c. TO_CHAR()
-
d. TO_STRING()
Pregunta 47
Pregunta
is a string function that returns the number of characters in a string value.
Respuesta
-
a. LENGTH
-
b. SUBSTRING
-
c. CONCAT
-
d. UCASE
Pregunta 48
Pregunta
48. When using the Oracle TO_NUMBER function to convert a character string into a number, represents a digit.
Pregunta 49
Pregunta
49. 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.
Respuesta
-
a. NVL
-
b. TO_CHAR
-
c. DECODE
-
d. CONVERT
Pregunta 50
Pregunta
50. is a relational set operator.
Respuesta
-
a. MINUS
-
b. PLUS
-
c. ALL
-
d. EXISTS
Pregunta 51
Pregunta
51. “Unioncompatible” means that the .
Respuesta
-
a. names of the relation attributes can be different, but the data types must be alike
-
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 alike
-
d. number of attributes must be the same, but the names and data types can be different
Pregunta 52
Pregunta
52. The data type is considered compatible with VARCHAR(35).
Respuesta
-
a. DATE
-
b. INT
-
c. TINYINT
-
d. CHAR(15)
Pregunta 53
Pregunta
53. The statement combines rows from two queries and excludes duplicates.
Respuesta
-
a. UNION
-
b. UNION ALL
-
c. INTERSECT
-
d. MINUS
Pregunta 54
Pregunta
54. Assume a designer is 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 Jenna and Howard are included in the CUSTOMER table as well as in the CUSTOMER_2 table. How many records are returned when using the UNION operator?
Pregunta 55
Pregunta
55. 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?
Pregunta 56
Pregunta
56. 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?
Pregunta 57
Pregunta
57. 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.
Respuesta
-
a. UNION
-
b. UNION ALL
-
c. INTERSECT
-
d. MINUS
Pregunta 58
Pregunta
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?
Pregunta 59
Pregunta
59. The operator could be used in place of INTERSECT if the DBMS does not support it.
Respuesta
-
a. IN
-
b. OF
-
c. AND
-
d. UNION
Pregunta 60
Pregunta
60. The operator could be used in place of MINUS if the DBMS does not support it.
Respuesta
-
a. IN
-
b. NOT IN
-
c. AND
-
d. UNION
Pregunta 61
Pregunta
61. The Oracle equivalent to an MS Access AutoNumber is a(n) .
Respuesta
-
a. auto-number
-
b. sequence
-
c. TO_NUMBER function
-
d. trigger
Pregunta 62
Pregunta
62. Which of the following is a feature of oracle sequences?
Respuesta
-
a. Oracle sequences are tied to columns and tables.
-
b. Oracle sequences generate a character string
that can be assigned to tables.
-
c. An oracle sequence uses the identity column property to automatically number rows.
-
d. An oracle sequence can be created and deleted anytime.
Pregunta 63
Pregunta
63. The pseudo-column is used to select the next value from a sequence.
Respuesta
-
a. CURRVAL
-
b. NEXTVAL
-
c. NEXT
-
d. GET_NEXT
Pregunta 64
Pregunta
64. 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.
Pregunta 65
Pregunta
65. The Oracle string concatenation function is .
Respuesta
-
a. CONCAT
-
b. +
-
c. ||
-
d. &&
Pregunta 66
Pregunta
66. The PL/SQL block starts with the section.
Respuesta
-
a. IS
-
b. OPEN
-
c. DECLARE
-
d. BEGIN
Pregunta 67
Pregunta
67. Oracle recommends for creating audit logs.
Respuesta
-
a. triggers
-
b. stored procedures
-
c. stored functions
-
d. tables
Pregunta 68
Pregunta
68. is a cursor attribute that returns TRUE if the last FETCH returned a row, and FALSE if not.
Respuesta
-
a. %ROWCOUNT
-
b. %NOTFOUND
-
c. %FOUND
-
d. %ISOPEN