there are two tables, one document table and one case table
document (id,case_num,document_name)
case (id,case_num,case_name,status)
the case_num of the document table corresponds to the case_num of multiple case tables
the case_num format of the document table is separated by ", sign", for example:
A001,A002
the problem is to add the contents of the two tables to the third table. The condition is that the status of all the records in the corresponding case table in the case_num field of the document table is"1"
.could you tell me how to click on this sentence