By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,851 Members | 1,668 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,851 IT Pros & Developers. It's quick & easy.

Finding top x percent of data

P: n/a
I am trying to do the following w/ SQL for db2 9...
I want to find the top x percent of rows. For example, if i wanted to
find the average sale price of the top 10 most expensive items in a
store, how could I go about doing that, w/o a stored procedure? I've
been searching, and have come across many solutions for other RDBMS,
but not yet for DB2.

Thanks in advance.
Dec 5 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Could you give us a solution in other RDBMS that does successfully
what you want to achieve?

Cheers,
Sanjuro

On Dec 5, 2:18 pm, nyc...@yahoo.com wrote:
I am trying to do the following w/ SQL for db2 9...
I want to find the top x percent of rows. For example, if i wanted to
find the average sale price of the top 10 most expensive items in a
store, how could I go about doing that, w/o a stored procedure? I've
been searching, and have come across many solutions for other RDBMS,
but not yet for DB2.

Thanks in advance.
Dec 5 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.