Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given: using linux and connected to an oracle database that is made up of 6 tables: customer, employee, parts, orders, partOrder, telephone. Complete the following

Given: using linux and connected to an oracle database that is made up of 6 tables: customer, employee, parts, orders, partOrder, telephone. Complete the following tasks. Reminder that you must use linux and oracle sql

Key Information:

a) Employee Primary Key: eid d) partOrder Primary Key: poid Foreign Keys: pid, oid

b) customer primary key: cid e) part Primary Key: pid

c) order primary Key: oid Foreign keys: cid, eid f) telephone Primary Key: tid Foreign Key: eid

1) Create and execute query for order information joined with customer information. 2) Create and execute query that lists employee information together with the number of orders they have processed. 3) Create and execute a query that deletes all PartOrder records for Orders for which the shipping date is in the past. 4) Add a column called processed to the PartOrder table. 5) Create a view of Part information together with the total quantity of such parts for which Orders were received in 2016 (use a different year, if there is no corresponding record in your database)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions

Question

Define Administration?

Answered: 1 week ago

Question

Define Decision making

Answered: 1 week ago

Question

2. How were various roles filled?

Answered: 1 week ago