Hi Everyone,
This is my problem;
*PROBLEM 1:* I need to create a table called *INSTRUCTOR_NEW* with al
of the information from *INSTRUCTOR* table. Add a column to th
instructor table called *SALARY* which should be a number with
decimal places. Add a constraint to the *INSTRUCTOR_NEW* table calle
*inst_max_sal* that stipulates that no instructor can have a salar
greater than $3000(three thousand dollars) (this is a weekly salary).
Code
-------------------
CREATE TABLE instructor_new AS
SELECT *
FROM instructor;
ALTER TABLE instructor_new
ADD (salary NUMBER(4,2)
CONSTRAINT inst_max_sal
CHECK (salary >= 0
AND salary < 3000));
/
-------------------
I used the code above however the problem I'm having is identifying th
salary as a weekly salary. *How do I write that the MAX salary i
$3000.00 per week in SQL?
*
-
singhji
-----------------------------------------------------------------------
Posted via
http://www.webservertalk.co
-----------------------------------------------------------------------
View this thread:
http://www.webservertalk.com/message173341.htm