Skip to content

Commit 764ba06

Browse files
committed
Time: 1215 ms (65.59%) | Memory: 0B (100.00%) - LeetSync
1 parent b8d342b commit 764ba06

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Write your MySQL query statement below
2+
SELECT customer_id, COUNT(v.visit_id) AS count_no_trans
3+
FROM Visits v
4+
NATURAL LEFT JOIN Transactions t
5+
WHERE t.visit_id IS NULL
6+
GROUP BY customer_id;

0 commit comments

Comments
 (0)