Question
LAB OVERVIEW Lab 4 will introduce the various aspects of the SQL select statement and the methods of retrieving data from the database tables. This
LAB OVERVIEW
Lab 4 will introduce the various aspects of the SQL select statement and the methods of retrieving data from the database tables. This lab will also introduce the fundamentals of updating and deleting records. This lab may be completed using either DeVrys Omnymbus EDUPE-APP lab environment, or a local copy of the MySQL database running on your own computer using the ACME database tables. The lab will utilize a set of tables that are represented by the ERD (ACME.ERD.pdf) and are created and populated by the script file (Create_ACME_DB.sql). Follow the instructions in the file CreateACMETables.docx to create your database, tables, and data.
- Write a query that displays the customers showing the company name and their credit limit. Sort the results by their credit limit in ascending order.
- Write a query that displays all the column data from orders. Sort the results by customer Id in descending order.
- Write a query that displays the order id, order date, and total amount. Sort the results by total amount in ascending order.
- Write a query that displays each customer name with a heading of COMPANY_NAME, along with their phone number with a heading of PHONE_NUMBER.
- Write a query that displays each customer name with a heading of COMPANY_NAME, along with their phone number with a heading of PHONE_NUMBER for customers that only have a credit limit of $50,000.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started