Which of the following statements best describes what this SELECT statement does? SELECT invoice_number, invoice_date, C

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Which of the following statements best describes what this SELECT statement does? SELECT invoice_number, invoice_date, C

Post by answerhappygod »

Which of the following statements best describes what thisSELECT statement does? SELECT invoice_number, invoice_date, CASEWHEN (SYSDATE() - invoice_date) >= 30 AND (SYSDATE() -invoice_date) < 60 THEN invoice_total ELSE 0 END AS "30-60",CASE WHEN (SYSDATE() - invoice_date) >= 60 AND (SYSDATE() -invoice_date) < 90 THEN invoice_total ELSE 0 END AS "60-90",CASE WHEN (SYSDATE() - invoice_date) > 90 THEN invoice_totalELSE 0 END AS "Over 90" FROM invoices
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply