Using join sort results alphabetically by customer name

Assignment Help Database Management System
Reference no: EM1362868

Develop SQL queries to retrieve the required information from the following tables.

Items (item_id, designation, price)

Items_ordered (customerid, order_date, item_id, quantity, billing_price)

Customers (customerid, firstname, lastname, city, state)

Note: Some customers get a discount, so the billing_price may differ from the standard price.

a. Select the lastname, firstname, and city of all customers who purchased an item for more that $1000. Display the results alphabetically by last name.

b. Select the firstname, city, and state for the customers who ordered a "tent," and who are living in either Arizona, Washington, Oklahoma, Colorado, or Hawaii.

c. Using Join, list the items each customer ordered where the billing_price was lower than the item price (item, billing_price, and price). Sort the results alphabetically by customer name.

Reference no: EM1362868

Questions Cloud

Show techniques in job hunting : Show prospect of searching for a job can be very intimidating and what techniques have you used in the past when you were job hunting?
Explain characteristics of an effective leader : Explain Characteristics of an effective leader and How has this leader influenced or put his/her mark within the industry (citations)IV.
Total dollar contribution margin dollars-percentage : An imaging center has the following information: Compute the total dollar contribution margin dollars and percentage.
Driving growth and sustainability of mobility industry : Nokia is a world leader in mobile communications, driving the growth and sustainability of the broader mobility industry. Nokia connects people to each other and the information that matters to them with easy-to-use and innovative products like mobil..
Using join sort results alphabetically by customer name : Using Join, list the items each customer ordered where the billing_price was lower than the item price (item, billing_price, and price). Sort the results alphabetically by customer name.
Physical growth and development during middle childhood : Describe normal physical growth and development during middle childhood, and account for the usual variations among children.
In which city hotel room is cheaper and by how much : Suppose the Japanese yen price of one British pound is 163.78 yen for each pound. In which city hotel room is cheaper and by how much.
Computing eva and comparing performance : Compute the Company's EVA for 20X4 and 20X5. Compare the company's performance in creating value for its shareholders in 20X5 with that in 20X4.
Chronic disease to become fatal : What can influence a chronic disease to become fatal? Give at least 3 examples.

Reviews

Write a Review

 

Database Management System Questions & Answers

  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?

  Explaining emp table does not have assigned primary key

Developers have noticed that EMP table doesn't have an assigned primary key. EMP_ID column has been selected to be the primary key.

  Describe information using table

Describe the information seen, using the terms such as table, schema and key. Describe the EMPLOYEE and EMP_PHOTO tables in detail.

  Advantage storing metadata in tables

What advantage is there in storing metadata in tables? Is Microsoft Access a DBMS? Why or why not? List the several consequences of a poorly designed database.

  Use three-sphere model for systems management

Use the three-sphere model for systems management and brainstorm issues related to the change based on the business, technology, and organization spheres.

  Your task is to develop a database to support this activity

Your task is to develop a database to support this activity.Here is what you need to be able to provide Custom Auto Body in order to land your first consulting contract:

  Selecting opies of book titled the big magic

How many copies of the book titled „The big magic? are owned by the local library whose name is "Newtown" library?

  Create structurally sound relational database schema

Create a structurally sound relational database schema showing the minimum number of fields, tables, and relationships between the tables.

  Spreadsheet and database

Explain the differences between the storing data in Access and Excel. Why you would use a spreadsheet over the database?

  Study and modify the postgresql source code

Write a Assignment to study and modify the PostgreSQL source code, with a focus on one of the core modules - the buffer manager

  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.

  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.

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