Viewing 15 posts - 46 through 60 (of 187 total)
arun.sas (9/28/2009)
select id, item, f_year,sum(case when f_month = 01 then qty else 0 end)/sum(qty)*100 as 'P1',
...
September 29, 2009 at 1:01 am
Ok, I have had a chance to test out your solutions and am glad to say that after a bit of fiddling it is returning the data I need! We...
July 2, 2009 at 9:35 am
Thanks all, I'm out of the office so I'll test your solutions tomorrow.
Just to clarify, what I wanted was to first order the rows in the temp table by number...
July 1, 2009 at 1:26 pm
Allister Reid (6/9/2009)
June 9, 2009 at 6:02 am
To find the median of a result set you have to first order the result set and then depending on the number of items in the set either return the...
June 9, 2009 at 12:40 am
Sorry, here's the full code:
use tempdb
go
create table Test (Product nchar(20), Actual_Rate decimal(14,2), Quantity int)
insert into dbo.Test
select 'A-1015-7658',35.95,1
union all
select 'A-1015-7658',35.95,1
union all
select 'A-1015-7658',120.19,3
union all
select 'A-1015-7658',80.13,2
union all
select 'A-1015-7658',45.39,1
union all
select 'A-1015-7658',45.39,1
;with MedianTest as
(
select Product,
...
June 8, 2009 at 1:33 pm
Florian Reischl (4/3/2009)
Hi DavidThis is quiet similar to another post:
http://www.sqlservercentral.com/Forums/Topic686470-338-1.aspx
There you can also find a very good solution from Bob Hovious.
Greets
Flo
Flo, I managed to do it by following Bob's method!...
April 8, 2009 at 11:57 am
Linda hammell (4/6/2009)
April 7, 2009 at 2:22 am
All,
Thanks for your input, I'll test out all of the suggestions and get back to you but it may take a little time!
April 4, 2009 at 11:54 am
Hi Ramesh,
No, my XML Source is reading data from an Excel file that is in XML format and there are values from the Excel output that I want to store...
April 4, 2009 at 11:52 am
Hi Ramesh,
Slightly different question this time. Using the following:
CREATE TABLE [dbo].[Test](
[name] [varchar](10) NOT NULL,
[jan] [int] NOT NULL,
[feb] [int] NOT NULL,
[mar] [int] NOT NULL,
[year] [int] NOT NULL)
INSERT INTO [dbo].[Test] (name, jan,...
April 3, 2009 at 3:29 am
Thanks Guys but I'm still stuck! Here's a bit more info, firstly I've created a view that PIVOTs the data:
CREATE VIEW PivotData
AS
SELECT id, description, [JAN], [FEB], [MAR], header
FROM dbo.ForecastPartsD
PIVOT (SUM(units)...
April 2, 2009 at 2:57 pm
Thanks both for the quick response, your answers were exactly what I was looking for!
April 2, 2009 at 7:32 am
Viewing 15 posts - 46 through 60 (of 187 total)