Sql ile yapabilirsin.

http://stackoverflow.com/questions/1...l-of-two-other