Query to fetch 100 distinct rows

Original text of this message