suppose my store date is 05/10/2005 and current date 04/10/2012.........so i want to get only year difference 7.
Year diff
how get year difference from store date to current date???
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Rewant ChoudharyRank #4,270 · 354 reputationPosted Oct 4, 2012, 4:03 AM EDT
SELECT DATEDIFF(year, '2005-12-31 23:59:59.9999999'
, '2006-01-01 00:00:00.0000000');
VulpesRank #55 · 29.2K reputationPosted Oct 4, 2012, 4:18 AM EDT