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!

Using a string in joins

Orcl ApexJul 17 2022

Hi All,
I have the string below and I want to use the string in the first, second, and third positions in three join conditions in 3 different subqueries.
The string will always have 3 values separated by a dash "-".
A-B-C

SELECT * FROM t1 WHERE c1 = 'A';
SELECT * FROM t1 WHERE c1 = 'B';
SELECT * FROM t1 WHERE c1 = 'C';

This post has been answered by Frank Kulash on Jul 17 2022
Jump to Answer
Comments
Post Details
Added on Jul 17 2022
6 comments
396 views