happyIndian100
Programmer
Hi Every one,
can any one help me to write this query. I have a Database table called "User" and it have UserID(Int(4)) and Roles(varchar(50)) Feilds.
Sample data is like this:
UserID Roles
----------------------------------
A 2
B 3
C 2,3,4
D 3,4
E NULL
F NULL
G 5
H 6,7
I need to get all the records whose Roles are 2,3,4
i.e., i need to get UserIDs (A,B,C,D) with the query.
Please Help....
can any one help me to write this query. I have a Database table called "User" and it have UserID(Int(4)) and Roles(varchar(50)) Feilds.
Sample data is like this:
UserID Roles
----------------------------------
A 2
B 3
C 2,3,4
D 3,4
E NULL
F NULL
G 5
H 6,7
I need to get all the records whose Roles are 2,3,4
i.e., i need to get UserIDs (A,B,C,D) with the query.
Please Help....