Write a query to count current and discontinued products

Assignment Help PL-SQL Programming
Reference no: EM133641611

Task 1
Create a query to list the entire employees table

Task 2
Create an SQL select statement to retrieve the customer_id, company_name and contact_name of all customers based in London

Task 3
Perform the same query as in Task 1, but in the query result table, name the customer_id field to ID, company_name field to company and contact_name to contact

Task 4
Create a query to to retrieve the order_id, company_name and order_date of all orders placed before 11 July 1996

Task 5
create a query to list the product_name and quantity_per_unit of all products from the product table.
Modify this query to select only those products that are not discontinued, and in the result table, label the product_name column Product, and the quantity_per_unit column PerUnit modify the query to include the price and sort the output so we can easily find the most expensive product and the least expensive product

Task 6
Write a query to count current and discontinued products Modify this to print only the discontinued products

Task 7
Write a query to get a Product list (name, units on order , units in stock) of all current stock which has less available units than the quantity on order

Task 8
Find the Total Number of Units Ordered of Product ID 3

Task 9

construct a query to list the order id, order date, company name placing the order, the product name and the quantity ordered of all items for the orders from customer with ID CONSH

Task 10
construct an SQL statement to update employee Robert Kings title to Dr

construct an SQL statement to insert a new employee record for Frodo Baggins

Task 11

construct SQL statements to update the price of:
Perth Pasties to 45 dollars Vegie-spread to 50 dollars
Filo Mix to 8 dollars and 50 cents

Construct an SQL statement to insert an order for the customer you added to the customers table last week (with your student ID number), with the order date of 1 April 2021, the required date of 5 May 2021, a shipped date of 16 April 2021, shipped via DHL to the same shipping address as in your specific customer record and this will be created by employee Robert King.

This order should order the following 3 items with the specified quantities Perth Pasties, 20 units
Vegie-spread,10 units Filo Mix, 45 units
there is no discount for any of the products

Reference no: EM133641611

Questions Cloud

About emotional intelligence : You learned about Emotional Intelligence (EQ). Building upon the information you gained in last week's resources,
E-commerce site with mobile messaging feature : Sadie has integrated her e-commerce site with a mobile messaging feature. She is still learning about the benefits of her decision.
Define the concept of strategic information system : Define the concept of a strategic information system and provide an example. What is the use of this system in the organization?
About organizational planning : This chapter talks about organizational planning. Explain how three aspects of organizational planning
Write a query to count current and discontinued products : Write a query to count current and discontinued products Modify this to print only the discontinued products - construct an SQL statement to update employee
Why might it be an effective instructional method to use : What is the CIM? What is the idea behind the design of the CIM model? Why might it be an effective instructional method to use while tutoring?
How did some influence fashion design in fabrics : How did some influence fashion design in fabrics, like Anna Garthwaite in London? What became of these women latter in their lives?
How prenatal development influence by environmental factors : Illustrate how prenatal development is influenced by environmental AND/OR genetic factors. Utilize your Creativity, it is strongly suggested.
What is the Board called : What is the Board called? Change Advisory Board Change Configuration Board Configuration Management Board Joint Application

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