Marketing analysts want to understand customer bounce rates—instances where a user visits the store but leaves without making a purchase.
Write an SQL query to find the IDs of the users who visited without making any transactions and the number of times they made these types of visits.
| visit_id(INTEGER) | customer_id(INTEGER) |
|---|---|
| 1 | 23 |
| 2 | 9 |
| 5 | 54 |
| 7 | 54 |
| 8 | 54 |
| 12 | 9 |
| 13 | 30 |
| 19 | 30 |
| transaction_id(INTEGER) | visit_id(INTEGER) | amount(INTEGER) |
|---|---|---|
| 2 | 5 | 310 |
| 3 | 12 | 560 |
| 9 | 19 | 400 |
| customer_id(INTEGER) | count_no_trans(INTEGER) |
|---|---|
| 9 | 1 |
| 23 | 1 |
| 30 | 1 |
| 54 | 2 |