mysql getting result from two identical table
问题 I have two identical tables. I want to compare these two tables and getting the result from them. The condition are: each record in TABLE1 grouped by TID will be compared to all records in TABLE2 grouped by their each TID . if each grouped record in TABLE1 are to be discovered in TABLE2 (records in TABLE2 that grouped by each tid, too), as many as N (N is the user input variable), then that record will be inserted into new table. For example, like the ss below, ITEM C-F-A grouped by TID 2 has