One of my friend has been asked with a question
Retrieving the max top 100 numbers from one hundred million of numbers
in a rece
By TOP 100, do you mean 100 largest? If so:
TOP 100
SELECT TOP 100 Number FROM RidiculouslyLargeTable ORDER BY Number DESC
Make sure you tell the interviewer that you assume the table is indexed properly.