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

  Develop view for sum of number ordered multiplied by price

Develop a view named OrdTot. It comprises the order number and order total for each order presently on file. (Order total is sum of the number ordered multiplied by quoted price.

  Write select statement which returns three columns

Write a SELECT statement which returns three columns: VendorName, InvoiceCount, and InvoiceSum. InvoiceCount is the count of the number of invoices, and InvoiceSum is the sum of the InvoiceTotal column.

  Construct an rea diagram

Design a minimal relational database for Pieces Boutique. By minimal, it is meant that option to post a key into existing table because of either needed participation or a discernible high load could be exercised where appropriate.

  Write set of relational schemas-identify primary-foreign key

Sketch an E-R diagram which reflects the above reuirements. Write a set of relational schemas and identify primary and foreign keys. Try not to include redundant schemas.

  Oracle having multiple group functions in same select list

Can Oracle have multiple group functions in the same SELECT list of query (i.e can we do a COUNT and AVG)? Let us assume we wanted to find lowest, highest, average.

  Develop an er model

You are required to develop an ER model to represent the information requirements for a database that Queensland Liquor National online trader system will use as described on last page.

  Write program to ask user to enter last name of customer

Write a program that will ask the user to enter the last names of our candidates in a class officer's president election and the number of votes received each candidate.

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Differentiate between the interaction types and styles

Explain the conceptual model employed in the design of these types. Describe the analogies and concepts these monitors expose to users, including the task-domain objects users manipulate on the screen.

  Root cause of problem if databse doesn-t give information

Company's databases do not give them with information required for market planning, lead generation, and account management. What does author say is root cause of this problem?

  Create the primary and foreign key using a uml class diagram

Create the primary key and foreign keys using a UML Class diagram for each table and compare and contrast the key aspects that each system offers

  Er diagram of cardinality and modality

ER Diagram of cardinality and modality bank management system and discription of bank management system

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