I have something like this
name phones
--------- ---------
Bob 5552626
Bob 6668654
Bob 7586666
Select name, phone
from names n, phones p
where n.name_id=p.fk_name_id
and Upper(name)=Upper('Bob')
Is there a way with a single query I can get this result
name phones
--------- ---------------------------
Bob 5552626, 6668654, 7586666
name phones
--------- ---------
Bob 5552626
Bob 6668654
Bob 7586666
Select name, phone
from names n, phones p
where n.name_id=p.fk_name_id
and Upper(name)=Upper('Bob')
Is there a way with a single query I can get this result
name phones
--------- ---------------------------
Bob 5552626, 6668654, 7586666