Advertisement
CASE WHEN internet_use = 1 AND internet_days = . THEN 1 ELSE 0 END A.pdf
Upcoming SlideShare
Caso de Estudio Home Inventions� un nuevo concepto de Shoppertainme.pdfCaso de Estudio Home Inventions� un nuevo concepto de Shoppertainme.pdf
Loading in ... 3
1 of 1
Advertisement

More Related Content

More from sales88(20)

Advertisement

CASE WHEN internet_use = 1 AND internet_days = . THEN 1 ELSE 0 END A.pdf

  1. CASE WHEN internet_use = 1 AND internet_days = . THEN 1 ELSE 0 END AS internet_flag, room_rate + 20 * (num_guest - 1) AS total_rate_per_night, CASE WHEN internet_flag = 0 THEN total_rate_per_night * nights + 9.95 * internet_days ELSE total_rate_per_night * nights END AS subtotal, subtotal + subtotal * 11.25/100 AS grand_total FROM hotel2019; the answer you gave wasn't correct. this is how the out ought to look; Room number Check-In Date Check- Out Date Number of Guests Internet Use Days of Internet Use Room Rate Grand Total 1291 04/09/2019 04/13/2019 1 YES . $125 $556.25 Person Name goes here Title goes here Room number Check-In Date Check-Out Date Number of Guests Room Rate Grand Total 220 04/03/2019 04/12/2019 5 $205 $2,875.70 241 04/01/2019 04/15/2019 1 $245 $3,849.08 809 04/08/2019 04/15/2019 3 $305 $2,686.69
Advertisement