Find the sids of suppliers who supply every part

Assignment Help Database Management System
Reference no: EM13934315

Consider the following schema:

Suppliers(sid: integer, sname: string, address: string) Parts(pid: integer, pname: string, color: string) Catalog(sid: integer, pid: integer, cost: real)

The key fields are underlined, and the domain of each field is listed after the field name. Thus sid is the key for Suppliers, pid is the key for Parts, and sid and pid together form the key for Catalog. The Catalog relation lists the prices charged for parts by Suppliers. Write the following queries in relational algebra, tuple relational calculus, and domain relational calculus:

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

2. Find the sids of suppliers who supply some red or green part.

3. Find the sids of suppliers who supply some red part or are at 221 Packer Ave.

4. Find the sids of suppliers who supply some red part and some green part.

5. Find the sids of suppliers who supply every part.

6. Find the sids of suppliers who supply every red part.

7. Find the sids of suppliers who supply every red or green part.

8. Find the sids of suppliers who supply every red part or supply every green part.

9. Find pairs of sids such that the supplier with the first sid charges more for some part than the supplier with the second sid.

10. Find the pids of parts that are supplied by at least two different suppliers.

11. Find the pids of the most expensive parts supplied by suppliers named Yosemite Sham.

12. Find the pids of parts supplied by every supplier at less than $200. (If any supplier either does not supply the part or charges more than $200 for it, the part is not selected.)

Reference no: EM13934315

Questions Cloud

Were there significant changes to any of the specific : Were there significant changes to any of the specific line-item details that you think would require further explanation or analysis?
Products manufactured by nanuq australia : A large retailer (in Sydney) that sells products manufactured by Nanuq Australia needs to develop an inventory policy for electric heaters. The annual demand for the electric heaters is 3,000 (A) units. Each unit costs the retailer $50 (c) with ho..
Principle and practice of health and social care : ABC Care Home is situated in London and caters to care needs of vulnerable people. The service users come from diverse ethnic and religious background and have varied physical and medical needs.
Broad range of theoretical models : The TQM approach to the management of human resources. The interpretation of quantitative and qualitative data to manage events. Support your evaluation with reference to a broad range of theoretical models that have been introduced and discussed i..
Find the sids of suppliers who supply every part : Find the sids of suppliers who supply every part. Find the sids of suppliers who supply every red part. Find the sids of suppliers who supply every red or green part.
Description of how you collected the data : References to data sources used for your study. Although you will work as a group to undertake your analysis, you must submit an individual report. The text, graphs, tables etc included in your report should be your own work. Data have been collec..
How address different sexual orientation as group supervisor : Does anyone have any thoughts or comments on how to address different sexual orientations (LGBT) as the group supervisor? My understanding is the strength of the group comes from the interaction and acceptance of each member. Any thoughts on how t..
Fundamental quality management tools and techniques : Before starting this assessment activity, read the full assessment description, marking criteria, submission requirements and guidance provided in the course textbook and below.
Presentation of data for the senior investment advisers : Having completed your Graduate Degree from Cambridge, you have just got a job at a small investment advisory firm. Your firm recommends investment funds to Self-Managed Super Fund (SMSF) clients based on their risk and return characteristics.

Reviews

Write a Review

Database Management System Questions & Answers

  Summarize the difference between on-line transaction

your database has been a hit. you have been called back to the customers headquarters and they want a detailed report

  Importing and analyzing sales data

Importing and Analyzing Sales Data- Security Enablers is a national company that provides security systems for small businesses. They have asked you to use the company template and import sales for the last five years

  Implementation of oilco and exploreco

1. Compare and contrast the implementation of OilCO and ExploreCO. 2. What were the similarities and differences between the two implementations?

  Create a database design - relational data model

Create a database design specification Enhanced Entity Relationship Diagram (EERD) and Relational Data Model from the given business description - Database Management System

  Revise table that is to be used as data source in mail merge

In the following project, you will revise a table that is to be used as a data source in a mail merge. As the business manager for Sports Medicine Clinic, you will send letters of welcome to three newly hired physical therapists

  Write problems and issues related with internet databases

Write down some of problems and issues related with internet databases? Consider security, performance, architecture issues.

  Create a set of dependency diagrams for the abs database

Consider a case that is not described above, but could happen in the business of the ABS. Please explain the case and why it might occur and based on the case you proposed, modify your design of the ABS database accordingly.

  Construct a query that can be used on a report

Construct a query that can be used on a report for determining how many days the customer's invoice will require payment if total amount due is within 45 days. Provide a copy of your working code as part of the paper.

  Create local variable that inherits structure of car table

Using an explicit cursor, retrieve each row from the i_car table. Create a local variable that inherits the structure of the i_car table (using %ROWTYPE attribute). Place each row returned into this variable

  Why are labor operations and labor types often tracked in

Why are labor operations and labor types often tracked in the conversion process but usually not tracked in the revenue process?

  Information-gathering techniques for the project

Explain the information-gathering techniques and design methods you would suggest to use for project. Recognize the key factors that help ensure the information required for the project.

  What other dbms constructs came after relational databases?

What other DBMS constructs came after relational databases?

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