sql - MYSQL - How to let 3 row data become 1 row data -


Now I select to be union 3 table and under the show.

  | Comment | Total A | Total B TatalC | ----------------------------- | One | 123 | Faucet Faucet | One | Faucet 123 | Faucet | One | Faucet Faucet 123 |   

How should this line 1 to be shown?

  | Comment | TotalA | TotalB | TatalC | ----------------------------- | One | 123 | 123 | 123 |   

I am trying to group and separate it but it is shown below.

  | Remark | TotalA | TotalB | TatalC | ----------------------------- | One | 123 | Faucet Faucet Select the sum, sum (total B), sum (total B), sum (total A),  (total B)     Div class = "post-text" itemprop = "text"> 
 In the form of total B, the sum in the form of a sum as C in total (total C) by comment    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -