Need to group by
I have a database table that stores jobs information. Everyday approximately 10000 jobs would be submitted on it through out the day. At any point of time, If I want to know how many jobs would be running at that perticular time, what would be the query?
Table columns
Job Id
Job Start Time Stamp
Job End Time Stamp
Job Status
Please not that we need to generate report for the jobs that were already executed in the past. So, the job status would be either success or failre. Please help.