Chapter 8 (Multiple Choice CIS 3365)

Descripción

asdf Test sobre Chapter 8 (Multiple Choice CIS 3365), creado por . . el 22/09/2016.
. .
Test por . ., actualizado hace más de 1 año
. .
Creado por . . hace casi 8 años
745
3

Resumen del Recurso

Pregunta 1

Pregunta
1. The following SQL statement uses a(n) ____.SELECT P_CODE, P_DESCRIPT, P_PRICE, V_NAMEFROM PRODUCT, VENDORWHERE PRODUCT.V_CODE = VENDOR.V_CODE;
Respuesta
  • a. set operator
  • b. natural join
  • c. “old-style” join
  • d. procedural statement

Pregunta 2

Pregunta
2. When using a(n) ____ join, only rows that meet the given criteria are returned.
Respuesta
  • a. full
  • b. inner
  • c. outer
  • d. set

Pregunta 3

Pregunta
3. The statement SELECT * FROM T1, T2 produces a(n) ____ join.
Respuesta
  • a. cross
  • b. natural
  • c. equi
  • d. full

Pregunta 4

Pregunta
4. How many rows would be returned from a cross join of tables A and B, if A contains 8 rows and B contains 18?
Respuesta
  • a. 8
  • b. 18
  • c. 26
  • d. 144

Pregunta 5

Pregunta
5. A(n) ____ join will select only the rows with common values in the common attribute(s).
Respuesta
  • a. natural
  • b. cross
  • c. full
  • d. outer

Pregunta 6

Pregunta
6. 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.
Respuesta
  • a. OF
  • b. USING
  • c. HAS
  • d. JOIN ON

Pregunta 7

Pregunta
7. The ANSI standard defines ____ type(s) of outer join(s)
Respuesta
  • a. one
  • b. two
  • c. three
  • d. four

Pregunta 8

Pregunta
8. 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 9

Pregunta
9. The syntax for a left outer join is ____.
Respuesta
  • a. SELECT column-list FROM table1 OUTER JOIN table2 LEFTWHERE join-condition
  • b. SELECT column-list FROM table1 LEFT [OUTER] JOIN table2ON join-condition
  • c. SELECT column-list WHERE LEFT table1 = table 2
  • d. SELECT column-list FROM table1 LEFT table2 [JOIN] WHERE join-condition

Pregunta 10

Pregunta
10. A ____ join returns rows with matching values and includes all rows from both tables (T1 and T2) with unmatched values.
Respuesta
  • a. natural
  • b. cross
  • c. full outer
  • d. left outer

Pregunta 11

Pregunta
11. A ____ is a query (SELECT statement) inside a query.
Respuesta
  • a. subquery
  • b. range query
  • c. join
  • d. set query

Pregunta 12

Pregunta
12. 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 13

Pregunta
13. In a subquery, the ____ query is executed first
Respuesta
  • a. left
  • b. right
  • c. inner
  • d. outer

Pregunta 14

