1
Guys, I have the following structure in a Mysql table:
I need to make a select that brings me as many posts as there are any records, for example, in reference 269 bring me to post 4, and in reference 258 bring me to post 6.
It may look like MAX, but bring me as many columns as you have any record of that reference. How can I select this?
you have 10 columns to register each post, that’s it ?!
– Rovann Linhalis
That’s right.....
– maiconfriedel
If you sell your system one day, who knows, to an average industry that has 216 non-linear operations, you will create 206 extra columns and leave some of the middle empty??
– Marcelo Shiniti Uchimura
This system is now being developed specifically for a company with toy assembly sector, where the maximum number of stations is 20, and it is always linear... I am using this table as a basis to assemble for them the operational method, where will register the method and then view, with photo and description, because currently the company (as it is small and does not invest much in technology), records everything in excel spreadsheet, and there are no registered operational methods. But if you have any suggestions to help the table structure, I appreciate the suggestion! :)
– maiconfriedel