Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

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

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M92587968
  • Price:- $70

Priced at Now at $70, Verified Solution

Have any Question?


Related Questions in DBMS

Tableau is business intelligence software that helps people

Tableau is business intelligence software that helps people see and understand their data. Fast Analytics Connect and visualize your data in minutes. Tableau is 10 to 100x faster than existing solutions. Ease of Use Anyo ...

This is a starting out with visual basic programming

This is a starting out with visual basic programming problem, meaning its a basic programming nothing advanced. Question: Add a linq statement to the combo box text-changed event to dispaly the city field of the selected ...

Sql assignmentin these exercises youll enter and run your

SQL Assignment In these exercises, you'll enter and run your own SELECT statements. You will use the MyGuitarShop database for these queries. If you do not already have the MyGuitarShop database, the SQL script and the i ...

Question we can sort a given set of n numbers by first

Question : We can sort a given set of n numbers by first building a binary search tree containing these numbers (using TREE-INSERT repeatedly to insert the numbers one by one) and then printing the numbers by an inorder ...

Question team project submission - submit to the unit 4

Question: Team Project Submission - Submit to the Unit 4 Group Project Area This version of the capstone project assignment is FOR GRADING this week. Submit to the group area the document containing completed Sections On ...

Databases assignment - monash library services monlib case

Databases Assignment - Monash Library Services (MonLib) Case Study TASK 1: Data Definition For this task you are required to complete the following: 1.1 - Add to your solutions script, the CREATE TABLE and CONSTRAINT def ...

A taking an unnormalised list describe how you would

(a) Taking an unnormalised list, describe how you would normalise it using the normal forms technique and show how the result of this method is used. (b) You are currently in the process of developing a RDBMS for a natio ...

Query 1 the bookstore has decided to keep track of the

Query 1: The bookstore has decided to keep track of the vendors' information. In order to do this, one new table will be added to the database. The schema for this table, as related to the existing tables, is the followi ...

Need an expert in the fields of system design to handle

Need an expert in the fields of system design to handle this project This is a system analysis and design project, not a research project. Refer to the list of deliverables in the instructions in the assignment to make s ...

Question create the physical data model for the logical

Question: Create the physical data model for the logical data model that you submitted in IP3. This should include all of the data definition language SQL. Your submission should include all DDL needed to: Create the tab ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As