IF NOT EXISTS (SELECT * FROM Seg_Door WHERE Equate = 'eD_Localid_Ret_Ent')
BEGIN
   insert into Seg_Door (No,DGrpNo,Equate,Description,Freeze) values (776,14,'eD_Localid_Ret_Ent','Retiro de Entradas',1)
END