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!

select data from table with multiple values for one column in select statement

ReemaPuriMay 23 2019 — edited May 23 2019

create table test

(

email varchar2(1000),

id    number ,

role varchar2(100));

insert into test values('reema@gmail.com',1,'ADMIN');

insert into test values('reema@gmail.com',2,'SECURITY');

insert into test values('sheena@gmail.com',3,'ADMIN');

which operator is to be used to get the result like below  distinct email id having both role ADMIN and SECURITY

email

----------

reemapuri@gmail.com

This post has been answered by BrunoVroman on May 23 2019
Jump to Answer
Comments
Post Details
Added on May 23 2019
5 comments
7,556 views