Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

selecting the bottom 10% instead of the top 10%

Status
Not open for further replies.

basement131

Technical User
Feb 23, 2004
56
CA
Using MS access 2000
is there a way to select the bottom 10% as apposed to selecting the top10%.
i know i could change the sorting to descending and then select the top10%, but then i would have to resort my sample after.
is this the only way to do this without 2 steps.


Your help & assistance today will be passed on to others tomorrow.
 
How about this finding records that have no match in the top 10%, i.e.
Code:
SELECT YourFieldName
FROM YourTableName LEFT JOIN (SELECT TOP 90 PERCENT YourFieldName AS Expr1 FROM YourTableName) AS Temp ON YourTableName.YourFieldName = Temp.YourFieldName 
WHERE Temp.YourFieldName Is Null;


[pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top