Supprimer des données d'une table à partir d'une autre table est-il possible ?
Bonjour, s 'il vous plait et il possible de supprimer des données d'une table à partir d'une autre ??
je vous explique ma situation j'ai deux table : Tnotations et Hnotations comme vous voyez elles sont resèque identiques, je cherche une requête pour supprimer
le candidat1 définitivement de la table Hnotations sauf si sa notes égale = 0,00 et que son nom existe sur Tnotations
Table notations : Tnotations
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
+-------------+------------+--------------------+-------------+
| ID | UIDstaff | NomCandidats | Notes |
+-------------+------------+--------------------+-------------+
| 1 | U1002023 | Candidat1 | 15,00 |
+-------------+------------+--------------------+-------------+
| 2 | U1012023 | Candidat2 | 12,35 |
+-------------+------------+--------------------+-------------+
| 3 | U1022023 | Candidat3 | 10,25 |
+-------------+------------+--------------------+-------------+
| 4 | U1032023 | Candidat4 | 9,00 |
+-------------+------------+--------------------+-------------+
| 5 | U1042023 | Candidat5 | 7,50 |
+-------------+------------+--------------------+-------------+ |
Table historique notations : Hnotations
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
+-------------+------------+--------------------+-------------+
| ID | UIDstaff | NomCandidats | Notes |
+-------------+------------+--------------------+-------------+
| 1 | U1002023 | Candidat1 | 0,00 |
+-------------+------------+--------------------+-------------+
| 2 | U1002023 | Candidat1 | 0,00 |
+-------------+------------+--------------------+-------------+
| 3 | U1012023 | Candidat2 | 12,35 |
+-------------+------------+--------------------+-------------+
| 4 | U1022023 | Candidat3 | 10,25 |
+-------------+------------+--------------------+-------------+
| 5 | U1032023 | Candidat4 | 9,00 |
+-------------+------------+--------------------+-------------+
| 6 | U1042023 | Candidat5 | 7,50 |
+-------------+------------+--------------------+-------------+ |