Viewing 15 posts - 31 through 45 (of 46 total)
Thanks, I have that for the rows. What I wanted to know was how to add up the columns and have the total below them.
May 28, 2009 at 8:24 am
Bob,
You had said a totals row at end is much quicker and easier. How can I add this last row ? Summing up all the columns ?
May 27, 2009 at 3:23 am
Hello,
What am trying to do is copy data from table A to another table B, all new data from the table A should be copied to table B,...
May 26, 2009 at 11:16 pm
Thanks,
I have created a stored procedure and scheduled it on a job running every 3 minutes. problem is it keeps overwriting data over and over so I tweaked the query...
May 26, 2009 at 10:14 am
It's ok guys. I sorted it out. I had added the cost total as part of the distinct query. This brought about the error.
This is what it should look like.
FROM...
May 26, 2009 at 10:01 am
Thanks Tom for your help,
After running the query I realised there is something amiss.
Going back to the earlier structure
NAME ID 1/2 2/2 ...
May 26, 2009 at 5:48 am
Ok guys, am not a SQL maestro, but I need to know it.
The parameters we were using were hardcoded. They need to be input by the user. I guess this...
May 24, 2009 at 9:51 am
Woohooo ! It worked, it worked ! I wasn't really far from the solution.
I need to understand more about queries If am to move from the simple SELECT statements...
May 23, 2009 at 6:44 am
Am getting this error here : -
WITH ParamQry AS ( SELECT TRANSDATE,COSTTOTAL, U_Casual_N,SUBJOBID FROM dbo.ENPRISE_JOBCOST_JOBLINESVIEW WHERE SUBJOBID = 1007001 AND TRANSDATE BETWEEN '2009-04-08' AND...
May 15, 2009 at 5:42 am
Using Tom's query :-
I have tried adding the total's column here
'SELECT U_Casual_N, SUBJOBID, ' + @DATELIST +
' Total FROM ParamQry ' +
But it overwrites on the last...
May 15, 2009 at 1:41 am
Do you mean the totals at the last row ? I need them at the end of every person. As this query is supposed to produce a list of people,...
May 14, 2009 at 9:34 am
I have now tried both queries. They work wonderfully. The totals line at the end of the report is also a bit important.
How will the T-SQL relate to the main...
May 14, 2009 at 8:27 am
Thanks Tom,
That was quick. I managed to get the answer, here is what I did
I changed the MIN to sum.
select @dynSQL = @dynSQL+',sum(case when TRANSDATE = '...
May 14, 2009 at 6:28 am
Thanks Bob,
However when I two dates with the same entries e.g.
NAME ID AMT DATE ...
May 14, 2009 at 3:00 am
Thanks Tom,
It quite a complex query you've got there, and I was hoping you would explain it. I would like to add subjobid and a date range as parameters....
May 11, 2009 at 9:37 am
Viewing 15 posts - 31 through 45 (of 46 total)