Viewing 5 posts - 1 through 5 (of 5 total)
very good script practice question for beginners like me. I really love the answers.
December 8, 2009 at 11:45 pm
Please try the following, I am also learner, please tell me if any thing wrong in my query, as per my tests it is giving correct results.
Select studentId,
casewhen percentage>=0 and...
December 4, 2009 at 12:47 am
Thank you Nabha. You made sound points.
December 3, 2009 at 12:16 am
I think the following is the better code to split the string seperated by comma.
Declare @inputString varchar(1000)
set @inputString='1,2,3,5,6,7,8'
while(charindex(',',@inputString)>0)
begin
print substring(@inputString,1,charindex(',',@inputString,1)-1)
set @inputString=stuff(@inputString,1,charindex(',',@inputString,1),'')
end
December 3, 2009 at 12:11 am
I could not get you Sir!
December 2, 2009 at 10:25 pm
Viewing 5 posts - 1 through 5 (of 5 total)