ADDED TWO NEW CONDITION- case when (EXTRACT(EPOCH FROM (created))/60>30 and sla='Normal SR' and status='new' then 1 else 0 end as SLA_NORML_ITDSK_BREACH, case when (EXTRACT(EPOCH FROM (created))/60>15 and sla='High Priority SR' and status='new' then 1 else 0 end as SLA_HIGH_ITDSK_BREACH, # SO FINAL VIEW FOR TICKETS IS AS GIVEN BELOW-------====>>> CREATE VIEW tickets_master AS select id,effectiveid,ismerged,queue,type,owner,subject,initialpriority,finalpriority,priority,timeestimated,timeworked,status,sla,timeleft,told,starts::timestamp AT time zone 'utc' as starts,started::timestamp AT time zone 'utc' as started,due::timestamp AT time zone 'utc' due,resolved::timestamp AT time zone 'utc' resolved,lastupdatedby,lastupdated::timestamp AT time zone 'utc' lastupdated,creator,created::timestamp AT time zone 'utc' as created ,case when (EXTRACT(EPOCH FROM (created::timestamp AT time...