LeetCode 1581. Customer Who Visited but Did Not Make Any Transactions
구현 오류 # Write your MySQL query statement below select distinct v.customer_id, count(v.visit_id) as count_no_trans from Visits v where not exists ( select v.visit_id from Visits v, Transactions t where v.visit_id = t.visit_id ) group by v.customer_id; ❌ 이유 ❌ WHERE NOT EXISTS 에서 from Visits, Transactions 가 모두 들어간 것이 오류 💡 from에 여러개의 table을 넣으면 어떻게 될까? from 에 2개의 table을 넣게 되면, 2개의 Table이 그냥 Cartesia..