Question: #17 DateValue is a date column that contains the posting date of a transaction. A query should label each transaction based on how many days
\#17 DateValue is a date column that contains the posting date of a transaction. A query should label each transaction based on how many days have elapsed since the transaction was posted. The requested ranges are 0-30 days, 3160 days, 6190 days, and greater than 90 days. How does the following CASE statement fail to label the transactions appropriately? CASE WHEN DATEDIFF(d, DateValue, CURRENT_TIMESTAMP) =90 THEN ' 6190 days' WHEN DATEDIFF(d, DateValue, CURRENT_TIMESTAMP)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
