Write the sql code to perform the tasks

Assignment Help PL-SQL Programming
Reference no: EM13764661

Instructions: Write the SQL code to perform the tasks requested in each problem. Note that Problem 10 requires you to answer a question.

1) Define a view containing products from supplier number S3399214. Include all product columns in the view.

2) Define a view containing the details of orders placed in January 2010. Include all OrderTbl columns, OrdLine.Qty, and the products name in the view.

3) Define a new containing the product number, name, price, and quantity on hand along with the number of orders in which the product appears.

4) Using the view define in problem 1, write a query to list the products with a price greater than $300. Include all view columns in the result.

5) Using the view defined in problem 2, write a query to list the rows containing the words "Ink Jet" in the product name. Include all view columns in the result.

6) Using the view defined in problem 3, write a query to list the products in which more than five orders have been placed. Include the product name and the number of orders in the result.

7) For the query in problem 4, modify the query so that it uses base tables only.

8) For the query in problem 5, modify the query so that it uses base tables only.

9) For the query in problem 6, modify the query so that it uses base tables only.

10) Is the view in problem 1 updatable? Explain why or why not.

Reference no: EM13764661

Questions Cloud

Performing all the bookkeeping functions for the business : Develop a hypothetical business you would consider starting with a friend or relative. Imagine also that you will be performing all the bookkeeping functions for the business
Write the sql code to perform the tasks : Write the SQL code to perform the tasks requested in each problem. Define a new containing the product number, name, price, and quantity on hand along with the number of orders in which the product appears.
Growth of hospitals and health care systems : Predict the type of long-term care needed as the 21st Century America advances in age. Defend or critique the type of care patients obtain in private nursing homes as compared to public institutions or in-home care. Provide a rationale for your re..
Review reading in qualitative research and evaluation method : Review the reading in Qualitative Research and Evaluation Methods and the video segment "Doctoral Research: Ensuring Quality in Doctoral Research."
Write the sql code to perform the tasks : Write the SQL code to perform the tasks requested in each problem. Define a new containing the product number, name, price, and quantity on hand along with the number of orders in which the product appears.
Review reading in qualitative research and evaluation method : Review the reading in Qualitative Research and Evaluation Methods and the video segment "Doctoral Research: Ensuring Quality in Doctoral Research."
Principles and theory of security management : think of some intrusions - the disgruntled mailman flying onto the Capitol lawn on his gyrocopter and remember the couple who crashed a White House function a few years ago?
Provide details of how the mobile self-service : Prototyping, Write a proposal to the University including the following. The prototypes that could be created.The type of usability testing to use in determining the design that will provide the best user experience.
Data and process modeling : The next phase in the project development cycle is to develop a logical model of the system based on the system requirements. The first step is about the "what" step. We need to show what the system will do, without worrying about how it will do..

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Write a script that declares a variable

Write a script that declares a variable and sets it to the count of all products in the Products table. If the count is greater than or equal to 7, the script should display a message that says,

  Write sql statements for the ten queries

Write SQL statements for the ten queries - find the names of all Tracks that are more than 10 minutes (600,000 ms) long. Result: (name: varchar(255))

  Point totals by race level listing

List the Rider's Name, RaceLevel as Race_Level and the total number of all points based on their placement. Make sure that you don't list any riders who have not raced in any races yet (not placed yet).

  Create a pivottable on a new worksheet using the data

Use the data on the Christensen worksheet in the range A1:J19 to create a PivotChart on a new sheet. Use the Type, Issue Price, and Est. Value fields and the default locations. Find the average issue price and average estimated value.

  An er diagram for the system

An ER diagram for the system. Show all entities, relationships, cardinalities and optionalities. Also, include all intersection entities. You must use the Finkelstein methodology as per the study book and tutorials.

  Select distinct cmdclient

SELECT DISTINCT CMDclient.'Client Code SCA' as GuestCode, CMDextras.ArrivalDate as arr, CMDextras.DepartureDate as dep, CMDapr.FirstName as fname, CMDapr.Surname as lname

  Create a view named productsummary

Create a view named ProductSummary that uses the view you created in exercise 4. This view should return some summary information about each product.

  Describe and explain oracle date and time format in details

Describe and explain Oracle Date and Time Format in details. Provide some Functions used for Date and Time and give some syntax example of their usage. Expand your examples to include some Arithmetic used with Oracle Date.

  Let the user type his first and last name

The program should let the user type his first and last name.

  Provide a comprehensive record of using sql

Learning Objectives: The purpose of Project 3 is to enable the students to gain extensive experience with using SQL to design and query databases.

  Write a select statement that returns two columns

Write a SELECT statement that returns these two columns - CategoryName The CategoryName column from the Categories table

  Script that creates and calls a function named

Write a script that creates and calls a function named fnDiscountPrice that calculates the discount price of an item in the OrderItems table (discount amount subtracted from item price). To do that, this function should accept one parameter for th..

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