1
This is my question. The system (PHP) has 6 tables (Mysql) identical which are user participation in certain events. Each entry in the table is unique but the data can be repeated in the tables. What I’m not able to do is search these 6 tables which users participated in all events.
+-------------------+---------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------------------------------------------------------------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| idPiloto | int(11) | NO | | NULL | |
| pontosGanhos | int(11) | NO | | NULL | |
| pontosDeduzidos | int(11) | NO | | NULL | |
| carteiraGanhos | int(11) | NO | | NULL | |
| carteiraDeduzidos | int(11) | NO | | NULL | |
| dnf | int(11) | NO | | NULL | |
| dq | int(11) | NO | | NULL | |
| dqRe^ | int(11) | NO | | NULL | |
| bateriaGrid | int(11) | NO | | NULL | |
| posicao | int(11) | NO | | NULL | |
| posicaoRe^ | int(11) | NO | | NULL | |
+-------------------+---------+------+-----+---------+----------------+
If the tables are identical, why don’t you normalize them? Make all data stay in the same table and differentiate through a new column.
– Phiter
And there’s no way we can answer without seeing the structure of the tables.
– Phiter
Post the table structure, but from what you said it seems to use
JOIN
between tables resolves.– Augusto
I did not understand the idea of taking the table. It would help in the answers.
– Bacco