Hi, I need fast answer (I can't check that code right now):
is that query works ? I need to get the total sum of a column values from the subquery, something like that:
select sum(select time from table) as sometimes group by sometimes
Hi, I need fast answer (I can't check that code right now):
is that query works ? I need to get the total sum of a column values from the subquery, something like that:
select sum(select time from table) as sometimes group by sometimes
That doesnot work, try this
select sum(time) as sumtime from table
I doesn't appear that you even NEED a subquery, as this will work:
SELECT SUM(Time) as TimeSum
FROM Table