Hi,
I need to get results from a datatable.Select where this column contains long string.
User searches with multiple terms at a time.
For Example
If user is searching as Injection Spine ::
I am having 10,000 rows in a column.
Now i need to show rows where it matches both Injection and Spine. I do not know where these 2 terms will be in that string.
So, i need to use Like Condition. I am not sure how i can use it. Following are eight sample lines of data out of user should get only first line and second lines only while other all lines contains string Injection, but not Spine.
Injection/Aspiration of Spine, Diagnostic/Therapeutic
Injection procedure, arterial, for occlusion of arteriovenous malformation, spine
Injection, intralesional; up to and including 7 lesions
Injection, intralesional; more than 7 lesions
Subcutaneous injection of filling material (eg, collagen); 1 cc or less
Subcutaneous injection of filling material (eg, collagen); 1.1 to 5.0 cc
Subcutaneous injection of filling material (eg, collagen); 5.1 to 10.0 cc
Subcutaneous injection of filling material (eg, collagen); over 10.0 cc
Injection(s); single tendon origin/insertion
Thanks In advance.
What I have tried:
DataRow[] ProRow = MainDS.Tables["Table1"].Select("LDesc Like '%" + SearchTerm + "%' And Active = 1 and Type in('CPT')");