When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
Table-valued function is another way. But I read an article saying that in some situation, table-valued function could be very slow. Can someone give a performance comparison?