I want to have a coloumn called "level" which is generated depending on what "height" and "width" and "age" have been set to.
I have a table:
stats(name,height,age,width,level)
i want level to be worked out automatically, such that:
if height > 10 and wieght > 10 and age 10
then level = 1
else
if height > 5 and wieght > 5 and age 5
then level = 2
else level = 3
How can I go about setting this up?
Thanks.
I have a table:
stats(name,height,age,width,level)
i want level to be worked out automatically, such that:
if height > 10 and wieght > 10 and age 10
then level = 1
else
if height > 5 and wieght > 5 and age 5
then level = 2
else level = 3
How can I go about setting this up?
Thanks.