I have employee records, (say name, dob, address) and a timewritten field, which is time converted to seconds.
This data is written to my index every 5 seconds. Suppose there are 5 records.
Run 1 will write employee records with timewritten as 10 for example.
Run 2, after 5 seconds, will write employee records with timewritten as 15.
And so on.
What is the SQL I can use to get all records of the most recent (max) timewritten?
I'm trying this on Kibana Canvas, where JOINs and IN is seemingly not supported.