My anserwer has erro in line 1, how to fix? Add a column named Base_salary with a datatype of NUMBER(7,2) to the STORE_REPS table. Ensure that the amount entered is above zero Alter table store_repsADD base_salary NUMBER(7,2) ADD (Constraint base_salary_ck CHECK(base_salary>0));

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter4: Constraints
Section: Chapter Questions
Problem 6HOA: Add a constraint to make sure the Rep_ID value entered in the BOOK_STORES table is a valid value...
icon
Related questions
icon
Concept explainers
Question

My anserwer has erro in line 1, how to fix?

Add a column named Base_salary with a datatype of NUMBER(7,2) to the STORE_REPS
table. Ensure that the amount entered is above zero

Alter table store_repsADD base_salary NUMBER(7,2)
ADD (Constraint base_salary_ck CHECK(base_salary>0));

*
ERROR at line 1:
ORA-01735: invalid ALTER TABLE option

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Query Syntax
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning