1
2
3
4
5
6
7
8
|
/* Write your PL/SQL query statement below */
select customer_id, count(visit_id) as count_no_trans
from visits
where visit_id not in (
select visit_id
from transactions
)
group by customer_id
|
cs |
반응형
'SQL' 카테고리의 다른 글
leetcode 1890. The Latest Login in 2020 (0) | 2022.03.30 |
---|---|
leetcode 1484. Group Sold Products By The Date (0) | 2022.03.30 |
leetcode 1795. Rearrange Products Table (0) | 2022.03.30 |
leetcode 1587. Bank Account Summary II (0) | 2022.03.30 |
leetcode 1873. Calculate Special Bonus (0) | 2022.03.29 |
댓글