List all rows and columns for the complete invoices table

Assignment Help PL-SQL Programming
Reference no: EM133771492

Assignment: MySQL Lab code

There are 22 tasks on it. It is done on a website called GitHub. I will attach the link and how to access it once accepted. The instructions on what to do is also in the link I will send. Please make sure to read the instructions on the website in the companion. If possible, please provide a brief explanation as well. Below is an overview of what the tasks will be:

• Task 1: List the item ID, description, and price for all items.

• Task 2: List all rows and columns for the complete INVOICES table.

• Task 3: List the first name, last name, and credit limit of customers with credit limits of $1,000 or more.

• Task 4: List the invoice number for each order placed by customer number 125 on 2021-11-15.
• If you need help, use the discussion of the DATE data type in Figure 3-16 in Module 3.

• Task 5: List the customer ID, the first name, and the last name of each customer represented by sales rep 10 or sales rep 15.

• Task 6: List the item ID and description of each item that is not in category HOR.

• Task 7: List the item ID, description, and number of units on hand for each item that has between 10 and 30 units on hand, including both 10 and 30.

• Task 8: List the item ID, description, and on-hand value (units on hand * unit price) of each item in category CAT. (On-hand value is technically units on hand * cost, but there is no COST column in the ITEM table). Assign the name ON_HAND_VALUE to the computed column.

• Task 9: List the item ID, description, and on-hand value for each item where on-hand value is at least $1,500. Assign the name ON_HAND_VALUE to the computed column.

• Task 10: Use the IN operator to list the item ID and description of each item in category FSH or BRD.

• Task 11: Find the ID, first name, and last name of each customer whose first name begins with the letter S.

• Task 12: List all details about all items. Order the output by description.

• Task 13: List all details about all items. Order the output by item ID within location. (That is, order the output by location and then by item ID.)

• Task 14: How many customers have balances that are more than their credit limits?

• Task 15: Find the total of the balances for all customers represented by sales rep 10 with balances that are less than their credit limits

• Task 16: List the item ID, description, and on-hand value of each item whose number of units on hand is more than the average number of units on hand for all items.

Use a sub-query.

• Task 17: What is the price of the least expensive item in the database?

• Task 18: What is the item ID, description, and price of the least expensive item in the database?

Use a sub-query.

• Task 19: List the REP_ID and the corresponding sum of the balances, as BALANCE, of all customers for each sales rep. Order and group the results by sales rep ID.

• Task 20: List the sum of the balances of all customers for each sales rep but restrict the output to those sales reps for which the sum is more than $150.

The results should display the REP_ID and BALANCE column headers. Order the results by sales REP_ID.

• Task 21: List the item ID, description, and category of all items that are in the DOG or CAT category and contain the word Small in the description

• Task 22: KimTay Pet Supplies is considering discounting the price of all items by 10 percent. List the item ID, description, price, and discounted price for all items. Use DISCOUNTED_PRICE as the name for the computed column.

Reference no: EM133771492

Questions Cloud

Plans to build networks in rapidly growing : TELEMAX is company that plans to build networks in rapidly growing, underserved markets around the world. The company offers innovative communications hardware
Produce accurate predictions of great value to clients : Can you find a case where data was analyzed and a prediction made that turned out to be a colossal mistake
Explain the legal, ethical, and clinical limitations : Explain the legal, ethical, and clinical limitations for forensic psychologist in the three different roles. (5.1) Use three to five resources to conduct resear
Why these two eating establishments : Why these two eating establishments? What makes you keep coming back - What segment of the foodservice industry does your restaurant fall under and why.
List all rows and columns for the complete invoices table : List all rows and columns for the complete INVOICES table. List the first name, last name, and credit limit of customers with credit limits of $1,000 or more.
What are the steps in the forecasting process : Discuss why theories and conceptual models from nursing and related fields are important in advanced nursing practice.
Core environmental factors influencing organization : Critically evaluate the strategic position of an organization of your choice highlighting the core environmental factors influencing the organization
What are the various methods used to estimate cost functions : What do you mean by cost function and for what purpose does it serve for? What are the various methods used to estimate cost functions?
Evaluate your strategic plan : Explain what kinds of information you would use to evaluate your Strategic Plan. Explain how often you would analyze the data.

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

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