select attrbTypeId, attrbTypeName, attrbTypeCode from tbl_SEC_AttributeTypes with (nolock) where applicationCodes like '%102%' select attrbId from tbl_SEC_Attributes with (nolock) where attrbTypeId = and ownerId = and fsl_tablecode = insert into tbl_SEC_Attributes ( ownerId, fsl_tablecode, seqNum, attrbName, attrbDescription, attrbTypeId ) values ( , , , , , ) select groupId from tbl_SEC_Groups g with (nolock) where groupName like '%FSE%' and groupName like '%DEV%' and ownerId = and fsl_tablecode = select attrbId from tbl_SEC_Attributes with (nolock) where attrbTypeId = and ownerId = and fsl_tablecode = select * from tbl_SEC_AttrbGrpLink with (nolock) where groupId = and attrbId = insert into tbl_SEC_AttrbGrpLink ( groupId, attrbId ) values ( , )