Quote:
|
Originally Posted by nitin_math
Hi,
You can use this query :
select distinct (month ('6/2/1994') - month ('5/2/1994')) UNITS month from customer
Modify the same as per ur needs.
Hope it helps.
Nitin
|
Be advised - this method may not do what you need it to do. The month() function only extracts the numeric (1-12) month. There is no consideration given to the true difference between two dates. For example month ('6/2/1994') - month ('6/2/1995') is 0, not 12.