Answered step by step
Verified Expert Solution
Question
1 Approved Answer
SQL Oracle help: We are going to create tables for a company to track employees, the departments they work for and the projects they work
SQL Oracle help:
We are going to create tables for a company to track employees, the departments they work for and the projects they work on When creating the tables you may use any field make sure you think about your data types carefully. Do not create primary key fields or any other integrity or referential checks if prompted to do so Read throngh the whole lab and decide on your data types and column names before you start creating tables in the database. NOTE: Yon do not need to show me anything for this section Part I
Create an employee table with the following fields: an employeeid this column should not allow nulls lastname, firstname, address, state, zip code, salary, employee type, departmentid
Create a department table with the following fields: a department id this column should not allow nulls a department name, a state, a room number
Create a projects table with the following fields: a project id this column should not allow nulls a project name, buildingnumber, a project type
Create an empproj table with the following fields: an employeeid a projectid hours.
Part II Putting Data into the tables For this section only show me #
Insert departments into your department table; Software, Hardware, and Installations. Give them ids, room numbers, states MDNYDC
Insert fictitious employees into your employee table using department ids from your department table put the employees in valid departments Please make sure you use your own name as one of the employees and use my name as one of the employees. You should also have at least employees from each department and use states of MDNYDC Salary should be between and Employee type should be "Full Time', 'Temp' or 'Part Time', emplo
Insert projects into your project table; PROJA PROJB PROJC You can make up building numbers. Project types should be: Research, Mainenance, Facilities
Populate the emp proj table making combinations of employees working on projects. Make sure each employee is working on at least projects and that their total hours do not exceed
Run a Select from your employee table. Run a Select from your department table. Run a Select from your project table. Run a Select from your emp proj table.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started