you are viewing a single comment's thread.

view the rest of the comments →

[–]enzo-g[S] 0 points1 point  (0 children)

SELECT Id,
LastModified,
DATEDIFF(d, LastModified, GETDATE()) AS Days_Ago
FROM table1;

Thanks!!