According to the calendar, a year that is divisible by 4 and not divisible by 100 or divisible by 400 is a leap year
For example, those years are divisible by 100 but not 400 and therefore they are not leap years:
1700, 1800, 1900, 2100, 2200
The simple way to determine a leap year written in SQL
SQL> select year, case when (mod(year,4)=0 and mod(year,100) != 0 or mod(year,400)=0) then 'Y' else 'N' end is_leap_year from (select 2016 year from dual);YEAR IS_LEAP_YEAR
--- ------------2016 Y