Advertisement
psi_mmobile

Untitled

Jun 25th, 2020
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. SELECT v.vehicle_id,
  2. v.numberplate,
  3. v.company_nr,
  4. v.brand,
  5. v.model
  6. FROM gu_vehicle gv,
  7. vehicle_data vd,
  8. vehicle v
  9. WHERE gv.vehicle_id = vd.vehicle_id
  10. AND vd.vehicle_id = v.vehicle_id
  11. AND gv.gui_user_id = 101712
  12. AND vd.gps_full_date BETWEEN toutcdate(to_date('01/01/2020 00:00:00','dd/MM/yyyy HH24:MI:SS'), 'Europe/Brussels') AND toutcdate(to_date('02/01/2020 23:59:59','dd/MM/yyyy HH24:MI:SS'),'Europe/Brussels')
  13. AND MDSYS.SDO_GEOM.SDO_DISTANCE (mdsys.sdo_geometry(2001,8307, mdsys.sdo_point_type(NVL(vd.wgs84_longitude,0), NVL(vd.wgs84_latitude,0), NULL), NULL, NULL),mdsys.sdo_geometry(2001,8307, mdsys.sdo_point_type(4.277140, 50.766240, NULL), NULL, NULL), 0.0001) < ( 5000 );
  14.  
  15.  
  16. -- original 01/01/2020 20/05/2020
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement