I need a query that comes up with the number of days the record has been in the system. Im using MS SQL Server 7.0.
Entydate Dept Unit User
10/31/02 7:49:54 AM 120 724 joe
10/1/02 8:05:58 PM 120 697 Larry
10/30/02 10:05:02 AM 86 15 Mo
10/31/02 9:19:24 AM 120 724 Curly
I want this result (Using today as the difference in the date.
Objects Dept Unit Days Old
2 120 724 1
1 120 697 31
1 86 15 2
I can get it in the code but have not been able to put a SQL statment together to do it. AJ
I would lose my head if it wasn't attached.
Entydate Dept Unit User
10/31/02 7:49:54 AM 120 724 joe
10/1/02 8:05:58 PM 120 697 Larry
10/30/02 10:05:02 AM 86 15 Mo
10/31/02 9:19:24 AM 120 724 Curly
I want this result (Using today as the difference in the date.
Objects Dept Unit Days Old
2 120 724 1
1 120 697 31
1 86 15 2
I can get it in the code but have not been able to put a SQL statment together to do it. AJ
I would lose my head if it wasn't attached.