Create table with compute column in SQL Server 2008

By | November 4, 2015

Create table with compute column.

Create table Demo
( min_sal int,
max_sal int,
Myavg_sal as (min_sal+ max_sal)/2
)

Leave a Reply

Your email address will not be published. Required fields are marked *