Create an oracle database

Assignment Help Database Management System
Reference no: EM13190278

You were tasked to create an Oracle database for a company to track their employees and projects. After speaking with the customer, you have determined the following as the user's needs:

  • The company is organized into departments. Each department has a unique name, a unique number, and a particular employee who manages the department. We keep track of the start date when that employee began managing the department.

A department may have several locations.

  • A department controls a number of projects, each of which has a unique name, a unique number, and a single location
  • They store each employee's name, social security number, address, salary, sex, and birth date. An employee is assigned to one department but may work on several projects, which are not necessarily controlled by the same department. We keep track of the number of hours per week than an employee works on each project. We also keep track of the direct supervisor of each employee.
  • They want to keep track of the dependents of each employee for insurance purposes. We keep each dependent's first name, sex, birth date, and relationship to the employee.

Please complete the following tasks:

1. Create an IDEFIX or ER diagram for the database described above. You should have entities for employee, department, project, and dependent at a minimum.?Make sure you:

a. define your entities

b. show all your attributes, including any keys

c. Show all your relations and name them accordingly

d. Define the correct cardinality for your relations.

2. Import your IDEF1X diagram into Oracle and create the appropriate tables and relationships. Your design should include a specification of tables, attributes, primary and foreign keys, referential integrity constraints, and referential integrity actions.

3. Populate your database with at least 3 rows of data in each table. (Use INSERT statements and show the insert statements that you used.)

4. Create the following the following queries:

a. List all the employees (Name, SSN) and their dependents (Name, Birthdate). (Make sure you list Employees who don't have dependents).

b. List the employees (Names) and the projects that they work on.

c. List the employees (Name, SSN) and their Manager (Names, SSN)

d. List the employee Name of who makes the most by department.

e. List the project Name which has the most hours logged.

f. List the employee Name who has the most dependents

g. List the employees, their departments, and their projects.

h. List the total number of hours worked per department. Show department Name in your results.

Reference no: EM13190278

Questions Cloud

Define iodate in the presence of potassium iodide : In the titration of ascorbic acid with potassium iodate in the presence of potassium iodide, what happens when an excess of potassium iodate
What is the cross price elasticity of demand of goods : The demand of product (X) is given Qx=14-3Px+4Py. Xsells for $5/unit and Y sells for $2.5/unit. 1 what is the cross price elasticity of demand between goods X & Y at these prices. 2 What is the own price elasticity of demand at these prices
Define the product was then treated with toluene : The product was then treated with toluene. Will the product result in the formation of 1-hexene, ethyl hexyl ether (1-ethoxyhexane), or both? Please explain.
What range of payments will the beekeeper accept : What are the highest and lowest payments from the writer that the beekeeper farmer team will accept for the sixth day Assuming that the farmer can dispose of $7 from the writer as she wishes, what range of payments will the beekeeper accept
Create an oracle database : Populate your database with at least 3 rows of data and import your IDEF1X diagram into Oracle and create the appropriate tables and relationships.
The inhibitor is competitive inhibitor or a mixed inhibitor : Briefly describe experiments and expected outcomes to differentiate whether this inhibitor is a competitive inhibitor or a mixed inhibitor.
What price-quantity combination maximizes the profits : Monopoly manager has the demand and cost functiones as P=200-2Q and C(q)=2000+3Q2 1- calculate the maximum profits 2- what price-quantity combination maximizes the profits 3- at the profit-maximizing price-quantity combination, what is the demand ela..
Which of the following is likely easiest to prove : Which of the following is likely easiest to prove?
What is the margenal product of capital and labor : Does the answer to b depend on how much labor and capital are used  If the price of labor is $4 per hour and the rental rate of capital is $5/hour, how much of capital and labor should be used to minimize the cost of production

Reviews

Write a Review

Database Management System Questions & Answers

  How protocol ensures serializability and deadlock freedom

To lock any other vertex, the transaction must have visited all the parents of that vertex and must be having a lock on one of the parents of the vertex. Show that the protocol ensures serializability and deadlock freedom.

  Information-gathering techniques for the project

Explain the information-gathering techniques and design methods you would suggest to use for project. Recognize the key factors that help ensure the information required for the project.

  Explain why it is important to record information

You have just received a new computer at work. it runs fast and works great. thinking about the future and the day something might break explain why it is important to record this information.

  Changes require to make-premiere products database

Point out the changes you require to make to Premiere Products database to support following situation: A customer is not necessarily represented by a single sales rep but can be represented by several reps.

  How the difference between an outer join and an inner join

Give a primary key for each relation. Are there any relations for which there is an alternate candidate key which you have not chosen as the primary key? Why or why not?

  United broke artists (uba) is a broker

United Broke Artists (UBA) is a broker for not-so-famous artists. UBA maintains a small database to track painters, paintings, and galleries. A painting is created by a particular artist and then exhibited in a particular gallery

  Design a database schema

Design a Database schema

  Design a database for an insurance company

Don't forget to underline key attributes for entity sets and include arrowheads indicating the multiplicity of relationships

  Draw an e-r diagram

Draw an E-R Diagram and draw an E-R Diagram for Student Information System.

  Create link list in adt to maintain employee information

Create a link list in ADT c to maintain employee information like name,empid,basic salary and address.1.add employee info to the list if the empid is valid.

  Determine cost of least expensive part in part table

Write a query to determine the cost of the least expensive part in the part table? Format the returned price in dollars and cents using the correct function.

  Create a relational database schema

Draw the ER diagram for the database described above and create a relational database schema for this model assuming

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd