Hi everybody, I Have program in java. and a a table in sql which contains a field date_of_Birth . I would like to make a calculation on this date_of_Birth fields and displays the age of the person in java. the query I M Using is Query1 = "SELECT AVG (DATEDIFF (year, date_of_Birth, getdate ())) FROM Table 2 "; It worked in query analyzer and displays age. but when I try to Run in java. it does not. Does anyone have a java code or a class that allows me to do this? Thank you in advance.
Bookmarks