I have a SQL Server 2008 database. This database has a Table called \"Book\". \"Book\" has the following properties:
You can define the column in your CREATE TABLE as:
CREATE TABLE
AgeInMinutes as (DATEDIFF(minute, PublishDate, GETDATE())
Alternatively, just do
ALTER TABLE Book ADD AgeInMinutes as (DATEDIFF(minute, PublishDate, GETDATE())