Appears when a new constraint has failed on existing data.
[Microsoft][ODBC SQL Server Driver][SQL Server]Data exists in table '[table name]', database '[database name]', that violates FOREIGN KEY constraint '[constraint name]' being added. ALTER command has been aborted.
[Microsoft][ODBC SQL Server Driver][SQL Server]Unable to create constraint. See previous errors.
Existing data fails the foreign key constraint.
SELECT employee.emp_id, employee.job_id
FROM employee LEFT OUTER JOIN jobs ON employee.job_id = jobs.job_id
WHERE (jobs.job_id IS NULL)
Creating and Managing Database Diagrams | Query Fundamentals |
Database Diagrams | Working with Database Objects |
Filtering Rows with WHERE and HAVING |