I have a query that is using an explicit JOIN in Oracle, but I would like to transform it to a basic select where
.
Query is :
Select
bla bla bla
from
aMeterilisedView c1
join
aMeterilisedView c2 on c2.id > c1.id and c2.idclient = c1.idclient
join
(select c1.id, AVG(c) as moy
from aMeterilisedView c1
group by c1.id) m1 on c1.id = m1.id
join
(select c1.id, AVG(c) as moy
from aMeterilisedView c1
group by c1.id) m2 on c2.id = m2.id
But for learning purpose I would like to use something similar to
Select bla bla bla
from aMeterilisedView c1
where ....
Union (select etc...
The idea is I don't want to use the "join on" even thought it's much better, but I would like to understand the old basic step by step select where process.