Is this for doing a search and ranking the results based on multiple search criteria...if it is then Rudy did not understan...because what you are asking makes no sense
Is it really show me for all rows in a table, the rows with the most occuring types?
If it is, and you need to "do that alot", what in heavens name for?