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) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -