How to impose a validation saying that salary cannot be greater 10,000 (note give a name to this constraint)

Oracle Apps Interview QuestionsCategory: SQLHow to impose a validation saying that salary cannot be greater 10,000 (note give a name to this constraint)
Questions Master asked 9 years ago

How to impose a validation saying that salary cannot be greater 10,000 (note give a name to this constraint)

1 Answers
Shailender Thallam Staff answered 9 years ago

ALTER TABLE emp ADD CONSTRAINT chk_001 CHECK(sal<=10000);