when u search yahoo.com on google for example u get subpages linked below the main domain. How do I make that for my website?
you optimize each one of those subpages for a particular search phrase. Or you can set up your link structure to point to those pages and they will index faster.
Do you mean like this? If so, you can't Google choose them, usually when a site is defined as being an authority on a particular search query. You can read more about it here - http://www.google.com/support/webmasters/bin/answer.py?answer=47334&topic=8523