-
1581. Customer Who Visited but Did Not Make Any Transactions mysqlLeetCode_Study_Plan/SQL 2022. 9. 30. 14:54
https://leetcode.com/problems/customer-who-visited-but-did-not-make-any-transactions
select v.customer_id, count(*) as count_no_trans from visits v left join transactions t on v.visit_id = t.visit_id where t.transaction_id is null group by v.customer_id;
'LeetCode_Study_Plan > SQL' 카테고리의 다른 글
197. Rising Temperature mysql (0) 2022.09.30 1148. Article Views I mysql (0) 2022.09.30 175. Combine Two Tables mysql (0) 2022.09.30 1795. Rearrange Products Table mysql (0) 2022.09.29 1965. Employees With Missing Information mysql (0) 2022.09.29