Filters
Question type

Study Flashcards

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

E) B) and C)
F) C) and D)

Correct Answer

verifed

verified

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

E) A) and C)
F) B) and C)

Correct Answer

verifed

verified

The ____________________ join is the traditional join in which only rows that meet a given criteria are selected.

Correct Answer

verifed

verified

In MS Access, you can use the ____________________ data type to define a column in your table that will be automatically populated with unique numeric values.

Correct Answer

verifed

verified

The use of the ____________________ operator allows you to compare a single value with a list of values returned by the first subquery (sqA) using a comparison operator other than EQUALS.

Correct Answer

verifed

verified

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

E) C) and D)
F) None of the above

Correct Answer

verifed

verified

An alternate syntax for a join is SELECT column-list FROM table1 JOIN table2 ____________________ (common-column).

Correct Answer

verifed

verified

A trigger is procedural SQL code that is automatically invoked by the RDBMS upon the occurrence of a given data manipulation event.

A) True
B) False

Correct Answer

verifed

verified

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.

Correct Answer

verifed

verified

Procedural code is executed on the database client machine.

A) True
B) False

Correct Answer

verifed

verified

One of the major advantages of stored procedures is that they can be used to encapsulate and represent business transactions.

A) True
B) False

Correct Answer

verifed

verified

"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.

A) True
B) False

Correct Answer

verifed

verified

What are SQL functions and when are they used? Provide a couple of examples of situations in which they are necessary.

Correct Answer

verifed

verified

SQL functions are very useful tools. You...

View Answer

In a subquery, the ____ query is executed first.


A) left
B) right
C) inner
D) outer

E) A) and B)
F) B) and D)

Correct Answer

verifed

verified

The Oracle string concatenation function is ____.


A) CONCAT
B) +
C) ||
D) &&

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

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

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

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

E) B) and D)
F) All of the above

Correct Answer

verifed

verified

One of the disadvantages of stored procedures is that they increase network traffic.

A) True
B) False

Correct Answer

verifed

verified

The NEXT command for a cursor is used to retrieve a row from the cursor and place it in the respective PL/SQL variables.

A) True
B) False

Correct Answer

verifed

verified

Automating business procedures and automatically maintaining data integrity and consistency are trivial in a modern business environment.

A) True
B) False

Correct Answer

verifed

verified

Showing 41 - 60 of 100

Related Exams

Show Answer