. .
Quiz von , erstellt am more than 1 year ago

asdf Quiz am Chapter 8 (Multiple Choice CIS 3365), erstellt von . . am 22/09/2016.

747
3
0
. .
Erstellt von . . vor fast 8 Jahre
Schließen

Chapter 8 (Multiple Choice CIS 3365)

Frage 1 von 40

1

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;

Wähle eine der folgenden:

  • a. set operator

  • b. natural join

  • c. “old-style” join

  • d. procedural statement

Erklärung

Frage 2 von 40

1

2. When using a(n) ____ join, only rows that meet the given criteria are returned.

Wähle eine der folgenden:

  • a. full

  • b. inner

  • c. outer

  • d. set

Erklärung

Frage 3 von 40

1

3. The statement SELECT * FROM T1, T2 produces a(n) ____ join.

Wähle eine der folgenden:

  • a. cross

  • b. natural

  • c. equi

  • d. full

Erklärung

Frage 4 von 40

1

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?

Wähle eine der folgenden:

  • a. 8

  • b. 18

  • c. 26

  • d. 144

Erklärung

Frage 5 von 40

1

5. A(n) ____ join will select only the rows with common values in the common attribute(s).

Wähle eine der folgenden:

  • a. natural

  • b. cross

  • c. full

  • d. outer

Erklärung

Frage 6 von 40

1

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.

Wähle eine der folgenden:

  • a. OF

  • b. USING

  • c. HAS

  • d. JOIN ON

Erklärung

Frage 7 von 40

1

7. The ANSI standard defines ____ type(s) of outer join(s)

Wähle eine der folgenden:

  • a. one

  • b. two

  • c. three

  • d. four

Erklärung

Frage 8 von 40

1

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.

Wähle eine der folgenden:

  • a. outer

  • b. inner

  • c. equi

  • d. cross

Erklärung

Frage 9 von 40

1

9. The syntax for a left outer join is ____.

Wähle eine der folgenden:

  • 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

Erklärung

Frage 10 von 40

1

10. A ____ join returns rows with matching values and includes all rows from both tables (T1 and T2) with unmatched values.

Wähle eine der folgenden:

  • a. natural

  • b. cross

  • c. full outer

  • d. left outer

Erklärung

Frage 11 von 40

1

11. A ____ is a query (SELECT statement) inside a query.

Wähle eine der folgenden:

  • a. subquery

  • b. range query

  • c. join

  • d. set query

Erklärung

Frage 12 von 40

1

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

Wähle eine der folgenden:

  • a. outer

  • b. left

  • c. inner

  • d. base

Erklärung

Frage 13 von 40

1

13. In a subquery, the ____ query is executed first

Wähle eine der folgenden:

  • a. left

  • b. right

  • c. inner

  • d. outer

Erklärung

Frage 14 von 40

1

14.The ____ function returns the current system date in MS Access.

