Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
May 7th, 2018
84
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
SQL
0.14 KB
| None
|
0
0
raw
download
clone
embed
print
report
SELECT
*
FROM
(
SELECT
MAX
(
SUM
)
maxsum
,
fkid
FROM
xxx
GROUP
BY
fkid
)
t1
INNER
JOIN
xxx t2
ON
t2
.
SUM
=
t1
.
SUM
AND
t2
.
fkid
=
t1
.
fkid
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
20 min ago | 15.88 KB
Untitled
20 min ago | 8.75 KB
Untitled
2 hours ago | 7.75 KB
Untitled
2 hours ago | 17.19 KB
Untitled
4 hours ago | 13.18 KB
Untitled
6 hours ago | 7.50 KB
HD2 - destroyed Hardware
Python | 6 hours ago | 0.19 KB
Untitled
8 hours ago | 13.82 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!