Create all the tables with identified constraints on oracle

Assignment Help Database Management System
Reference no: EM131994442

Company ABC - Background

Your client, The ABC Company, asks you to create a small database to keep the information of employees, departments, projects and dependants.

Refer the data tables in the page 2 and write answers or perform actions for following questions.

1. Identify primary keys, foreign keys, NULL and other constraints exist with the tables. Document the identified constraints.

Table 1. Identified Primary Key, Foreign key, Not null Constraints

Table Name

Primary Key

Foreign Key ( references table A)

Nott Null columns

 

 

 

 

 

 

 

 

 

 

 

 

2. Create all the tables with identified constraints on Oracle. (e.g. primary keys, foreign keys, NULL and other)
NOTE: When you create tables you should decide the appropriate types for the attributes. And also you should add the screenshots of CREATE TABLE statements in the project Report

3. Insert all the given values. You are feel free to insert new values to the tables.

NOTE: You should add all INSERT INTO statements and screenshots in the project report.

4. Write following queries on the tables.

a. Print employee's first name, last name, address and department number.

b. Print employee full name and department and employee's supervisors full name.

c. Print employee information who works for project 3. (i.e. ProductZ).

d. Print the employee and the number of dependant for an employee.

e. Print information about employees working more than one project.

f. Find the manager who earns the highest salary.

g. Print for all the employees number of hours in total they have worked in the projects.

h. Print project information of the projects which are managed by department 5 (i.e. research).

i. Print the total number of projects controlled by the different departments and the manager of the project. (department manager is the project manager)

j. Identify and print information about employees who have children less than 15 years old.

k. Print details of mangers who have worked more than 20 years of the company

l. Create your own query. It must include a nested query. Submit the following:

i. question your query is answering

ii. the SQL query

iii. the mark for this question will depend on the complexity of the query.

iv. higher marks will be given for queries that are more complex and/or innovative.

v. if you do not provide a description of what question the query is answering, you will get zero for this query.

Reference no: EM131994442

Questions Cloud

How much should you be willing to pay for the bond : If you require an "effective" annual interest rate (not a nominal rate) of 11.17%, how much should you be willing to pay for the bond?
What is the rate of unemployment : What is the "rate of unemployment" what components does it consists of and how is it calculated?
Too big to fail-what was the source of the doctrine : What was the source of the doctrine? Is this a policy of the Federal Reserve? Of the US Treasury? Of Who? Is this an explicit policy?
Examine competitive analysis strategies : Examine competitive analysis strategies through the use of frameworks. Determine competitive advantage strategies that fit an organization.
Create all the tables with identified constraints on oracle : SIT103 – Database and Information Retrieval - Create all the tables with identified constraints on Oracle
What is the after tax cost of debt and pretax cost of debt : What is the company's pretax cost of debt? If the tax rate is 36 percent, what is the aftertax cost of debt?
What is cost of equity after recapitalization : What is the cost of equity after recapitalization? What is the WACC?
Return on investment topic and review of historical roots : Write an overview of the Return on Investment topic and a review of its historical roots
Income and substitution effect and the optimal consumer : The following are true statements about the income and substitution effect and the optimal consumer's allocation, EXCEPT:

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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