Chapter 8 (Multiple Choice CIS 3365)

Descrição

asdf Quiz sobre Chapter 8 (Multiple Choice CIS 3365), criado por . . em 22-09-2016.
. .
Quiz por . ., atualizado more than 1 year ago
. .
Criado por . . quase 8 anos atrás
745
3

Resumo de Recurso

Questão 1

Questão
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;
Responda
  • a. set operator
  • b. natural join
  • c. “old-style” join
  • d. procedural statement

Questão 2

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

Questão 3

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

Questão 4

Questão
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?
Responda
  • a. 8
  • b. 18
  • c. 26
  • d. 144

Questão 5

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

Questão 6

Questão
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.
Responda
  • a. OF
  • b. USING
  • c. HAS
  • d. JOIN ON

Questão 7

Questão
7. The ANSI standard defines ____ type(s) of outer join(s)
Responda
  • a. one
  • b. two
  • c. three
  • d. four

Questão 8

Questão
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.
Responda
  • a. outer
  • b. inner
  • c. equi
  • d. cross

Questão 9

Questão
9. The syntax for a left outer join is ____.
Responda
  • 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

Questão 10

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

Questão 11

Questão
11. A ____ is a query (SELECT statement) inside a query.
Responda
  • a. subquery
  • b. range query
  • c. join
  • d. set query

Questão 12

Questão
12. In subquery terminology, the first query in the SQL statement is known as the ____ query.
Responda
  • a. outer
  • b. left
  • c. inner
  • d. base

Questão 13

Questão
13. In a subquery, the ____ query is executed first
Responda
  • a. left
  • b. right
  • c. inner
  • d. outer

Questão 14

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

Questão 15

Questão
15. When using the Oracle TO_DATE function, the code ____ represents a three-letter month name.
Responda
  • a. MON
  • b. MM3
  • c. MONTH
  • d. MM

Questão 16

Questão
16. The Oracle ____ function returns the current date
Responda
  • a. DATE
  • b. SYSDATE
  • c. CURRENT_DATE
  • d. TO_DATE

Questão 17

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

Questão 18

Questão
18. The Oracle string concatenation function is ____.
Responda
  • a. CONCAT
  • b. +
  • c. ||
  • d. &&

Questão 19

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

Questão 20

Questão
20. ____ is a relational set operator.
Responda
  • a. MINUS
  • b. PLUS
  • c. ALL
  • d. EXISTS

Questão 21

Questão
21. “Union-compatible” means that the ____.
Responda
  • 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

Questão 22

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

Questão 23

Questão
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.
Responda
  • a. NVL
  • b. TO_CHAR
  • c. DECODE
  • d. CONVERT

Questão 24

Questão
24. The ____ data type is compatible with NUMBER.
Responda
  • a. VARCHAR(15)
  • b. SMALLINT
  • c. DATE
  • d. CHAR(10)

Questão 25

Questão
25. The ____ query combines rows from two queries and excludes duplicates.
Responda
  • a. UNION
  • b. UNION ALL
  • c. INTERSECT
  • d. MINUS

Questão 26

Questão
26. The syntax for the UNION query is ____.
Responda
  • a. query + query
  • b. UNION (query, query)
  • c. UNION: query query
  • d. query UNION query

Questão 27

Questão
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?
Responda
  • a. 7
  • b. 10
  • c. 15
  • d. 17

Questão 28

Questão
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?
Responda
  • a. 7
  • b. 10
  • c. 15
  • d. 17

Questão 29

Questão
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?
Responda
  • a. 0
  • b. 2
  • c. 7
  • d. 10

Questão 30

Questão
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.
Responda
  • a. UNION
  • b. UNION ALL
  • c. INTERSECT
  • d. MINUS

Questão 31

Questão
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?
Responda
  • a. 0
  • b. 2
  • c. 8
  • d. 10

Questão 32

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

Questão 33

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

Questão 34

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

Questão 35

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

Questão 36

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

Questão 37

Questão
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.
Responda
  • a. triggers
  • b. indexes
  • c. embedded SQL
  • d. procedural SQL

Questão 38

Questão
38. The PL/SQL block starts with the ____ clause.
Responda
  • a. IS
  • b. OPEN
  • c. DECLARE
  • d. BEGIN

Questão 39

Questão
39. Oracle recommends ____ for creating audit logs.
Responda
  • a. triggers
  • b. stored procedures
  • c. stored functions
  • d. tables

Questão 40

Questão
40. A stored function uses the ____ statement to return a value.
Responda
  • a. EXIT
  • b. END
  • c. RETURN
  • d. PROCESS

Semelhante

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