Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Help!Delete only some rows
Hello,
i guess i have a very strange problem! An interface is sending data! I
write them into a database (table1) with java! After six rows, i have to
use the average command and write the datas of the 6 rows into another
table (table2).
The avg- and the insert- functions into the other table are working
fine!
Now my problem: How can i programm it that the avg- function is only
using six rows and not more! And how can i delete the six rows after the
average function and the insert command is done?
Here is my SQL code:
insert into table2 (column1, column2, column3, column4)
select avg(column1),
avg(column2), avg(column3), avg(column4)
Thanks in advance!!
Josef Teepe Received on Thu May 14 1998 - 13:16:19 CDT
![]() |
![]() |