Q19 You want to display the first name and due amount as 5% of their credit limit

Q19 Examine the description of the CUSTOMERS table:

word image 4736 1

For customers whose income level has a value, you want to display the first name and due amount as 5% of their credit limit. Customers whose due amount is null should not be displayed.

Which query should be used?

  • (A). SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNT FROM customers WHERE cust_income_level IS NOT NULL AND due_amount IS NOT NULL;
  • (B). SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNTFROM customers WHERE cust_income_level != NULL AND cust_credit_level !=NULL;
  • (C). SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNTFROM customers WHERE cust_income_level <> NULL AND due_amount <> NULL;
  • (D). SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNTFROM customers WHERE cust_income_level != NULL AND due_amount != NULL;
  • (E). SELECT cust_first_name, cust_credit_limit * .05 AS DUE_AMOUNT FROM customers WHERE cust_income_level IS NOT NULL AND cust_credit_limit IS NOT NULL;

 

Datalinks.vn

Hello các bạn, mình là Dương Nguyễn tác giả của blog này. Với gần 20 năm làm việc trong lĩnh vực CNTT, VT trong và ngoài nước, mong muốn được chia sẻ kiến thức và kinh nghiệm về database với các bạn đam mê và quan tâm đến lĩnh vực này. Đặc biệt là #OracleDatabase hoặc luyện thi #OCP database admin. Các bạn cần người đồng hành thì alo mình nhé. Call/Zalo: 0765 871 888. Thanks you !.....
0 0 đánh giá
Đánh giá bài viết
Theo dõi
Thông báo của
guest

1 Bình luận
Phản hồi nội tuyến
Xem tất cả bình luận