Display all product columns for products

Assignment Help PL-SQL Programming
Reference no: EM13839911

Query: For each customer, show the number of orders placed, and the largest, smallest and total freight ordered. Only show those customers whose total freight is greater than $1000.

Query: Display all product columns for products that are red and black and have a list price greater than or equal to $400 and less than or equal to $800. Use the keywords BETWEEN and IN.

Query: Rewrite query #9 to remove the use of BETWEEN and IN, and replace with the equivalent use of =, <, >, /= and AND and OR expressions.

Write SQL statements that will retrieve the following data from a database, using Subqueries and Joins. Using the AdventureWorksLT2012 database, write a SQL SELECT statement that will retrieve the data for the following questions:

Query 1: For each order, display the Customer's Company Name, Phone, and the Email for the customer who placed the order. Include the Sales Order ID, Order Date and the Due Date. Sort the results by Company Name in ascending order.

Query 2: For each order, list the Sales Order ID, Order Date, Product Name, sales order Unit Price, Quantity Ordered. Sort the data by the Sales Order ID and then the Product Name.

Query 3: Modify the first query to list the same fields, but include all customers even if they have not placed an order.

Query 4: List all product categories (including product categoryID and name), the number of products in each category as well as the average list price of the products in that category. Display those categories that have 5 products or less including categories that have no products assigned to it. Name the count column ‘ProductCount' and the average column ‘Average List Price'. Sort the results by the product count in descending order.

Query 5: Display the Product Name, and List Price of all products that have a list price larger than the Cable Lock product. Sort the results by List Price in descending order. Note: use of a subquery is required.

Query 6: Display the Customer Name of all customers who have placed orders between May 2004 and September 2004. Sort the results by Company Name in ascending order. The name should appear once on the list.

Query 7: Display the ProductID, name and weight of all products that weigh less than ‘Front Brakes'. Sort by the results by weight in descending order. Use a subquery.

Query 8: List the Product Name and ProductID for all products that have not sold. Use a sub query.

Query 9: Display the Customer ID and Customer Company Name for all customer's shipping addresses in the United States.

Query 10: Display the Sales OrderID and Total Due for all orders where the Total Due is larger than the average Total Due for all orders.

Reference no: EM13839911

Questions Cloud

Evaluation of jobs and job structure : Evaluation of Jobs and Job Structure
What is the ascii collating sequence : Which standard C++ library function allows you to paste one string onto the end of another. What must you be careful of when using this function
Design a drainage and pumping system to deal with mine water : You are required to design a drainage and pumping system to deal with the mine water for the next 10-15 years based on the data in the following sections.
Discussion on the right to carry guns on college campuses : Discussion on the Right to Carry Guns on College Campuses
Display all product columns for products : Display all product columns for products that are red and black and have a list price greater than or equal to $400 and less than or equal to $800. Use the keywords BETWEEN and IN.
What is an annotated bibliography : What is an annotated bibliography? A description/summary of the central theme of the work. A mention of the intended audience, Comments about the work's quality and scope,and the relevance of the work as it pertains to your topic
Conduct a swot analysis on the case study company : Conduct a SWOT Analysis on the case study company's current lack of strategic control. Create a case study analysis focusing on the company's challenge relative to strategic control through a balanced scorecard and implementation
What is the interest rate implied in the lease : Describe how the asset and liability sections of Mr.Speakers' balance sheet would change if the FASB passed and implemented the exposure draft on lease accounting prior to 1/1/2016 - What is the interest rate implied in the lease and prepare ALL ne..
Integrate the readings-writing assignments : The Final Paper presents an overview of the topics of the course framed within one of the people groups studied, demonstrating the student's' ability to integrate the readings, writing assignments, and key term into a seminal project.

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Write pl-sql block to display the last name of people

Write a PL/SQL block that displays the last name and salary of the following people. Each of these can be done separately as PL/SQL, first to test and get the output lines then encapsulated in the procedure.

  Write sql statement to create user defined function

Write SQL statement which creates user defined function which returns int value. This int return value is obtained by deducting the lowest Count field value from the highest Count field value of Part table.

  Write the queries in sql

Write your queries so that the final answers will never include duplicates, but add the keyword DISTINCT only in cases where duplicates would otherwise be produced.

  Sql statement which select names and owners of great danes

Write SQL statement which would select each of the following: names and owners of all Great Danes and all attributes of poodles whose balance is no greater than $50.

  Identify the attributes of the entities

Identify the various entities and their attributes involved in the application and identify the attributes of the entities that are unique to each entity.

  Convert requirement to logic and then to sql

Prepare the SQL query for each of given requirements. Convert requirement to logic, then to SQL. Illustrate the names of all products which have been sold.

  Write select statement to return those rows with due balance

Write SELECT statement which returns those rows with the balance due greater than 1000. Sort result set by InvoiceTotal, with largest invoice first.

  Create account, email confirmation, and account activation

Chosen User Identifier for the account - System must ensure the user id is at least 5 characters, and no existing accounts with the same user id- If same user id exists, System must require User to choose another user id

  Write a plsql block and declare a variablenbspvsalnbspof

write a plsql block and declare a variablenbspvsalnbspof the type number. include the following statement in the

  Review problem and run required statement to create table

Please note that for "Table Employees" due to length of the table description and page size limit, I have broken it into 2 parts for better visibility, please make sure to use all the given attributes from the table.

  Create a view named customer addresses

Create a view named CustomerAddresses that shows the shipping and billing

  Play a significant role in the sql injection attack steps

Examine the critical manner in which different database systems (e.g., Oracle, MySQL, or Microsoft SQL Server-based, etc.) can play a significant role in the SQL injection attack steps.

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