Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. $sql = "SELECT (posledni.rychlost - predposledni.rychlost) FROM (\n"
  2. . " SELECT * FROM `data` ORDER BY `index` DESC LIMIT 1\n"
  3. . " ) AS posledni\n"
  4. . " JOIN (\n"
  5. . " SELECT * FROM `data` ORDER BY `index` DESC LIMIT 1,1\n"
  6. . " ) AS predposledni\n"
  7. . " ";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement