Olá pessoal,
a situação é a seguinte, necessito realizar um número de selects para realizar uma condição, somente um dos selects
vai satisfazer essa condição…
um exemplo…
select a.nome from tableA a, tableB b, tableC c where a.id = b.id and b.id=c.id;
select a.nome from tableA a, tableX x, tableY y where x.id = y.id
Como faço para usar esses diferentes select, em diferentes tabelas em uma única instrução select…
Cada select em separado funciona perfeitamente, entretanto ao juntar para uma única declaração… dá erro…
Já tentei assim
select nome
from
select a.nome from tableA a, tableB b, tableC c where a.id = b.id and b.id=c.id
or
select a.nome from tableA a, tableX x, table y where x.id = y.id
e não funcionou…