#686 : Fix DISTINCT select problem in Oracle and Sql Server when retrieving products