TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sheetal
NA
1
0
SQL Query suggestion when multiple values are stored in 1 column
Jan 28 2012 11:26 AM
Hi All,
I have a column called CountryCdList that has got multiple values stored in it for a row.
For E.g. - AR,CL,CO
I have to write a query based on below dynamically generated WHERE clause based on the profile access to the User.
( U.CountryCdList = 'IND') OR ( PG.CountryCdList = 'IND')
OR
( U.CountryCdList IN ('IND','JP)) OR ( PG.CountryCdList IN ('IND','JP'))
my query works fine if there is only 1 value stored in the CountryCdList column but fails in the above scenario. Please guide me.
Thanks,
Sheetal
Reply
Answers (
1
)
I have a table with duplicate names in i
Random Data