List all pair of products names which are in same city

Assignment Help Database Management System
Reference no: EM1362324

CUSTOMER ( Cid, CName, City, Discount )
AGENT ( Aid, AName, City, Percent )
PRODUCT ( Pid, PName, City, Quantity, Price )
ORDERS ( OrderNo, Month, Cid, Aid, Pid, OrderedQuantity, Cost )
Write the appropriate SQL statements that perform the following queries: ( Solve part 10, 11 and 12, only when you finished all the previous queries to avoid changing the data. )
You must change the name of any manipulated column.

1) List the names of agents that placed an order for customer C003 or customer C006.
2) List all pair of products names that are in the same city, along with their city name.
3) List the number of orders and their total cost for each agent that handled orders with more than $1,000 in total; showing the agent name.
4) List the names of all customers and the total cost of their orders if they have placed an order.
5) List the id and the name of products that were not ordered through agents 'A04'.

Reference no: EM1362324

Questions Cloud

List out some of your variable costs and describe it : Suppose you and your roommate have started a bagel delivery service on campus. List some of your fixed costs and describe why they are fixed. List out some of your variable costs and describe why they are variable.
Pros and cons of various ergogenic aids : Name and describe the pros and cons of various ergogenic aids: caffeine, carnitine, chromium picolinate, creatine, amino acids and protein powders?
Explain the process average and range in statistical control : Explain the process average and range in statistical control and Is the process capable of meeting the design standard at four-sigma quality
Indicate the short-run price elasticity of demand for tires : Indicate what the short-run price elasticity of demand for tires is 0.9. If a tire store raise the price of a tire from $50 to $60, by the price elasticity of demand.
List all pair of products names which are in same city : List the names of agents that placed an order for customer C003 or customer C006. List all pair of products names that are in the same city, along with their city name.
Risk-averse with the utility of money : Supposer two individuals living in the country of Depressia. Depressian banking system is very unstable. On average, 5 percent of all banks collapse every year.
Prevention of cardiovascular disease : How are nutrition and immunity are related? Also, describes what cardiovascular disease is, risk factors for cardiovascular disease, prevention of cardiovascular disease, and diet factors that affect cancer risks.
Write program to calculate how much person earns : Write a program that calculates how much a person earns in a month if the salary is one penny the first day, two pennies the second day.
Child thinking or cause misbehavior : Explain how nutrient deficiencies impair a child's thinking or cause misbehavior?

Reviews

Write a Review

Database Management System Questions & Answers

  Perform large number of client-server requests into database

A small business with 100 computer workstations is installing a new local area network. All of the users perform the usual operations of e-mail. State your reasoning. Draw a floor plan for each If possible, show both floor plans on one page.

  Determine cost of least expensive part in part table

Write a query to determine the cost of the least expensive part in the part table? Format the returned price in dollars and cents using the correct function.

  Write a recursive sql query

MCIS 630 Database Systems: -  Write a recursive SQL query that outputs the names of all subparts of the part with part-id “P- 100”.

  Access values through queries to databases

However, the only way you can access values is through queries to the databases. In single query, you can specify value k to one of two databases.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Explaining controls for database to execute transaction

Controls which need a database to either execute transaction completely or not at all.

  Number of leaf-level blocks needed if blocks are full

What is the order P of the B+-tree if B+-tree access structure on the key is constructed? What is the number of leaf-level blocks needed if blocks are approximately 69% full (round up for convenience)?

  Explaining unclustered b pus tree index

Suppose you have a table which contains 27,000 data records, and you have unclustered B+ Tree Index on the table.

  Explain primary problem in credit card records

You have a file which contains credit card records. Each record contains field for the card number, expiration date, and name of card holder. Explain what primary problem you try to solve is.

  How protocol ensures serializability and deadlock freedom

To lock any other vertex, the transaction must have visited all the parents of that vertex and must be having a lock on one of the parents of the vertex. Show that the protocol ensures serializability and deadlock freedom.

  Creating erd containing order and customer entity

Create ERD containing Order and Customer entity types connected by 1-M relationship from Customer to Order. Select suiatble relationship name using your common knowledge of intersection.

  Create the following documents for the proposed system

MGMT321 Group Project: Create the following documents for the proposed system and deliver each SDLC documents by the end of each designated module, as shown below

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