3 ms·Most queries to kdb+ do exactly what you are asking for.by leprechaun1066 4y agoMost queries to kdb+ do exactly what you are asking for.