I need to create a column age in a SQL Server database.
The values of this column should be calculated based on the values of the column DOB.
Also its values should increment as Age increases.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should use a computed column to solve this problem. Something with a definition similar to this:
Original statement taken from and further information available at BlackWasp.
Edit:
MSDN explains computed columns as:
Source: MSDN – Computed Columns