Add promotional campaign evaluation

This commit is contained in:
2024-11-20 14:18:47 +01:00
parent 33e6f1849a
commit 8683007ea6
4 changed files with 230 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
select
C.FirstName,
C.LastName,
C.PhoneNumber,
C.EmailAddress,
max(O.BillAmount) as MaxBillAmount
from Orders as O
inner join Bookings as B on O.BookingID = B.BookingID
inner join Customers as C on B.CustomerID = C.CustomerID
group by C.CustomerID
having MaxBillAmount > 60.00;