SQL Developer (MOSC)

MOSC Banner

add row header to query to count records

in SQL Developer (MOSC) 4 commentsAnswered ✓

Hi all,

I have a query that has over 10k records, I would like to divide the records every 3k records to a report. I will add two columns (Row Total and Row Header) that will show total number of rows and next column want the count to reset every 3k rows. I am thinking I need to use

nvl(COUNT(*) OVER(), 0)   total_rows

but I am not sure what to use to reset the count every 3k records. Any idea?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center