DB2: I wanted to find the difference between two dates such that the result is in years For Eg: ~ 2yrs When.
This note demonstrates how to calculate the difference between two dates or two times, ie. timestamps, in a DB2 SQL inline function. This page.
Need help? Post your question and get tips & solutions from a Hi there, we're currently convert an old ISAM application to Java and DB2.