Find customers who purchased 3 or more books on both the first and last day of sales, excluding those with only one transaction.
Use the provided customer, book, and book-sales data. Treat a book's quantity as the number purchased and count distinct transaction IDs.
Output
- One row per qualifying customer with
customer_id, customer_name, first_day_books, last_day_books, and transaction_count.
- Include only customers meeting both daily thresholds and having more than one transaction.
- Order by
customer_id ascending.