DB2 Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDB2 Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 12th, 2006, 12:43 PM
atko atko is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 1 atko User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 45 sec
Reputation Power: 0
SQL help! percent rows returned

hi i was wondering if there is an equivelent of the 'top' function as sql server. i wish to return the 'top 10 percent' rows. i cant seem to find the function! anuy ideas? thanks in advance! --atko

Reply With Quote
  #2  
Old July 13th, 2006, 09:24 PM
sarangadhar sarangadhar is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 1 sarangadhar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 14 sec
Reputation Power: 0
Not sure what "percent" u r asking

try this if you are looking for:
select * from tablename fetch N rows only;

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDB2 Development > SQL help! percent rows returned


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway