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
Nagi A
1.3k
402
12k
Regex needed
Oct 20 2015 11:17 AM
Hi,
I have a tables named Persons (Name varchar, ID int, RelationshipId varchar) and Relationship (RelationshipId varchar, RelationName varchar).
Here is the Data in tables,
Person Table
Name ID RelationshipId
XX 1 1
YY 2 1,2
ZZ 3 2
AA 4 3
Relationship Table
RelationshipId RelationName
1 Employee
2 Officer
3 Customer
4 NoRelation
RelationshipId values are dynamic in Person table. it may have multiple values in each cell. it will change dynamically, when it is upated from application.
I want replace RelationshipId with RelationName from Relationship table in Person table.
Please suggest query, regex to get as below,
Person Table
Name ID RelationshipName
XX 1 Employee
YY 2 Employee,Officer
ZZ 3 Officer
AA 4 Customer
Reply
Answers (
3
)
Subtracting quantity of store table from cart table
SELECT FALSE|| TRUE AS val FROM DUAL ?? i m expexting true