Skip to content

Commit f9ef846

Browse files
committed
1581
1 parent 1b32b70 commit f9ef846

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Write your MySQL query statement below
2+
SELECT
3+
customer_id,
4+
COUNT(*) AS count_no_trans
5+
FROM
6+
Visits
7+
LEFT JOIN
8+
Transactions
9+
ON
10+
Visits.visit_id = Transactions.visit_id
11+
WHERE
12+
Transactions.visit_id IS NULL
13+
GROUP BY
14+
customer_id;

0 commit comments

Comments
 (0)