In this paper a new approach to resolving the parts explosion problem [1] will be presented. The parts explosion problem is well known as a problem that is beyond the capabilities of classical relational algebra. This problem can not be solved in a natural way in an SQL system by means of recursive calls, because SQL does not support recursion in a classical sense. Suggested solution is recursive and it is based on a different concept of a result of an SQL query embedded in a programming language.