Sql-server Database query help

Posted by menacheb on Stack Overflow See other posts from Stack Overflow or by menacheb
Published on 2010-04-18T09:58:55Z Indexed on 2010/04/18 10:03 UTC
Read the original article Hit count: 377

Filed under:
|

Hi,
I have a Database (Sql-server) with table named 'ProcessData' and columns named 'Process_Name' (Data Type: nvarchar(50)), 'Start_At' (DataType: DateTime) and 'End_At' (Data Type: DateTime).
I need to konw for each 'Time-Interval' (let's say 1 second) how many processes (Process_Name = PN) was open (after or equal to the 'Start_at' column and before or equal to the 'End_At' column) during this time (It can be a few rows with the same data).
Does anyone know how to make this query?
Many thanks,

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about query