| Subtract dates [message #570648] |
Tue, 13 November 2012 10:57  |
 |
kestram
Messages: 2 Registered: November 2012
|
Junior Member |
|
|
Hello,
New to using Oracle and SQL Developer. I am trying to subtract a maximum date from today and adding back 1 to get a field named daysSinceLastActivity....
Syntax I am trying is (date()-max(activity_date))+1 as daysSinceLastActivity
I keep getting a error message of missing expression. After googling, I am not finding anything that is helping.
Obviously, I am doing something wrong, but I do not understand. This should be a simple calculation.
Any help would be appreciated. Thanks.
|
|
|
|
|
|
|
|
|
|