delete from entity_contact where length(contact_pers)>20
alter table entity_contact modify CONTACT_PERS CHAR(20);
alter table entity_contact add CONTACT_PERS_NAME CHAR(60);


---Adde by prachi 07-mar-2022
update genmst set fld_min='select (case when (length(trim(?)) > 0 and (trim(?)=''E'')) then (select (case when ((select count(*) from employee WHERE (emp_code NOT IN (select E.EMP_CODE from EMPLOYEE E where E.RELIEVE_DATE is null start with E.EMP_CODE =? connect by prior E.EMP_CODE = E.REPORT_TO) and RELIEVE_DATE is null) and emp_code=?)<1) then 1 else 0 end)from dual) else 0 end) from dual'
,fld_max=0 where mod_name='W_ENTITY_CONTACT' and tran_id='00000000000000000670'

