Print to screen the ''below average''

Assignment Help Database Management System
Reference no: EM13168115

 Print to screen the 'below average' if minimum unit_cost is <10 for product with prod_id = 145,  and print 'above average' for if minimum unit_cost is >10 for the same product (use sh.costs table)

 

2-    Create maxProds table as follow

 

CREATE TABLE maxProds

         (ProdName VARCHAR(64),

         MaxUnitPrice NUMBER(6,2),

         TotQuantSold  NUMBER(6));

 

Then insert into it Product name, the maximum Unit_Price, and the total Quantity_sold for the product with Prod_ID = 14. Use sh.Products, sh.Sales, and sh.Costs tables get the information

 

 

Reference no: EM13168115

Questions Cloud

Define different compounds of the hypothetical element x : Consider three different compounds of the hypothetical element X using the table of bond lenghts as a reference, rank the three compounds shown below in order of increasing
Design and implement a graphical user interface (gui) : Design and implement a graphical user interface (GUI) that lets a user draw geometric objects such as rectangles, circles or line segments. The geometric objects are two be "entered" with clicks of the mouse
Calculate the ph of distilled water : Calculate the pH of a 25 mL distilled water sample after the addition of 1mL, 2mL, 3mL, 4mL
Draw the mechanism for the reaction : draw the mechanism for the reaction between 3-chloroaniline and diethyl ethoxymethylenemalonate.
Print to screen the ''below average'' : Print to screen the 'below average' if minimum unit_cost is 10 for the same product (use sh.costs table)
Explain a compound has a c nmr spectrum with peaks : A compound has a C nmr spectrum with peaks at 7.4, 28.9, 36.4, and 208.8. The H nmr has peaks at 1.05 (t, .6), 2.13 (s, .58), 2.47 (q, .39). What is the compound?
Generate two files of 100 by 100 mazes : Write a C++ program that opens a file representing an encoded maze and reads it
Explain how many grams of sucrose must be dissolved in water : how many grams of sucrose (C12H22O11) must be dissolved in 200 g water to make a solution in which the mole fraction of sucrose is 0.1? answer in units of g.
Write a program displaying a text file that is in a text are : Write a program displaying a text file that is in a text area. The user enteres a file name in a text field and clicks the view button; the file is then displayed in the text area. Do not use BufferedInputStream.

Reviews

Write a Review

Database Management System Questions & Answers

  Same name to attributes which are in different tables

What about giving same name to attributes which are in different tables but are not same? For instance, "Description" in both a Course table and a Classroom table.

  List course along with names of students from database table

List the courses (D-code and C-no), along with the names of the students who are currently taking them. List all the courses (D-code and C-no) that John (i.e., S-Name=''John'') got 'A' grade.

  Explaining valid host addresses of wan links

Start with LAN on RTA and proceed clockwise. Determine the number that how many total valid host addresses will be wasted on WAN links?

  Create database to produce reports using surrogate keys

Complete following task. In each exercise, represent answer in both DBDL and with diagram. You may use any of styles for diagram. Create database to produce following reports. Do not use any surrogate keys in design.

  Referential integrity constraint prevent from data inserting

What actions does a referential integrity constraint prevent from occurring when data is inserted in a table that contains this constraint?

  Explaining software measurement related to software metrics

Is software measurement equivalent to software metrics? What makes them different?

  Prove-leaves of binary search tree are located in bottom

Examples for small n are given bellow, where a small square box represents an unsuccessful search. Prove that leaves of any binary search tree are located in the bottom two levels.

  Draw an e-r diagram

Draw an E-R Diagram and draw an E-R Diagram for Student Information System.

  Determine columns that make up the primary key

Carry out the following tasks below by using the correct SQL statements. Create the statements in Oracle by using the following steps (SQL > SQL commands > Enter Command). Determine the columns that make up the primary key of the l_lunch_items tabl..

  Describe binary lock function

Describe relationships with example. Also illustrate degree of relationship for that example. What do you mean by locks. Write dow a binary lock function.

  Explain leaf of b tree which holds a sublist

Artificially small example of B+ tree is shown here (pdf). (Note only part of tree is shown in detail.) What nodes of example B+ tree are visited to find posting list for "dune"?

  Give preliminary information on data requirements for gis

You have been requested to give preliminary information on the data requirements for a GIS which is to be used to hold inventory of continental scale vegetation maps for coarse scale land surface

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