Hi list, sorry for my english, I will try to example as well. I've a query that joins multiple tables and return a result like: id,customers,phone,code,number 1 , aaaaaaaa,33333,123 , 2 2 , aassdsds,33322,211 , 1 3 , oooooooo,21221,221 , 1 I need, where "number" field is > 1, to duplicate the row * N(number field value) with a result like this: id,customers,phone,code,number 1 , aaaaaaaa,33333,123 , 2 1 , aaaaaaaa,33333,123 , 2 2 , aassdsds,33322,211 , 1 3 , oooooooo,21221,221 , 1 How I can accomplish to this problem? I'm using postgresql 9.3.15. thanks in advance. Alessandro. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных