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

  Write program that models an employee

Write a program that models an employee. An employee has an employee number, a name, an address, and a hire date. A name consists of a first name and a last name.

  Relational algebra expressions for names of salespeople

Illustrate relational algebra expressions for names of all salespeople, names of all salespeople having ORDER row and names of salespeople not having ORDER row.

  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.

  Create a function

Create a function that returns the day of the week for a specified date. Create a trigger that displays the message "Emp table updated" when an update to the employee table increases the employee's basic salary.

  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?

  Key value of fourth index record on top level

What is the key value of the 4th index record on the top level, assuming each index record points to the record with the highest key value in a block of the next level down?

  Explain the problems associated with data redundancy

Assignment 5: Logical Design, Part II, Explain the problems associated with data redundancy as it pertains to effectively using information for reporting and analysis.

  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.

  Create an e-r diagram

You have probably seen that already when you tried to create an E-R diagram. Visio uses notation and graphical shapes that are not the same as those in your text. If you look at some of the links to schemas, you will see a similar sort of thing.

  Pharmacy designating database

Pharmacy systems today are more efficient and user friendly when compared to the systems 20 years ago.

  Translation from erd to the relational model

Complete (i.e., reverse engineering) ER diagram below such that 4 relation schemas above are exactly result of a translation from the ERD to the relational model.

  Find average number of books borrowed per member

Find the average number of books borrowed per member. Take into account that if a member does not borrow any books, then that member does not appear in the borrowed relation at all.

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