SHARE
TWEET

Untitled

a guest Mar 23rd, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT gg.ts AS time, fv.license_plate AS mobil, SUM(gg.totaldistance) AS mileage, (SUM(gg.totaldistance)/fr.distance) AS ritase
  2. FROM fleet_vehicle fv
  3. LEFT JOIN gpswox_device gd ON gd.id = fv.gpswox_id
  4. LEFT JOIN gpswox_gps gg ON gg.name = gd.id
  5. LEFT JOIN fleet_route fr ON fr.id = fv.route_id
  6. WHERE gg.ts = '2019-03-22 11:48:56'
  7. GROUP BY gg.ts, fv.license_plate, fr.distance
  8. LIMIT 10
RAW Paste Data
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!
 
Top