I have a task to make a summary table of a few thousand other tables containing thousands of records. The summary table should contain:
- non redundant list of “records”;
- number of tables containing that “record”
- names of tables containing that “record”
Example would be:
Table_1
nameA
nameB
nameC
Table_2
nameB
nameC
nameD
Table_3
nameC
nameD
nameE
Result should be something like this
Record_name Number Table_names
nameA 1 Table_1
nameB 2 Table_1, Table_2
nameC 3 Table_1, Table_2, Table_3
nameD 2 Table_2, Table_3
nameE 1 Table_3
Perhaps it is not to complicated thing to do, but, since I’m quite new to mysql, I hope to get some advice and help from you guys!
1 Answer