This may not be the exact solution, i think this would help
Sel Area ,Prod ,csum(1, Area asc) -rank( Area asc )+1 from db.table
Thanks
Sudarsan Thopay
Attachments
Library
Quick Reference
Archives
Sample Index
2002 Indexes