Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have a table of sales in your database. The columns of the table include : PurchaseDate and PurchaseAmount. You have decided to apply a

You have a table of sales in your database. The columns of the table include : PurchaseDate and PurchaseAmount. You have decided to apply a discount of 5% on purchases made in the month of December. You are going to design a query where you will be adding a calculated column that shows the discount applicable on each purchase. If the purchase is not made in December, no discount should be applied. Choose the correct expression to calculate the discount:
Group of answer choices
Discount: If(DatePart("m",[PurchaseDate])=12,[PurchaseAmount]*0.05,0)
Discount: IIf(DatePart("m",[PurchaseDate])=12,[PurchaseAmount]*0.05,0)
Discount: If(DatePart("m",PurchaseDate)=12,PurchaseAmount*0.05,0)
Discount: IIf(DatePart("yyyy",[PurchaseDate])=12,[PurchaseAmount]*0.05,0)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions