I have this table with millions of records:
I want to get the sum of all running jobs from Start Time to End Time. For example query 1:
Between 1:00 and 4:00 how many jobs were running?
Then here the answer will be 3 (Job1, Job2 & Job7).
I can use joins but want the approach that takes least time for millions of records.
