Answer the question
In order to leave comments, you need to log in
How can rows of one table be represented by columns of another?
There is a table Goods
id_good | name
1 good1
2 good2
id_stage | name | status
1 stage1 1
2 stage2 1
id_stage | id_good | count
1 1 34
2 2 77
good | stage1 | stage2
good1 34 0
good2 0 77
Answer the question
In order to leave comments, you need to log in
I'll try to ask you the direction
en.wikipedia.org/wiki/Pivot_table
stackoverflow.com/questions/7674786/mysql-pivot-table
Make a separate model that may not have its own table in the database, make links to the necessary tables in it and use the DataProvider from it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question