I have four WITH clauses. I wanted to know if it is possible to use inner joins among them.
I searched on the net and i could not find anything related to this.
Oracle version: 11g
** EDIT **
WITH
GETDATABYDAY AS
(
select column1, column2
from table1
where sales > 2000
)
SELECT
column1,
column2
FROM
GETDATABYDAY;
WITH
GETDATABYDAY1 AS
(
select column3, column2
from table1
where date between 'date1' and 'date2'
)
SELECT
column3,
column2
FROM
GETDATABYDAY1;
Assume that there are two more WITH named: GETDATABYDAY2 and GETDATABYDAY3
Is it possible to use inner join on all GETDATABYDAY, GETDATABYDAY1, GETDATABYDAY2 and GETDATABYDAY3?
Something like this will work: