Not quite. 1900, 1800, 1700 aren't Leap Years for example, though they all divide by 4. The rules are, its a Leap Year if:
The year divides by 4, unlessThe year also divides by 100, unlessThe year divides by 400. Assuming you are talking about the Gregorian Calendar that is. Ugly, true, buth those are the rules. And its far easier than trying to work out when Easter is...
Can't think of any way to do it in SQL, without using functions. Easier is to do just return the date into the
Java layer and work it out there (since GregorianCalendars have the isLeapYear() method).