May 19, 2012  
   Login  
Forum  
 
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...Like Parameter Implementation(Wild Card Option)Like Parameter Implementation(Wild Card Option)
Previous Previous
 
Next Next
New Post
 4/22/2010 7:04 AM
 

HI

I have written the query below mentioned for giving search parameter that if user enters any word ,the data set will bring information which starts with that word. ,but i am not getting any results.

Can anybody help me that How to implement this Condition in my data set.

WHERE NSCC_x0020_Subject LIKE@Search!+'%'
I am using RS 2008 Version.
Thanks

New Post
 4/22/2010 12:55 PM
 
 Modified By Frédéric LATOUR  on 4/22/2010 1:19:26 PM

Hi,

The '%' needs to be in the parameter value.

[Edit] You can concatenate using the following approach: WHERE NSCC_x0020_Subject LIKE @Search! || '%'

That said, I would highly recommend to filter at the "List" level by using a contains condition. This will perform much better.

[Edit] Even better in your case, you will use a "BeginsWith" condition at the "List" level.

Let me know if you have any questions.

Regards,


Frederic LATOUR
ENESYS
New Post
 4/22/2010 10:11 PM
 

Thanks for quick response,

it is very useful to me...

Anitha

Previous Previous
 
Next Next
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...Like Parameter Implementation(Wild Card Option)Like Parameter Implementation(Wild Card Option)

 
You need to login for posting to the forums.
If you don't have a login, click here to register.
 
Copyright 2010 Enesys - All rights reserved Terms Of UsePrivacy Statement