Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
iimblack
on March 5, 2020
|
parent
|
context
|
favorite
| on:
Handling Null Values in Postgres
Doesn't this produce different output? I could be wrong but I think your code is more equivalent to an inner join, not a left outer join.
magicalhippo
on March 5, 2020
[–]
Oh yeah you're right, I read the comment above the query and assumed he wanted only customers which had orders.
Could just modify it to exclude the orders above 100 ("where not exists"...), no?
iimblack
on March 6, 2020
|
parent
[–]
Yes, that should work.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: