Hi,
I need to retrieve
1. a total
SELECT SUM(COL1) FROM SOME_TABLE
2. most frequent values
SELECT COL1, COUNT(*) FROM SOME_TABLE GROUP BY COL1
I want to scan the table only once, so I was trying to accomplish both
tasks in one statement. It's Oracle 9i
Any ideas?
TIA
I need to retrieve
1. a total
SELECT SUM(COL1) FROM SOME_TABLE
2. most frequent values
SELECT COL1, COUNT(*) FROM SOME_TABLE GROUP BY COL1
I want to scan the table only once, so I was trying to accomplish both
tasks in one statement. It's Oracle 9i
Any ideas?
TIA
Comment