Hello. Need help creating a request. The essence of the problem is as follows. There is a table:
|-----------------------------------------------| |complekt_id | main_product | additional_product| |-----------------------------------------------| | 1 | 111 | 222 | |-----------------------------------------------| | 1 | 111 | 333 | |-----------------------------------------------| | 2 | 111 | 444 | |-----------------------------------------------| The output should be:
|-----------------------------------------------------------------------| |complekt_id | main_product | additional_product1 | additional_product2 | |-----------------------------------------------------------------------| | 1 | 111 | 222 | 333 | |-----------------------------------------------------------------------| | 2 | 111 | 444 | | |-----------------------------------------------------------------------|