I have a SQL Server instance and with a date table with datetime values. I have been trying to write queries to find the age of those columns by subtracting the current time value from the column values using GETDATE()
.
I have tried queries like the following:
but I'm getting errors like these:
Any help would he appreciated! Thanks!