al4629740
asked on
calculation for opposite column
I have two columns in my SQL Express Table. If Age column = 18 or above, then the Code column should have the number in it changed to 3.
How can I automatically make the Code column do this?
How can I automatically make the Code column do this?
ASKER
Could you show me using the information I gave you?
hmmm. actually, you want to change the value to 3 only and once the value of age changes to 18 or higher?
then, you need a trigger...
does your table have a primary key?
then, you need a trigger...
does your table have a primary key?
ASKER
yes it does
ID
ID
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://msdn.microsoft.com/en-us/library/ms187768.aspx