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

  Write select statement that returns two columns

Write a SELECT statement that returns two columns: VendorName and PaymentSum, where PaymentSum is the sum of the PaymentTotal column.

  Write name of employee on every project located in houston

Write the name(s) of employee(s) who works(work) on every project located in Houston. Write the name(s) of employee(s) who only works(work) on every project located in 'Houston.'

  Determine columns that make up the primary key

Carry out the following tasks below by using the correct SQL statements. Create the statements in Oracle by using the following steps (SQL > SQL commands > Enter Command). Determine the columns that make up the primary key of the l_lunch_items tabl..

  Developing a database

You have been asked to develop a database utilizing only the written problem description given by the client. In reviewing the description.

  Drawing active directory hierarchy in terms of forests

Draw Active Directory hierarchy in terms of forests, trees, domains, organizational units, and sites which are most suitable for this company and their security concerns.

  Essay on data mining in warehouse architectures

Course: data mining. Require a 7 page essay on subjects: Warehouse Architectures: the paper requires to contain information about centralized, federated, and tiered data warehouse.

  What type of databases and database servers myspace use

What kind of databases and database servers does MySpace use? Why is database technology so important for a business such as MySpace?

  Creating use case to describe typical sales process

Create use case to describe a typical sales process. Then make a sequence diagram for use case.

  Importance have button that takes you back to main page

What is the importance to have a button that takes you back to the main page on each web page? How does dead end or orphan pages affect the continuity of a website?

  Draw an er diagram for database scenario

Draw an ER diagram for database scenario. Design a set of 3NF tables for your database scenario.

  Various kinds of keys to form or define relationships

Relational database is based on fact that data in one table can be tied, or related to data in another table. To do this, database utilizes various types of keys to form or define these relationships.

  Explaining database security relate to data integrity

In talking about database security, some aspects to regard as are Data Integrity, Confidentiality, and Malicious Activity. Illustrate how does database security relate to data integrity?

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