Viewing 11 posts - 1 through 11 (of 11 total)
twin.devil (12/23/2015)
December 23, 2015 at 5:44 am
Peter Brinkhaus (12/23/2015)
Thanks, you guys are good at this.
December 23, 2015 at 5:43 am
Peter Brinkhaus (12/23/2015)
SELECT
ca.n, t.cl_t, t.cl_a,
CASE...
December 23, 2015 at 3:43 am
twin.devil (12/23/2015)
December 23, 2015 at 12:28 am
drew.allen (12/22/2015)
Please provide sample data and expected results as has already been requested. That does much more than trying to explain it.
Drew
USE [tempdb]
GO
IF OBJECT_ID('[tempdb].dbo.tb_a', 'U') IS NOT NULL DROP...
December 22, 2015 at 11:03 pm
J Livingston SQL (12/22/2015)
Hi...think some scripts / sample data and expected results will help please.see here for good practice
http://spaghettidba.com/2015/04/24/how-to-post-a-t-sql-question-on-a-public-forum/
Just seen your link!! Will reformat. Thanks.
December 22, 2015 at 4:33 pm
Hi
Well the 10 rows constraint is supposed to help in 'batching', i.e. We focus on the sums of up to 10 rows for each row in the table. But let...
December 22, 2015 at 1:22 pm
Okay here is an example
The column cl_a has values (1,2,3,4,5,6)
And for simplicity let's say the total rows to be fetched when computing the sums is only 3 and not 10...
December 22, 2015 at 1:18 pm
Thanks, but the solution provided by Drew is scalable, which is what I wanted. Thanks any way
December 16, 2015 at 10:29 am
Thanks A LOT!! This is exactly what I was looking for!
Thanks again 🙂
December 16, 2015 at 10:27 am
Hello,
I have a similar problem. The difference is the number of sums returned is variable, i.e. it is determined by an input parameter.
How do I code this?
December 13, 2015 at 12:00 am
Viewing 11 posts - 1 through 11 (of 11 total)