Guest User

Untitled

a guest
Dec 3rd, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. SELECT *
  2. FROM `postcategory` s
  3. WHERE
  4. (
  5. SELECT MAX(`postid`) AS p1, `catid` AS c1
  6. FROM postcategory f
  7. GROUP BY f.`postId`
  8.  
  9. ) <= 2
Add Comment
Please, Sign In to add comment