I am attempting to create an SQL query that will show any tickets that are within 20% of breaching the SLA goal I've put. For example: if the goal is 10 hours, I want to see which tickets are within 20% of breaching this - meaning which tickets have 2 hours left on the clock.
so it'll be "Time to achieve resolution" < 20% of goal
but how do I write the '20% of goal' part?
Thanks in advance