As a Lead System Architect tasked with enhancing a hotel room booking application, your objective is to streamline the booking process by identifying high-value customers. To accomplish this, you have decided to segment customers based on the total revenue generated from their bookings, considering that customers can have multiple bookings. The revenue is calculated by summing the amounts of all bookings made by each customer. Customers will be categorized as follows: Silver: Total booking amount is less than $500. Gold: Total booking amount ranges from $500 to $2000. Platinum: Total booking amount exceeds $2000. You want to use SQL functions for efficient customer categorization. Which SQL function code correctly determines the customer categories?
Submit