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

  Determine a list of n numbers has no duplicates

Express given five loosely described problems carefully in { Instance, Question } form as utilized in "Computers and Intractability". Determine that a list of n numbers has no duplicates.

  Database system development

The database application project (DAP) for this course consists of the creation of a fully functional Microsoft Access database application for a real client.

  Design er schema to keep track of information of votes

Design an er schema for keeping track of information about votes taken in the U.S. House of Representatives during the current two year congressional session.

  Oracle having multiple group functions in same select list

Can Oracle have multiple group functions in the same SELECT list of query (i.e can we do a COUNT and AVG)? Let us assume we wanted to find lowest, highest, average.

  List different entities-objects-logical processes-data flows

List the different entities or objects, logical processes, data flows, and data stores that are involved, starting from the time you submitted your time sheet.

  Represent data for sales of individual stores

Explain how you will visually represent the data for the sales of the individual stores and for the time period shown. You want to show the change in sales for each store over time for the past three years.

  Create query that spans both tables

Create a query that spans both tables. Eliminate redundant fields. Modify the Query to select only those Customers that had service dates in October and November 2006.

  Sales transaction in retail clothing

Examine different sales transactions. Design a context diagram and a level-0 diagram that represent the selling system at the store.

  Explaining cardinality of a relationship

What is meant by cardinality of a relationship? Your answer requires to be thorough and specific. Be sure to include the two types of cardinality

  Practice on topic of normalization

Practice on topic of Normalization

  Role and tasks performed by database administrator

In 250 - 300 words describe role of a database administrator and the tasks performed by this role. Also, describe why this role is important in Database Management.

  Explaining business activity in new is with a database

Assume you manage business activity which needs a new IS with a database. The development team is divided on which DBMS you must use. One faction wishes to use oracle,a second wants to use MtSQL, and a third wants to use SQL server.

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