Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to fetch the records which matches a partial value?

549379Nov 1 2009 — edited Nov 1 2009
Hi,

I have a table called Employee which contains the following value in Category column

ID Value
1 Student,Staff
2 Staff
3 Parent,Student
4 Member,Staff,Student

I wanted to fetch only 1 and 3rd and 4th record since it matches the value Student.
basically looking for the exact pattern matched with student separated by comma.
how to perform this query. it would be great, if i get the query in MS Sql also.

Edited by: Pannar on Nov 1, 2009 7:08 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 29 2009
Added on Nov 1 2009
7 comments
941 views