Wähle eine der folgenden:

  • a. TO_DATE(

  • b. SYSDATE()

  • c. DATE()

  • d. TODAY()

Erklärung

Frage 15 von 40

1

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

Wähle eine der folgenden:

  • a. MON

  • b. MM3

  • c. MONTH

  • d. MM

Erklärung

Frage 16 von 40

1

16. The Oracle ____ function returns the current date

Wähle eine der folgenden:

  • a. DATE

  • b. SYSDATE

  • c. CURRENT_DATE

  • d. TO_DATE

Erklärung

Frage 17 von 40

1

17. In Oracle, the ____ function converts a date to a character string.

Wähle eine der folgenden:

  • a. CONVERT()

  • b. TO_DATE

  • c. TO_CHAR()

  • d. TO_STRING()

Erklärung

Frage 18 von 40

1

18. The Oracle string concatenation function is ____.

Wähle eine der folgenden:

  • a. CONCAT

  • b. +

  • c. ||

  • d. &&

Erklärung

Frage 19 von 40

1

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

Wähle eine der folgenden:

  • a. 0

  • b. 9

  • c. $

  • d. #

Erklärung

Frage 20 von 40

1

20. ____ is a relational set operator.

Wähle eine der folgenden:

  • a. MINUS

  • b. PLUS

  • c. ALL

  • d. EXISTS

Erklärung

Frage 21 von 40

1

21. “Union-compatible” means that the ____.

Wähle eine der folgenden:

  • 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

Erklärung

Frage 22 von 40

1

22. The ____ data type is considered compatible with VARCHAR(35).

Wähle eine der folgenden:

  • a. DATE

  • b. INT

  • c. TINYINT

  • d. CHAR(15)

Erklärung

Frage 23 von 40

1

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.

Wähle eine der folgenden:

  • a. NVL

  • b. TO_CHAR

  • c. DECODE

  • d. CONVERT

Erklärung

Frage 24 von 40

1

24. The ____ data type is compatible with NUMBER.

Wähle eine der folgenden:

  • a. VARCHAR(15)

  • b. SMALLINT

  • c. DATE

  • d. CHAR(10)

Erklärung

Frage 25 von 40

1

25. The ____ query combines rows from two queries and excludes duplicates.

Wähle eine der folgenden:

  • a. UNION

  • b. UNION ALL

  • c. INTERSECT

  • d. MINUS

Erklärung

Frage 26 von 40

1

26. The syntax for the UNION query is ____.

Wähle eine der folgenden:

  • a. query + query

  • b. UNION (query, query)

  • c. UNION: query query

  • d. query UNION query

Erklärung

Frage 27 von 40

1

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?

Wähle eine der folgenden:

  • a. 7

  • b. 10

  • c. 15

  • d. 17

Erklärung

Frage 28 von 40

1

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?

Wähle eine der folgenden:

  • a. 7

  • b. 10

  • c. 15

  • d. 17

Erklärung

Frage 29 von 40

1

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?

Wähle eine der folgenden:

  • a. 0

  • b. 2

  • c. 7

  • d. 10

Erklärung

Frage 30 von 40

1

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.

Wähle eine der folgenden:

  • a. UNION

  • b. UNION ALL

  • c. INTERSECT

  • d. MINUS

Erklärung

Frage 31 von 40

1

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?

Wähle eine der folgenden:

  • a. 0

  • b. 2

  • c. 8

  • d. 10

Erklärung

Frage 32 von 40

1

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

Wähle eine der folgenden:

  • a. IN

  • b. OF

  • c. AND

  • d. UNION

Erklärung

Frage 33 von 40

1

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

Wähle eine der folgenden:

  • a. IN

  • b. NOT IN

  • c. AND

  • d. UNION

Erklärung

Frage 34 von 40

1

34. The Oracle equivalent to an MS Access AutoNumber is a(n) ____.

Wähle eine der folgenden:

  • a. auto-number

  • b. sequence

  • c. TO_NUMBER function

  • d. Trigger

Erklärung

Frage 35 von 40

1

35. The ____ pseudo-column is used to select the next value from a sequence.

Wähle eine der folgenden:

  • a. CURRVAL

  • b. NEXTVAL

  • c. NEXT

  • d. GET_NEXT

Erklärung

Frage 36 von 40

1

36. A(n) ____ is a block of code (containing standard SQL statements and procedural extensions) that is stored and executed at the DBMS server.

Wähle eine der folgenden:

  • a. PSM

  • b. PLS

  • c. SQL Statement

  • d. PMR

Erklärung

Frage 37 von 40

1

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.

Wähle eine der folgenden:

  • a. triggers

  • b. indexes

  • c. embedded SQL

  • d. procedural SQL

Erklärung

Frage 38 von 40

1

38. The PL/SQL block starts with the ____ clause.

Wähle eine der folgenden:

  • a. IS

  • b. OPEN

  • c. DECLARE

  • d. BEGIN

Erklärung

Frage 39 von 40

1

39. Oracle recommends ____ for creating audit logs.

Wähle eine der folgenden:

  • a. triggers

  • b. stored procedures

  • c. stored functions

  • d. tables

Erklärung

Frage 40 von 40

1

40. A stored function uses the ____ statement to return a value.

Wähle eine der folgenden:

  • a. EXIT

  • b. END

  • c. RETURN

  • d. PROCESS

Erklärung