1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
hjlf
4 years ago
8

Create a view named product_summary that uses the view you created in question 4. This view should return summary information ab

out each product. Each row should include product_name, order_count (the number of times the product has been ordered) and order_total (the total sales for the product).
Computers and Technology
1 answer:
kumpel [21]4 years ago
3 0

Answer:

Following are the Query to this question:

/*creating view product_summary */

CREATE VIEW product_summary AS

SELECT product_name, COUNT (order id) As order_count,

/* selects columns names */

SUM(item_total) AS order_total  /* add values */

FROM order_item_products   /* table name order_item_products*/

GROUP BY product name;

Explanation:

Creating view description can be described as follows:

  • In view creation "CREATE VIEW' command is used, which creates its view "product_summary".  
  • In this creation, the columns are used, which returns the view that will come from the "SELECT" command.
  • In this "FROM" command is uses the table, in which all "order_count" and "order_total" manipulate columns, use the "AS" command is used, which gives all the existing values, and it also uses the group by, which operates each product.
You might be interested in
How could this code be simplified?
nikklg [1K]

The code to be simplified is not indicated but I will give you a general guide to simplifying Java codes.

<h3>How do you simplify Java Code?</h3>

  1. At the top, declare and initialize your variables. Late declaration disrupts readability.
  2. Create specific functions that are modular. It is inefficient to have functions that attempt to "do it all".
  3. Make it a practice to name the function to correspond to the task.
  4. All duplications must be removed and rectified
  5. Having comments provide a fantastic way to summarize the purpose of a code.
  6. Do not overuse recursion. Doing this makes it difficult to understand at a glance.
  7. If possible, do not use global variables. The local variable takes precedence over the global variable in JavaScript.

Learn more about Java code at;
brainly.com/question/18554491
#SPJ1

4 0
2 years ago
What software is typically used for larger systems?
Degger [83]
Microsoft Server, (often clippy is used as well)
4 0
3 years ago
A/an<br> controls the flow of data between a computer and the network.
strojnjashka [21]

Answer:

The NIC (Network Interface Card)  is the computer network component that controls the flow of data between a computer and the network.

Explanation:

5 0
3 years ago
In 2007, __________ Floridians died in alcohol-related collisions. A. 501B. 1,051C. 5,015D. 10,839
wel

1000 people died of an alcohol addiction

4 0
3 years ago
55 POINTS, IN JAVA
ikadub [295]

public class JavaApplication82 {

   

   public static void main(String[] args) {

       

       for (int i = 1; i <= 9; i++){

           for (int w = 0; w < i; w++){

               System.out.print("*");

           }

           System.out.println("");

           

       }

   }

   

}

This works for me.

6 0
3 years ago
Other questions:
  • What term refers to a piece of software that interfaces with the hardware on your computer?
    10·2 answers
  • Write down the complete procedure for creating ExcelSheet.
    8·1 answer
  • What two windows tools can you use to know how much ram is installed on your system?
    10·1 answer
  • A database stores a large amount data in vertical ___
    10·1 answer
  • What is a preemptive CPU scheduling algorithm? Give an example and explain.
    7·1 answer
  • Write an expression that computes the average of the values 12 and 40.
    6·1 answer
  • According to the passage, what are the goals of the<br> program? Check all that apply.
    11·1 answer
  • Create a list with 5 numbers and find the smallest and largest number in the list and also the sum and product of the numbers in
    9·1 answer
  • What will happen when you drag and drop a worksheet tab into another workbook WITHOUT holding the Ctrl key down?
    13·2 answers
  • What is computer system<br>explain the role of bank in computer<br>​
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!