강의

멘토링

커뮤니티

Inflearn Community Q&A

min9906050759's profile image
min9906050759

asked

[A hundred words are not as good as seeing once] Advanced SQL for data analysis

[Advanced] DELETE Problem Solving + DELETE with INNER JOIN

a.id = 1과 b.id=1이 없어도 되는 이유

Written on

·

116

0

p1. id | p1.email | p2.id | p2.email

1 | john@example.com | 1 | john@example.com X

1 | john@example.com | 3 | john@example.com O

2 | bob@example.com | 2 | bob@example.com O

3 | john@example.com | 1 | john@example.com X

3 | john@example.com | 3 | john@example.com X

여기서 p1.id=1과 p2.id=1인 경우에도 지워줘야 한다 하셨는데 그 이유가 혹시 p1.id=1과 p2.id=3으로 id가 1인 경우가 지워지지 않고 있기 때문에 없어도 된다 하신 걸까요?

sql

Answer

This question is waiting for answers
Be the first to answer!
min9906050759's profile image
min9906050759

asked

Ask a question