Viewing 15 posts - 301 through 315 (of 354 total)
Hi again,
I tried using the PIVOT and UNPIVOT script simplifying it to see if I could get rid of the error
DECLARE @SQLHead VARCHAR(8000)
DECLARE @SQLBody VARCHAR(8000)
DECLARE @SQLFoot VARCHAR(8000)
declare @tablename varchar(100)
--my test...
November 26, 2007 at 8:04 am
Well,
I tried doing this in Excel and managed to jig it to look right using the pivot table and charts, but there seems to be some kind of bug in...
November 23, 2007 at 8:21 am
Not got very far with this one.
DECLARE @SQLHead VARCHAR(8000)
DECLARE @SQLBody VARCHAR(8000)
DECLARE @SQLFoot VARCHAR(8000)
declare @tablename varchar(100)
--my test table is call DATA_QUALITY_OVERVIEW_TOTALS_AND_PERCENTAGES
set @tablename='DATA_QUALITY_OVERVIEW_TOTALS_AND_PERCENTAGES'
--===== Populate the variables using info from the table
SET @SQLHead...
November 23, 2007 at 2:28 am
I do have 2005 so Ill give it a go but this is something far advanced to what Im used too 🙁
Ill let you know how I get on. I...
November 23, 2007 at 2:02 am
Ive spent all day trying to figure out how to do this one but Im still stumped :sick:
I know that this is what I want to do though.....
I need to...
November 21, 2007 at 9:51 am
Your right Ill definitely end up aggregating at some point, although Ill probably want to go for 6 months or something.
The data will probably end up being used to...
November 20, 2007 at 8:25 am
Thats right,
This is only one part of a large table which will grow and grow every time we refresh the data set. Its to basically trace the quality of data...
November 20, 2007 at 8:16 am
Ahh I see,
OK Ill try again!
November 20, 2007 at 7:31 am
Ive tried amending the script for my own table
DECLARE @SQLHead VARCHAR(8000)
DECLARE @SQLBody VARCHAR(8000)
DECLARE @SQLFoot VARCHAR(8000)
--===== Populate the variables using info from the table
SET @SQLHead = 'SELECT'
SELECT @SQLBody = ISNULL(@SQLBody+',','') +...
November 20, 2007 at 7:13 am
thanks for that,
Ill have a try and see what I can do!
Debbie
November 20, 2007 at 7:06 am
And after all that I managed to get it working anyway :w00t:
SELECT Q05b.Title, Q05b.Percentage_Of, CAST(CAST(NULLIF(Q05b.PEP,0) AS Decimal)/CAST(NULLIF(Q05.PEP,0) AS Decimal) *100 AS Decimal)AS PEP, Q05b.Quality_Date
FROM #Q05b_PEP Q05b
INNER JOIN #Q05_PEP...
November 19, 2007 at 2:41 am
Of course,
I cant believe I didnt think of that
Thanks
Debbie
September 10, 2007 at 4:08 am
Im being a bit stupid but how does ,2, 8000 work?
Debbie
August 21, 2007 at 6:57 am
Ah I see. So the -1 means everything but the first character.
Thanks for that!
Debbie
August 21, 2007 at 6:52 am
Thanks for that,
I can think of a few other uses for this one so I will definitely give this a go!
Thanks again
August 13, 2007 at 3:20 am
Viewing 15 posts - 301 through 315 (of 354 total)