View Single Post
  #1 (permalink)  
Old 02-28-2008, 07:58 PM
leeloo0505 leeloo0505 is offline
Junior Member
 
Join Date: Feb 2008
Posts: 1
leeloo0505 is on a distinguished road
Default ANY dialect question:

constraint with if-then


Hello,

I was wondering if it is possible to have a constraint check a value before enforcing the constraint..
i.e. I have two columns.. both columns are Y and N values only..

The 'constraint' I would like to add is if column1 = Y then column2 has to be 'Y' while maintaining column1 can be Y or N.

Wondering if this should be a trigger??

Thanks for any help.
Reply With Quote

ANSWER(S):