Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppliers - Parts - Jobs ( SPJ ) Database Practice Queries Consider the following relational database about suppliers, parts, and jobs. Suppliers ( S )

Suppliers-Parts-Jobs (SPJ) Database Practice Queries
Consider the following relational database about suppliers, parts, and jobs.
Suppliers (S), parts (P), and jobs (J) are uniquely identified by supplier number (S#), part number (P#), and job number (J#), respectively. The significance of an SPJ (shipment) record is that the specified supplier supplies the specified part to the specified job in the specified quantity (and the combination S#, P#, J# uniquely identifies such a record). An instance of this database is given below.
\table[[S# SName,Status,City],[S1 SMITH,20,LONDON],[S2 JONES,10,PARIS],[S3 BLAKE,30,PARIS],[S4 CLARK,20,LONDON],[S5 ADAMS,30,ATHENS]]
\table[[S#,P#,J#,QTY],[S1,P1,J1,200],[S1,P1,J4,700],[S2,P3,J1,400],[S2,P3,J2,200],[S2,P3,J3,200],[S2,P3,J4,500],[S2,P3,J5,600],[S2,P3,J6,400],[S2,P3,J7,800],[S2,P5,J2,100],[S3,P3,J1,200],[S3,P4,J2,500],[S4,P6,J3,300]] Get all supplier-number/part-number/job-number triples such that the indicated supplier, part, and job are not all colocated. Add the QBE view as an image, the SQL equivalent, and the actual output produced.
image text in transcribed

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part I Lnai 8724

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448475, 978-3662448472

More Books

Students also viewed these Databases questions