vedranp wrote: > I would like to avoid the step of taking data out from database in > order to process it. You can probably do this entirely within SQL. Most SQL databases, including MySQL, will let you put the result of a SELECT into a new table. John Nagle