Identify primary keys and foreign keys

Assignment Help Database Management System
Reference no: EM131972280

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.

Attachment:- Assignment.rar

Verified Expert

This assignment is based on Database and SQL queries. The database is designed based on the information provided. The name of the company is ABC. SQL queries are provided for accessing various information from the database.

Reference no: EM131972280

Questions Cloud

What was the company ebit : Sales for the year were $16,580 and depreciation was $756. The tax rate was 40 percent. What was the company's EBIT?
Find the value of the bookstore assuming the investors : Under Louie's management the bookstore paid off all their debt. What is the value of the Bookstore assuming the investor's cost of capital is 12%?
What is the approximate total amount of money : What is the approximate total amount of money the company raised from issuing these bonds? Assume semiannual compounding.
What is the current yield : A bond has a yield to maturity of 9.38%, a coupon of 7.5% paid semiannually, a $1,000 face value, and maturity date 21 years from today.
Identify primary keys and foreign keys : SIT103 – Database and Information Retrieval - Identify primary keys, foreign keys, NULL and other constraints exist with the tables. Document the identified
Company price-earnings ratio : $5,800 in sales. The profit margin is 4 percent. There are 5,000 shares of stock outstanding, with a price of $1.70 per share.
Required return on investment : You just purchased preferred shares in Initech for? $45.71. Initech pays annual dividends of? $0.64. What is your required return on this? investment?
Write a summary of each type of business organization : Through research on the Internet or other valid sources, identify one Proprietorship, one Partnership and one publicly held Corporation.
Increase the risk of portfolio : You have found a stock with a beta lower than any other stock in your portfolio. This stock also has a very high return.

Reviews

Write a Review

Database Management System Questions & Answers

  Describe the purpose of the database

Describe the purpose of the database. Based on your research and / or common knowledge of a college and the information tracked by a college, describe the entities of the database and the attributes of each entity

  Define the term use case

Explain the difference between the > and > relationships in use case diagrams?

  Develop a set of tables for a customer resource management

You have been tasked to develop a set of tables for a customer resource management database. You are required to store the Customer ID number information in your database.

  Create a class report with headings

IT 210:Create a class report with headings and columns of proper width for STUDENT NAME, TEST 1, TEST 2, TEST 3, and AVERAGE.

  Electronic spreadsheets in data modeling

Explain in detail with supporting illustrations the six stages of the problem solving process and explain when the choice for using electronic spreadsheets is the preferred tool of choice.

  The principles of database design and management

Complete the 8- to 10-slide Microsoft® PowerPoint® presentation in which you explain the principles of database design and management. Include the following

  Complete the given sql command for each of the three dbms

Use your favorite Web browser and Web search engine to find out how to enter a date in an SQL query in Oracle, Access, and SQL Server.

  Assignment on database and data warehousing design

a design document and a revised project plan. You must submit both sections as separate files for the completion of this assignment. Label each file name according to the section of the assignment it is written for.

  Designing of database

a. Discuss the degree to which you believe the Visio diagram reflects the database design. b. Describe any assumptions that you had to make about the business rules to in order to create the Visio diagram and the associated relationships.

  Design a query that will allow the finance department

Imagine that you have been hired as a consultant to assist in streamlining the data processing of an international based organization that sells high-end electronics. The organization has various departments such as payroll, human resources, finan..

  Explaining cardinality of a relationship

What is meant by cardinality of a relationship? Your answer requires to be thorough and specific. Be sure to include the two types of cardinality

  Discuss iterative design as it relates to databases overall

Discuss iterative design as it relates to databases overall. Determine whether one must design a database iteratively or design the entire database all at once. Provide a rationale for your answer

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