An interval is a function that is used to subtract or add (days, years, months, hours, minutes and seconds) to a specified date. interval '300' month: 25-0 Reason: 300/12 (months) gives you a coefficient of 25 and the remainder is 0, so the output will be 25-0
interval '54 -2 'from year to year: 54-2 Reason: since you did not specify any date that it gives, it is. if you use select sysdate + interval '54 -2 'from year to year from double; the output will be: 1-12-2066
sydate: 1-10-2012 therefore adding 54 to 12 = 66 and adding 2 months in October, which will be dec.
Same thing with the last option.
Rashmi Rathour
source share