Conception Et Réalisation (SQL Server) by Grare Stéphane - HTML preview
PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.
Download the book in PDF, ePub, Kindle for a complete version.
WHERE
Spécifie le critère de sélection (optionnel) si la clause WHERE n’est pas codée, toutes les
lignes seront supprimées.
Supprimer tous les employés du service informatique (repéré par son nom dans la table
DEPART), pour les tables EMPLOYES et DEPART.
WHERE DEPT IN (SELECT NODEPT FROM DEPART
WHERE NOMDEPT LIKE 'SERVICE%')
Supprimer tous les employés du service informatique pour les tables EMPLOYES et DEPART.
DELETE FROM EMPLOYES
FROM EMPLOYES
JOIN DEPART
ON DEPT = NODEPT
WHERE NOMDEPT LIKE 'SERVICE%'
