Question: Create a SQL script to drop and then create the three tables based on the specs and data below. The script should be re-runnable (run

Create a SQL script to drop and then create the three tables based on the specs and data below. The script should be re-runnable (run the script over and over without error and the correct results). Emp (EmpId int not null primary key, LName varchar(50) not null, FName varchar(50) not null, Salary money not null) 1, Rojas, Cindy, 45000 2, Soo, Kyung, 55000 3, Corso, Anthony, 105000 4, Bohlender, Barb, 150000 5, Jefferies, Jack, 50000 6, Davis, Jesse, 75000 Dept (DeptId int not null primary key, Name varchar(50) not null, Bonus decimal(2,2)) 293, Sales, 0.25 392, Marketing, 0.15 516, Manufacturing, null EmpInDept (EmpInDeptId int not null primary key, EmpId int not null, DeptId int not null) 101, 1, 516 102, 5, 516 201, 2, 392 301, 3, 293 302, 4, 293

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!