Filters
Question type

Study Flashcards

Stored procedures help reduce code duplication by means of code isolation and code sharing.

A) True
B) False

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 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) A) and B)

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) B) and C)
F) B) and D)

Correct Answer

verifed

verified

PL/SQL functions are executed in the same way as functions such as MIN and AVG.

A) True
B) False

Correct Answer

verifed

verified

UNION,INTERSECT,and MINUS work properly only if relations are union-compatible,which means that the names of the relation attributes and their data types must be different.

A) True
B) False

Correct Answer

verifed

verified

In Oracle,you can use the SQL*Plus command SHOW ERRORS to help you diagnose errors found in PL/SQL blocks.

A) True
B) False

Correct Answer

verifed

verified

To test a trigger,you should use the EXECUTE TRIGGER command.

A) True
B) False

Correct Answer

verifed

verified

Oracle uses the ____________________ function to extract the various parts of a date.

Correct Answer

verifed

verified

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.


A) NVL
B) TO_CHAR
C) DECODE
D) CONVERT

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

Correct Answer

verifed

verified

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) A) and B)
F) B) and D)

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

Just like database triggers,stored procedures are stored in the database.

A) True
B) False

Correct Answer

verifed

verified

The ____________________ 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.

Correct Answer

verifed

verified

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


A) UNION
B) UNION ALL
C) INTERSECT
D) MINUS

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

Correct Answer

verifed

verified

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.


A) OF
B) USING
C) HAS
D) JOIN ON

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

Correct Answer

verifed

verified

The syntax for a left outer join is ____.


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
C) SELECT column-list
WHERE LEFT table1 = table 2
D) SELECT column-list
FROM table1 LEFT table2 [JOIN]
WHERE join-condition

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

Correct Answer

verifed

verified

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


A) full
B) inner
C) outer
D) set

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

The Oracle ____ function returns the current date.


A) DATE
B) SYSDATE
C) CURRENT_DATE
D) TO_DATE

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

Correct Answer

verifed

verified

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


A) subquery
B) range query
C) join
D) set query

E) A) and B)
F) None of the above

Correct Answer

verifed

verified

Showing 21 - 40 of 100

Related Exams

Show Answer