December 6, 2011 at 5:00 am
I used or in to the storeprocedure,
It executed but not taking id's for all conditions,
I mean to say,
i have streamid in my transition table like
%,519%
%,519,%
%519,%
%519%'
so i gave the condition
where b.coursetypeid=@CourseId and b.degreeid=@DegreeId
and b.streamgroupid LIKE '''%,'+@streamid+',%'''
or b.streamgroupid LIKE +@streamid+',%'+''
or b.streamgroupid LIKE ''+'%,''%'+@streamid+''
or b.streamgroupid LIKE +@streamid+'%'
but it showing the record of only LIKE +@streamid+'% condition... [Sad]
Is there any problem in syntax of other one?????
Thanks & Regards,
Pallavi
December 6, 2011 at 5:07 am
Try With This Where Condition.....
and b.streamgroupid LIKE '%'+','+@streamid+','+'%'
and b.streamgroupid LIKE @streamid+','+'%'
and b.streamgroupid LIKE '%'+','+'%'+@streamid
and b.streamgroupid LIKE @streamid+'%'
end
December 6, 2011 at 5:13 am
Duplicate post, work in progress here.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
December 6, 2011 at 5:13 am
Yes ,
It's working..
Thank you very much ๐
Thanks & Regards,
Pallavi
December 6, 2011 at 5:17 am
Which Where Condition u used ..Tell me...:-D
December 6, 2011 at 5:20 am
conditions were right but syntax of like condition was wrong thats why it was showing wrong data...
but now it's working
if any problem then i'l let you know..
thanks for ur valuable time.
Thanks & Regards,
Pallavi
December 6, 2011 at 5:22 am
Yes Exactly....:-D
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply