The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_AspNetUsers_Ips_IPId". The conflict occurred in database "ECHO_Dashboard", table "dbo.Ips", column 'Id'. PM> code example
Example: The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "". The conflict occurred in database "", table ", column
SELECT *
FROM [rpt].ReportLessonCompetency rlc
WHERE NOT EXISTS
(
SELECT 1
FROM [rpt].TraineeGrade tg
WHERE tg.Id = rlc.Grade
)