Pregunta
14.The ____ function returns the current system date in MS Access.
Respuesta
  • a. TO_DATE(
  • b. SYSDATE()
  • c. DATE()
  • d. TODAY()

Pregunta 15

Pregunta
15. 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 16

Pregunta
16. The Oracle ____ function returns the current date
Respuesta
  • a. DATE
  • b. SYSDATE
  • c. CURRENT_DATE
  • d. TO_DATE

Pregunta 17

Pregunta
17. In Oracle, the ____ function converts a date to a character string.
Respuesta
  • a. CONVERT()
  • b. TO_DATE
  • c. TO_CHAR()
  • d. TO_STRING()

Pregunta 18

Pregunta
18. The Oracle string concatenation function is ____.
Respuesta
  • a. CONCAT
  • b. +
  • c. ||
  • d. &&

Pregunta 19

Pregunta
19. When using the Oracle TO_NUMBER function to convert a character string into a number, ____represents a digit.
Respuesta
  • a. 0
  • b. 9
  • c. $
  • d. #

Pregunta 20

Pregunta
20. ____ is a relational set operator.
Respuesta
  • a. MINUS
  • b. PLUS
  • c. ALL
  • d. EXISTS

Pregunta 21

Pregunta
21. “Union-compatible” means that the ____.
Respuesta
  • 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

Pregunta 22

Pregunta
22. The ____ data type is considered compatible with VARCHAR(35).
Respuesta
  • a. DATE
  • b. INT
  • c. TINYINT
  • d. CHAR(15)

Pregunta 23

Pregunta
23. 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 24

Pregunta
24. The ____ data type is compatible with NUMBER.
Respuesta
  • a. VARCHAR(15)
  • b. SMALLINT
  • c. DATE
  • d. CHAR(10)

Pregunta 25

Pregunta
25. The ____ query combines rows from two queries and excludes duplicates.
Respuesta
  • a. UNION
  • b. UNION ALL
  • c. INTERSECT
  • d. MINUS

Pregunta 26

Pregunta
26. The syntax for the UNION query is ____.
Respuesta
  • a. query + query
  • b. UNION (query, query)
  • c. UNION: query query
  • d. query UNION query

Pregunta 27

Pregunta
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 CUS-TOMER_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?
Respuesta
  • a. 7
  • b. 10
  • c. 15
  • d. 17

Pregunta 28

Pregunta
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 CUS-TOMER table as well as in the CUSTOMER_2 table. How many records are returned when using the UNION ALL operator?
Respuesta
  • a. 7
  • b. 10
  • c. 15
  • d. 17

Pregunta 29

Pregunta
29. 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 CUS-TOMER table as well as in the CUSTOMER_2 table. How many records are returned when using the INTERSECT operator?
Respuesta
  • a. 0
  • b. 2
  • c. 7
  • d. 10

Pregunta 30

Pregunta
30. 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 31

Pregunta
31. 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?
Respuesta
  • a. 0
  • b. 2
  • c. 8
  • d. 10

Pregunta 32

Pregunta
32. The ____ operator could be used in place of INTERSECT if the RDBMS does not support it.
Respuesta
  • a. IN
  • b. OF
  • c. AND
  • d. UNION

Pregunta 33

Pregunta
33. The ____ operator could be used in place of MINUS if the RDBMS does not support it.
Respuesta
  • a. IN
  • b. NOT IN
  • c. AND
  • d. UNION

Pregunta 34

Pregunta
34. The Oracle equivalent to an MS Access AutoNumber is a(n) ____.
Respuesta
  • a. auto-number
  • b. sequence
  • c. TO_NUMBER function
  • d. Trigger

Pregunta 35

Pregunta
35. The ____ pseudo-column is used to select the next value from a sequence.
Respuesta
  • a. CURRVAL
  • b. NEXTVAL
  • c. NEXT
  • d. GET_NEXT

Pregunta 36

Pregunta
36. A(n) ____ is a block of code (containing standard SQL statements and procedural extensions) that is stored and executed at the DBMS server.
Respuesta
  • a. PSM
  • b. PLS
  • c. SQL Statement
  • d. PMR

Pregunta 37

Pregunta
37. 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.
Respuesta
  • a. triggers
  • b. indexes
  • c. embedded SQL
  • d. procedural SQL

Pregunta 38

Pregunta
38. The PL/SQL block starts with the ____ clause.
Respuesta
  • a. IS
  • b. OPEN
  • c. DECLARE
  • d. BEGIN

Pregunta 39

Pregunta
39. Oracle recommends ____ for creating audit logs.
Respuesta
  • a. triggers
  • b. stored procedures
  • c. stored functions
  • d. tables

Pregunta 40

Pregunta
40. A stored function uses the ____ statement to return a value.
Respuesta
  • a. EXIT
  • b. END
  • c. RETURN
  • d. PROCESS
Mostrar resumen completo Ocultar resumen completo

Similar

El Perdón
Alonso Linares
Investiga las transformaciones de la cultura y de la vida cotidiana a lo largo del tiempo.
Sherlyn Muñoz
Irene
i.biza
Sean doce balines (a,b,c,d,e,f,g,h,i,j,k,l)
andres parra
Funciones Polinomiales
Julieta Maya
10.THE VALUATION PROCESS AND PRICING PROPERTIES
Brigita Safyra
Effective Citizens
Lauren Petrouleas
asdfas
bevan7
S C I E X
guohao.lam
Perspectives of learning
nilemon
Mind Idea
rodrigo.cespedes