Foxhole Atheist
Tuesday, February 28, 2012
Join imitating not exists
select
*
from
(
select
1 id
,
'herby'
name
union
select
2 id
,
'john'
name
)
a
left
join
(
select
1 id
,
23.56 amount
)
b
on
a
.
id
=
b
.
id
where
b
.
id
is
null
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment