M
Mark
Hello all,
I am using the TOP argument in a query (below). It works fine as long as I
type the line number in the Where clause. I have 5 lines and I would like to
get the TOP 15 for each of the 5 lines. Is there a way to do this within a
single query,?
Select TOP 15 line, msg, sum(datedif(“â€sâ€â€, stime, ctime) as Duration
From LinsState
Where line = Line 1
Group by line, msg
Order by line, sum(datedif(“â€sâ€â€,stime, ctime) desc
Thanks for looking.
I am using the TOP argument in a query (below). It works fine as long as I
type the line number in the Where clause. I have 5 lines and I would like to
get the TOP 15 for each of the 5 lines. Is there a way to do this within a
single query,?
Select TOP 15 line, msg, sum(datedif(“â€sâ€â€, stime, ctime) as Duration
From LinsState
Where line = Line 1
Group by line, msg
Order by line, sum(datedif(“â€sâ€â€,stime, ctime) desc
Thanks for looking.