Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> join in SQL
Hi,
I have a question on table joins :
Consider 3 tables : A, B and C.
A contains a reference to C and a value :
a.c_id = c.id
B only contains a reference to A and C :
b.c_id = c.id and b.a_id = a.id
C only contains a value
Consider now, that I want to know all group (a.value;c.value) and that B is empty.
the result is always "no row selected" even if this request don't return "no row.." :
select a.value AV, c.value, AC from a, b, c
where
b.c_id = c.id and b.a_id = a.id;
UNION ALL
select a.value AV, c.value, AC from a, c
where a.c_id = c.id;
---
But, it is not a simply way to build a more complex request.
thanks for help.
Gerard Le Comte Received on Thu Nov 06 1997 - 00:00:00 CST
![]() |
![]() |