insert into status_resolutions
(parent_status_type,
 deletable,
 weigth)
values ((select id from status_types where status_types.name = 'active'), 0, 2);

insert into status_resolution_titles (resolution_id, lang, title)
values ((select top 1 id
         from status_resolutions
         where status_resolutions.parent_status_type = (select id from status_types where status_types.name = 'active')
         and weigth = 2),
        'RU',
        N'Работа с обращениями'),
       ((select top 1 id
         from status_resolutions
         where status_resolutions.parent_status_type = (select id from status_types where status_types.name = 'active')
         and weigth = 2),
        'EN',
        N'Working with tickets');
