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
Recent Threads
Attachments
Library
Quick Reference
Useful Links
Rules of Conduct
FAQs
Join the Forum
Archives
Sample Index
2002 Indexes