Viewing 15 posts - 106 through 120 (of 1,114 total)
yup. The below query worked fine.
create table W
(
ID int,
acc_no varchar(5),
val varchar(255)
)
insert into W
select 100,'a1','D,20987987.5%,,A account is being linked to B account'
union all
select 100,'a2','D,20987987.5%,,A account is being linked to B...
August 19, 2011 at 1:11 am
hey Jeff...
Actually we are using both the version. i.e. 2005 and 2000. moreover the logic needs to be implemented in both the server. Thats why i asked for 2000 too....
August 19, 2011 at 12:44 am
yes. the requirement got changed little bit yesterday night. the business user wants to add some more column in the report.
yes, say for example we GROUPED or generated numbers based...
August 18, 2011 at 5:14 am
yeah..i have also tried the same...Thanks a lot for all your help.
is there any way to achieve my requirement without using temporary table/IDENTITY/ROW_NUMBER?
August 18, 2011 at 12:18 am
is there any way to generate the sequencte number without using ROWNUMBER() or CREATE TABLE WITH IDENTITY on the fly?
I can use something like below
select no from
(select 1...
August 17, 2011 at 8:43 am
i got it...i have to use the same query in Sql2000 too..:(
we used ROWNUMBER()...
August 17, 2011 at 8:40 am
Tally with GROUP BY ...?
i am not getting you...
August 17, 2011 at 8:38 am
Yeah..Thats correct..and good catch...
But the requirement is to do this against the table data instead of input parameter
..
August 17, 2011 at 8:37 am
I just came to know i need to implement the same against a table data.
CREATE TABLE W
(
ID INT,
val varchar(255)
)
insert into W
select 100, 'D,20.5%,10.25%,A account is being linked to B account'
union
select...
August 17, 2011 at 8:33 am
I DID SOMETHING LIKE BELOW....
declare @_sPlatform varchar(1024)
select @_sPlatform = 'D,20987987.5%,10.25876767868%,A account is being linked to B account'
declare @t1 varchar(255), @start_pos int
declare @t2 varchar(255)...
August 17, 2011 at 8:21 am
...the position of comma may vary..
say for example...
D,20.5454545454%,178780.2323225%,A account is being linked to B account'
August 17, 2011 at 6:43 am
DECLARE @Parameter VARCHAR(255)
SELECT @Parameter = ',' + 'D,20.5%,10.25%,A account is being linked to B account'+ ','
SELECT SUBSTRING(@Parameter,N+1,CHARINDEX(',',@Parameter,N+1)-N-1)
FROM dbo.Tally WHERE N < LEN(@Parameter) AND...
August 17, 2011 at 6:19 am
I never mistake your words..you said the right things..actually..i also suggest the same to other posters..
i just receive only one value through input parameter which i posted in my question.
declare...
August 17, 2011 at 6:12 am
Hey..Mark..I'm sorry..
Both the query is working fine. I appreciate you guys help...
July 11, 2011 at 3:49 am
Viewing 15 posts - 106 through 120 (of 1,114 total)