Prentice Hall Oracle Plsql By Example 3Rd Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Prentice Hall Oracle Plsql By Example 3Rd Edition [Electronic resources] - نسخه متنی

Benjamin Rosenzweig

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید







Chapter 6 Conditional Control: CASE Statements


A5:

Questions

Answers

Comments

1)

C

The statements in a CASE construct are not executed sequentially. Rather, one group of statements or another will be selected to execute depending on how test conditions are evaluated.

2)

B

3)

B

The selector is evaluated only once, and the value of each expression is compared to the value of the selector sequentially.

4)

A

The behavior of a searched CASE construct is similar to the behavior of an IF statement. In other words, if all conditions of the CASE construct evaluate to NULL and there is no ELSE clause present, the control will be passed to the first executable statement after END CASE.

5)

A


A5:

Questions

Answers

Comments

1)

A

A keyword here is

expression. You will recall that an expression returns a single value.

2)

C

3)

B

Similar to CASE statements, there are CASE and searched CASE expressions.

4)

A

The behavior of a CASE expression is similar to the behavior of a CASE statement. In other words, if all conditions of the CASE expression evaluate to NULL and there is no ELSE clause present, the expression returns NULL.

5)

A

As mentioned earlier, the keyword here is

expression. Because an expression returns a single value, it must return a single datatype.


A5:

Questions

Answers

Comments

1)

A

2)

B

The NULLIF function does the opposite of the NVL function. If the first expression is NULL, then NVL returns the second expression. If the first expression is not NULL, then NVL returns the first expression.

3)

B

When the literal NULL is used in the first expression of the NULLIF function, it causes a syntax error.

4)

A

5)

B

As long as one of the expressions in the COALESCE function does not contain NULL, the COALESCE function executes successfully. For example,


COALESCE(NULL, 5)

returns the value of 5. On the other hand,


COALESCE(NULL, NULL)

causes a syntax error.

/ 289