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!

Split colon separated values and use them in where clause

OraDev16Oct 9 2018 — edited Oct 9 2018

Hi All,

         I've the following two tables:

create table jobs(

job_id number,

job_code varchar2(20));

insert into jobs values(1, 'Admin');

insert into jobs values(2, 'Operator');

insert into jobs values(3, 'Developer');

insert into jobs values(4, 'Tester');

insert into jobs values(5, 'Designer');

create table emps(

emp_id number,

job_codes varchar2(20));

insert into emps values(10, '1:3:4');

insert into emps values(20, '2:5');

insert into emps values(30, '3:4:5:1');

commit;

Query - Display the employee code and the job_codes they have in their profile.

Thanx.

This post has been answered by mNem on Oct 9 2018
Jump to Answer
Comments
Post Details
Added on Oct 9 2018
14 comments
4,226 views