联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp

您当前位置:首页 >> Java编程Java编程

日期:2024-04-01 11:56

MIS 385

SQL Queries Assignment

Submission instructions

What to submit:

· One PDF file with the SQL queries code.

Questions

Download bookstoreHW.sql (do not edit this file). This is the same database of Exercise 4, but now in MySQL workbench. 

Start by importing the database to MySQL Workbench (make sure to follow exactly the instructions on how to import/export databases in MySQL workbench). Then, create the entity-relationship of the database and export it to a pdf. It is important to have the diagram handy when creating the queries.

Now, create a SQL query for each of the questions below. First, run the code on My SQL Workbench, then copy the code to a Word file, and finally, after you have all codes, convert the Word file to a PDF and submit it.

Note: Assign aliases in the queries whenever necessary (please use a short name that briefly describes the information on the corresponding column).

1. For each order, list the order_numb, order_date, credit_card_numb, the corresponding customer first and last names, and customer phone.

2. Repeat query 1, but only showing orders that have been filled and that were placed before March 1, 2016.  

3. Show all book titles ordered before March 1, 2016.  Do not list any title more than once.

4. For each book, show the isbn, author, title, and quantity sold. Sort the books by quantity sold from largest to smallest. The number of books column should have the heading "units_sold".

5. Find out the total number of orders that have not been shipped.

 


相关文章

版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp