Question DB-BAS-0072
HardA table is defined with CHECK (salary > 0) and an UPDATE sets one row's salary to −5. What happens?
- A.
The salary becomes 5
- B.
The salary becomes 0
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
DBMS Basics question
A table is defined with CHECK (salary > 0) and an UPDATE sets one row's salary to −5. What happens?
The salary becomes 5
The salary becomes 0
Sign up free to see the answer and a step-by-step explanation.
Only a warning is shown
The UPDATE fails and the row is unchanged