I was used to using the following query:
Select name,sum(sal) as sum from emp
where date_emp >= "01/01/2003"
group by name
into temp aaa
Select * from aaa
where sum >= 5000
The queries above are just examples. My question is, how do I use this temp table aaa in oracle? It doesn't accept the above statements... of course, I need a more complex query than the above to use it in.
Thanx, Michel.
Michel, São Paulo, Brazil
Select name,sum(sal) as sum from emp
where date_emp >= "01/01/2003"
group by name
into temp aaa
Select * from aaa
where sum >= 5000
The queries above are just examples. My question is, how do I use this temp table aaa in oracle? It doesn't accept the above statements... of course, I need a more complex query than the above to use it in.
Thanx, Michel.
Michel, São Paulo, Brazil