There is a table named "position" in my database. Following is the create table statement for it:
CREATE TABLE Position(
Position_ID INT PRIMARY KEY NOT NULL,
Position_Name VARCHAR(15) UNIQUE NOT NULL,
Base_salary DECIMAL (10,2),
Base_billing_hours_per_quarter INT (5) NOT NULL,
Billing_rate VARCHAR (5)
);
I am supposed to add the following constraint to this table:
A new column called SalaryMultiplier should be specified to the table. The content of the salary multiplier column should contain the outcome of the following equation:
`salarymultiplier = (BaseBillingHoursPerQuarter*BillingRate)/(BaseSalary/4)`
The sample data for the columns are given below
Position ID = 1
Position= Drafter
BaseSalary= $32000
BaseBillingHoursPerQuater= 260
BillingRate= $40
How do I create the column and populate it with the proper value?