Skip to content

Commit 618c58a

Browse files
committed
Update 1581. Customer Who Visited but Did Not Make Any Transactions.sql
1 parent 25a9394 commit 618c58a

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+
# Write your MySQL query statement below
3+
SELECT customer_id, COUNT(*) as count_no_trans
4+
FROM Visits
5+
WHERE visit_id NOT IN (SELECT DISTINCT visit_id FROM Transactions)
6+
GROUP BY customer_id;

0 commit comments

Comments
 (0)