Skip to content

Tag: sql-server

Retrieve data from two different rows in a single SQL query?

I’ve a table with the following data and I need to find the number of minutes between two jobs (Say A and C). The following query works but wondering, if there is a simpler way to achieve the same. Goal is to achieve, the difference between start time and end time of two jobs. Answer I can interpret you…