List the names of employees who have a dependent

Assignment Help Database Management System
Reference no: EM131779286

Database Management Systems Assignment

Consider the Company Database given in the handout. This Database contains 6 relations, namely: EMPLOYEE, DEPARTM ENT, DEPT_LOCATI ON, WORKS ON, PROJECT and DEPENDENT. Each table is defined in the handout.

(I) Using any two available ER Tools to draw the ER Diagram for the Company Database. The Requirements were discussed in the class. Write two-page report to discuss your comparative results.

(II) First using Orade SQL * Plus create the schema of this database. You need to check the database referential integrity to decide the order to create tables. Then follow the Orade syntax to create tables, please see Create-Tables-Notes-Company-DB at the end of this notes for your reference.

Continue by inserting the data records as presented in the handout. You should print out the result of final tables

If you want to learn "I nsert Multiple Records", please see an example at the end of this notes for your reference.

(III) Solve the following queries in SQL. For each query, you need to specify the SQL and show the result of each query if applied to the Company Database.

(a) Retrieve the names of employees in department 5 who work more than 10 hours per week on the 'ProductX' project.

(b) List the names of employees who have a dependent with the same first name as themselves.

(c) Find the names of employees that are directly supervised by 'Franklin Wong'.

(d) For each project, list the project name and the total hours per week (by all employees) spent on that project.

(e) Retrieve the names of employees who work on every project.

(f) Retrieve the names of employees who do not work on any project.

(g) For each department, retrieve the department name, and the average salary of employees working in that department.

(h) Retrieve the average salary of all female employees.

(i) Find the names and addresses of employees who work on at least one project located in Houston but whose department has no location in Houston.

(j) List the last names of department managers who have no dependents

(IV) Solve the following queries in SQL. For each query, you need to specify the SQL using the concept of nested queries and show the result of each query i f applied to the Company Database.

(k) Retrieve the names of al I employees who work i n the department that has the employee with the highest salary among all employees,

(l) Retrieve the names of all employees who supervisor's supervisor has '888665555' for ssn.

(m) Retrieve the names of employees who make at least $10,000 more than the employee who is paid the least in the company.

(V) Specify the following queries in (III) (a), (b), (c), (e), (f), (i), (j) on the Company relational database schema using the Relation Algebra Statements (i.e., the relational operators). Also, show the intermediate result of each query if applied to the Company Database.

(VI) Specify the following queries in (III) (a), (b), (c), (e), (f), (i), (j) on the Company relational database schema in both tuple and domain relational calculus.

Attachment:- Database-Assignment.pdf

Reference no: EM131779286

Questions Cloud

Technology applications and designed service encounters : Explain the technology applications and designed service encounters.
What is the duration of an inverse floater : Explain how an inverse-floating-rate municipal bond can be created. Who determines the leverage of an inverse floater?
Department of small retail organisation : You work in the HR department of a small retail organisation, Dimsey Do Pty Ltd (DD). Your organisation retains People For You Pty Ltd (PFY), recruitment agency
Calculate the estimated inventory at the end of august : Inventory on hand at the end of July was $122,500. Calculate the estimated inventory at the end of August, assuming a markup on cost of 25%
List the names of employees who have a dependent : List the names of employees who have a dependent with the same first name as themselves. Retrieve the average salary of all female employees.
Defining the refunding protection and call protection : Which protection provides the investor with greater protection that the bonds will be acquired by the issuer prior to the stated maturity date?
What is the history of these domains : What are the guiding theories within the domains?Why is the integration of these domains important?
What is meant by a make-whole call provision : What is meant by a make-whole call provision? What is the make-whole premium?
Prepare the shareholder ending stock basis : You are given the following facts about a one-shareholder S corporation, and you are asked to prepare the shareholder's ending stock basis

Reviews

Write a Review

Database Management System Questions & Answers

  Virtual private databasesearching web specially oracle and

virtual private databasesearching web specially oracle and microsoft websites and via talking with any database

  List all the records in the vendor table

Write SQL statements to answer the following questions from the 'assignment'. List all the record/s in the vendor table that do not have a value for attribute

  Create a header in the header field labeled database

Create an automatic sort by applying a filter to each column so your data can be viewed in different ways.

  Identify the type dependencies found

CIT 310- In the diagram below there are dependencies. Identify the dependencies. In a Word document, identify the type dependencies found and the attributes found in them.

  Locate a hosted distributed database service explore its

write a 200- to 300-word short-answer response for the followinglocate a hosted distributed database service. explore

  Provide an relational schemas

Find the names and company names of all employees sorted in ascending order of company name and descending order of employee names of that company.

  Is it possible for r to be in bcnf if so under what conditon

Consider the relation schema R(A,B,C), which has the FD B → C. If A is a can-didate key for R, is it possible for R to be in BCNF? If so, under what conditions? If not, explain why not.

  Explore a data warehouse for business intelligence

Data Warehousing and Business Intelligence Project. Task: Architect, Populate and Explore a Data Warehouse for Business Intelligence

  Determine the information that the conceptual model

Determine the information that the conceptual model of the database would include and determine information that physical model of the database would include.

  Create the alter table statements and theinsert statements

Create the alter table statements and theInsert statements. Write a SQL Statement to retrieve all the people who work on the same projects as smith with the same amount of hours with respect to each Project.

  Create database that implements the proposed data warehouse

Knowing the customers for targeted advertising. The board would like to know which type of customers (age or gender) are more interested in which types of cars (type)

  Aspects of tablespace management

Respond to the following in 100 words or less.  Work must be cited.

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