Mysql – Creating a column in a table based on aggregation (without creating another table)
I have a table called Sets for LEGO: set_number (Primary Key) set_name other_fields 123 Firetruck abc 234 Star Wars abc I have another table called Parts for LEGO: part_number (Primary Key) name set_number (references set_number from Sets) 1 Truck Roof…