-1
Hello.
I’m consulting a BD where it returns various data from various cars, which are collected by a hardware installed on these. The hardware sends the data every x seconds. Soon each car has several records. Needed to do a query to fetch the last record (complete, all columns) of each car. As the seat is not mine can be inserted or removed columns.
I do not have access to the registration id. Each car is identified by a 'vehicle_id' code composed of a letter and 3 numbers, e.g.: "A001". The way I have to know when the record was sent by the hardware is by a 'date' column that is stored in millisecond format, ex: 1560776363000
If I haven’t been clear please question that I try to explain otherwise.
Thanks in advance.
Hello, thank you so much for your reply. But it didn’t work out. As there are several fields and need of all n gave to use the MAX function and then *. And because the bank is not mine, can be inserted or removed columns, making it impossible to put one by one.
– Gabriel N Silva