Viewing 12 posts - 16 through 27 (of 27 total)
Yes, thats exactly what I needed. You make it look so simple
Thank you very much, this was extremly helpful
steve kinnaman
July 5, 2009 at 2:53 pm
Thank you Wayne. Thanks to you I even figured out how to retain the space in the swedish zip by adapting your script like this:
select
[ZIP]...
June 11, 2009 at 7:09 pm
What I need is the sum of the ytd_stat for each GAC.
that means one GAC per customer. The problem was to sum up (ydt_stat) for each GAC since some...
June 8, 2009 at 6:56 pm
Whats wrong with this query (your [brilliant]suggestion):
select
Custn
, max(convert(int,Prod))as prod
, max(pers) as pers
, gac
, sum(cast(YTD_stat as float)) as ytd_stat
from dbo.YTD_nni
group by Custn, gac
The results below seem to be exactly...
June 8, 2009 at 6:41 pm
I think you did it! This query seems to do the trick:
select
custn
, max(convert(int,Prod))as prod
, max(pers) as pers
, gac
, sum(cast(YTD_stat as float)) as ytd_stat
from dbo.YTD_nni
group by Custn, gac
order by...
June 8, 2009 at 6:17 pm
It would be the first occurring value.
Each prod will be unique when summed up.
the pers will be the same for each custn
June 8, 2009 at 5:43 pm
To allistair
The aggregate function for prod and pers is a problem for me.
the pers will always be the same for each [custn].
I need to group each [prod]
but I don't know...
June 8, 2009 at 5:32 pm
Gsquared, your tip works perfectly
April 1, 2008 at 1:25 pm
I tried below but just get an error, obviously wrong syntax. I tried also putting dbo.sasimp.enddate inside ( but same error. this is my problem, i can't...
April 1, 2008 at 9:58 am
And the solution is!:
select textinfo from ovriga
where
(DATALENGTH(dbo.OVRIGA.textinfo) between 2047 and 4092)
April 2, 2005 at 9:20 am
What I'm trying to do is get an output with column headears Ovr_id, textinfo, and adr_id, but I maximun size of the textinfo is 2046 characters. The results will be...
February 17, 2005 at 5:29 pm
I don't quite get it. the columns I'm interested in extracting chunks of text from is textinfo. the following statement gives the answer to the select statement and an answer...
February 16, 2005 at 6:53 pm
Viewing 12 posts - 16 through 27 (of 27 total)