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

  What are the special features for the film alien center

What are the special features for the film Alien Center? Which movies are the least expensive to rent (on average) with regard to rating (e.g., G, R, PG)?

  Create tables using sql ddl

Write the SQL DDL to create the database that contains each of the relations shown in the above ERD. You will need to provide - Your DDL code for each table that you create and a screenshot showing each table that is created.

  Draw an entity relationship model for galle face elephants

Using the Oracle Developer Data Modeler tool, draw an Entity Relationship Model for the Galle Face Elephants case study above. Explain any assumptions you have made.

  Identification of major implementation flaws

ICT320 - Database Programming Identification of major implementation flaws and/or areas for improvement, including and identification of & proposal to remove repeated data.

  Create a basic query that will extract information from book

Create a basic query that will extract the following information from the books, title id, title, publisher, pubdate, edition and cost. Order by publisher.

  Advanced sql and pl sql

Extracting and interpreting data can be very valuable to an organization. Describe the importance of using sub queries in a database system. Provide at least two business case scenarios to support your response.

  Needed to fix something in account

Assume an IT technician was working on your machine because they needed to fix something in your account, and you shared your credentials with them so they could do their work.

  Create database salesinformation

CREATE DATABASE salesinformation; CREATE TABLE sales_data (sale_date date, client_name varchar, product_name varchar, total_dsum int);

  Security and privacy issues in internet of things

You are required to prepare and submit a report on your topic to address the following questions (the length of the report within 1500~2000 words, excluding references):

  Why of table row and page compression in sql server

Provide a detailed explanation of the how and why of table, row, page compression in SQL Server. Explain how it is implemented, why compression would be implemented and under what conditions you would implement a compression scheme. Include at lea..

  Produce one or more visualisations using powerbi

What general conclusions can you draw from this visualisation and Explain how could you rank & compare each salespersons performance

  Write a program that does simplified bgp route advertising

Additionally, it will periodically check the modification time of the routing table file and if it detects that it has changed, it will re-read it and send BGP UPDATEs reflecting the changes to all connected peers. This functionality is described i..

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