Find the ids of suppliers who supply some red or green part

Assignment Help Computer Engineering
Reference no: EM132115949

Answer the following Question :

Q1: Explain the difference among the terms Primary Key, Candidate Key and Super Key with suitable examples.

Q2: Consider the following schema: Supplier(sid: integer, sname: string, address: string) Part(pid: integer, pname: string, colour: string) Catalog(sid: integer, pid: integer, cost: real) The relation Supplier stores suppliers and the key of that relation is sid.

The relation Part stores parts, and pid is the key of that relation.

Finally, Catalog stores which supplier supplies which part at which cost. The key is the combination of the two attributes sid and pid.

A. Write the queries in relational algebra for the following:

1. Find the names of suppliers who supply some red part. (0.25)

2. Find the IDs of suppliers who supply some red or green part. (0.25)

3. Find the IDs of suppliers who supply some red part or are based at 21 George Street. (0.50)

4. Find the IDs of suppliers who supply some red part and some green part. (0.50)

B. For each of the following relational algebra queries, write in English what they mean.

1. psname(scolour='red'(Part) scost<100 (Catalog) Supplier) (0.25)

2. psname(psid(scolour='red'(Part) scost<100 (Catalog)) Supplier) (0.25)

Reference no: EM132115949

Questions Cloud

What is the morality of posting an encryption key : Discuss your answer using Act utilitarianism while taking into account the harms and benefits.
Name of java class for creating a window with a title : Name of Java class that is a layout manager for placing components sequentially (left to right) in the order they were added?
Implement the vertex cover problem : Implement the Vertex Cover problem; that is, given graph G and integer k, answer the question of whether or not there is a vertex cover of size k or less.
Average of two defects per mile after being used : The roads recently paved by low bidding company revealed an average of two defects per mile after being used for one year. Using a Poisson distribution
Find the ids of suppliers who supply some red or green part : Find the names of suppliers who supply some red part. Find the IDs of suppliers who supply some red or green part.
Was slavery premised on racism or did slavery cause racism : HIST 316-11SS African American History Assignment- Based on the development of colonial slave codes - Was slavery premised on racism or did slavery cause racism
Calculate total degree of freedom : Calculate total degree of freedom. Calculate the pooled variance. (Round the answer to 2 decimal places)
List four different types of network segments : The systems development lifecycle (SDLC) provides a standardized process for all phases of any system development.
What is the total number of blocks that were released : A user opens a file containing an image of size 640 × 640; the color of each pixel is coded on 32 bits.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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