Question: Imagine you have a database table with columns: phoneid, time, gps_latitude, gps_longitude. Assume these records are logged approximately every few seconds for every phone. Your
Imagine you have a database table with columns: phoneid, time, gps_latitude, gps_longitude.
Assume these records are logged approximately every few seconds for every phone. Your task is to detect speeding:
Write a database query (in SQL) to find anyone whose *average* speed is between 90 and 200mph for at least a minute. If can't write SQL query, write detailed procedural speudo code (assume input is coming from a comma delimited text file).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
