Which statement accomplishes all the required tasks?

The customers table has the following structure:

You need to write a query that does the following tasks:
1. Display the first name and tax amount of the customers. Tax is 5% of their credit limit.
2. Only those customers whose income level has a value should be considered.
3. Customers whose tax amount is null should not be considered.
Which statement accomplishes all the required tasks?

The customers table has the following structure:

You need to write a query that does the following tasks:
1. Display the first name and tax amount of the customers. Tax is 5% of their credit limit.
2. Only those customers whose income level has a value should be considered.
3. Customers whose tax amount is null should not be considered.
Which statement accomplishes all the required tasks?

A.
Option A

B.
Option B

C.
Option C

D.
Option D

Explanation:



Leave a Reply 7

Your email address will not be published. Required fields are marked *


Thiago

Thiago

I think that the correct answer is “A”.

Thiago

Thiago

Certainly, the correct answer is “B”. No doubt.

Thiago

Thiago

I’m wrong.

Mac/Philippines

Mac/Philippines

A is wrong/. The correct answer is B because in option A, you cannot use alias in a where clause.

Sayed

Sayed

Exactly Mac. Thanks

Ar

Ar

Even option B is not fully correct… It should be (cust_credit_limit*.05) is NOT NULL.

Aayush Singla

Aayush Singla

If cust_credit_limit is NOT NULL. Than obviously (cust_credit_limit*0.5) is also NOT NULL.