Viewing 15 posts - 1,681 through 1,695 (of 8,416 total)
LutzM (9/19/2011)
September 19, 2011 at 2:40 pm
Evil Kraig F (9/19/2011)
Paul, remember when I mentioned in that other thread that Partitioning seems to be a Level III item? 🙂
Indeed. Perhaps we need more partitioning questions?
September 19, 2011 at 1:12 pm
daveriya (9/19/2011)
September 19, 2011 at 11:57 am
Chad Crawford (9/19/2011)
September 19, 2011 at 11:29 am
daveriya (9/19/2011)
my question is after i do proportion .again i need to do sum of all proportion and i need to display in row how to do that
This is one...
September 19, 2011 at 11:12 am
Jeff Moden (9/19/2011)
September 19, 2011 at 8:41 am
Jeff Moden (9/18/2011)
"Unordered"... have you an example of when ROLLUP produces incorrectly ordered results?
I don't need one: presentation order is never guaranteed unless there is an outer-scope ORDER BY clause....
September 18, 2011 at 7:35 pm
Jeff Moden (9/18/2011)
Leveraging Paul's code from above, please note the replacement of ORDER BY with WITH ROLLUP in the following code...
That produces the following (unordered) set:
...which doesn't seem to take...
September 18, 2011 at 2:51 pm
ALZDBA (9/18/2011)
probably about the only thing missing to get a meaningful result is the product indication:
The original specification calls for quantity, not total price (that's why I used COUNT in...
September 18, 2011 at 2:42 pm
Having said all that, writing cursor code is a pretty poor way to learn to use SQL Server. Once you have written the required solution using a loop or...
September 18, 2011 at 11:44 am
pathuripr (9/17/2011)
September 18, 2011 at 11:10 am
shatrughna (9/18/2011)
Hi,If you want to write function then you need to do small changes in T-SQL.
CREATE FUNCTION [dbo].[Total]
(
@Amt INT
)
RETURNS INT
AS
BEGIN
DECLARE @TSUM INT
SELECT @TSUM = SUM(@Amt)
RETURN @TSUM
END
:blink: What would be...
September 18, 2011 at 6:57 am
Tom.Thomson (9/17/2011)
Yes, come on Jason - admit that the only reasonm you changed the U to an E was so that we wouldn't find your picture here.
Now that makes much...
September 17, 2011 at 6:07 pm
Hey Steve,
Six posts to go.
Cheers.
September 17, 2011 at 5:48 pm
SQLRNNR (9/17/2011)
I was fully expecting to see this thread over 30,000 by this time.
Shouldn't it be Cirque Du SQLeil?
No doubt it's been mentioned before...it just always jars my brain a...
September 17, 2011 at 4:42 pm
Viewing 15 posts - 1,681 through 1,695 (of 8,416 total)