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

  Sort ascending by consultant id and date opened

Sort ascending by consultant ID and Date Opened. Don't show tickets with category ID of 0. HINT: You will require to use SELECT query with an alias in builder for the column.

  Craete the database to be fault tolerant

Explain the thought process of DBA as they craete the database to be fault tolerant. What policies would you suggest to get this goal?

  Create a database for a home-budgeting application

The first part is to create a database and some tables which will be appropriate for a home-budgeting application. That portion of the assignment should be completed from the MySQL console command line.

  Characteristics of database

Describe the database and describe the four characteristics of the database? Explain the Relational Database and generate a relational database for five employees.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Calculate canonical cover for set of functional dependencies

Calculate a canonical cover for above set of functional dependencies (show each step of your derivation with an explanation).

  Ways of implementing one-to-one relationships

Describe the difference ways of implementing one-to-one relationships. Assume you are maintaining information on offices (office numbers, building, and phone numbers)

  Baxter aviation database

ER diagram for the Baxter Aviation database

  Explain the datawarehouse and data mining concepts

There are six major types of information systems which organisations use in their operations. Discuss how these information systems support managers in their decision making role Explain the datawarehouse and data mining concepts using appropria..

  Specify the foreign keys for schema

First, specify the foreign keys for this schema, stating any assumptions you make. Next, populate the relations with a few example tuples.

  Write procedure to construct character frequency table

Write the procedure named Get_frequencies which constructs character frequency table. Input to procedure must be a pointer to the string, and pointer to array of 256 doublewords.

  Determine functional dependencies of table

Using your knowledge of Premiere Products, determine the functional dependencies that exist in the following table.

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