PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
0 sec ago
Untitled
2 sec ago
Untitled
7 sec ago
Untitled
7 sec ago
Untitled
9 sec ago
Untitled
11 sec ago
HELP
VisualBasic | 13 sec ago
Untitled
14 sec ago
Untitled
By: a guest on
Apr 24th, 2012
| syntax:
None
| size: 0.26 KB | hits: 12 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
WHERE clause null? don't understand
select t1.* from mytable t1
left join mytable t2
on t1.parentid = t2.parentid and t1.rating < t2.rating
join mytable parents
on parents.id = t1.parentid
where t2.rating is null AND parents.name like '%mike%'
create a
new version
of this paste
RAW Paste Data
WHERE clause null? don't understand select t1.* from mytable t1 left join mytable t2 on t1.parentid = t2.parentid and t1.rating < t2.rating join mytable parents on parents.id = t1.parentid where t2.rating is null AND parents.name like '%mike%'