INSERT INTO wrkerrorlog (companycode, creationtimestamp, jobid, sno, errorat, remarks)
SELECT p_companycode,
p_creationtimestamp,
'ATSC',
att_sch_seq.nextval,
ROW_NUMBER() OVER(
ORDER BY 1),
'Fetching Employees',
'No Employees are present for the given criteria.'