Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    I guess you can always add UNION and select last row only Commented Oct 21, 2015 at 11:02
  • HAVING @i = @numrows OR ( @i := @i + 1) MOD @everyNthRow = 1 Commented Oct 21, 2015 at 11:04
  • #Veljko89, I already tried that, but when I add the following command: 'UNION SELECT * FROM plotdata ORDER BY id DESC LIMIT 1' to what you see above, I only get the last record? Commented Oct 21, 2015 at 11:07