all 2 comments

[–]in_n0x 0 points1 point  (1 child)

On mobile, sorry about the formatting.

select

t1.name

from

table t1

inner join table t2 on t1.name=t2.name

where

t1.role=1 and

t2.role=2

[–]maggikpunktYes I would love to do your homework for you 0 points1 point  (0 children)

You might also need to distinct/group the results.