تفاصيل العمل

The query is designed to count the number of hotel cancellations based on the "lead time," which is the number of days between the booking date and the arrival date. It groups the cancellations into three distinct time periods and presents the results in a single table.

Here is a breakdown of what the query does:

First SELECT statement: Counts cancellations where the lead time is between 0 and 30 days. It labels this period as "(0-30) days."

Second SELECT statement: Counts cancellations where the lead time is between 31 and 90 days. It labels this period as "(31-90) days."

Third SELECT statement: Counts cancellations where the lead time is 91 days or more. It labels this period as "(91+) days."

UNION ALL: This operator combines the results of the three SELECT statements into a single result set, creating one comprehensive table that shows the total cancellations for each lead time period

بطاقة العمل

اسم المستقل
عدد الإعجابات
0
عدد المشاهدات
4
تاريخ الإضافة
تاريخ الإنجاز
المهارات