select * from SMACTS where pricetype = 22;
select * from SMDOCUMENTS where id = 'АПУЮ02813';
alter table SMPRICETYPES rename to TSMPRICETYPES;
create or replace view SMPRICETYPES as select * from TSMPRICETYPES where id not in (...);