Query SQL GROUP BY
Hello everyone.
I have this problem with table of database MySQL.
My table with fields ID, Number and Description:
From this table I need to have the total of records data all under the description CDR VER AP-CS-UPS SANLUCA.
Is a hierarchy structure where IDs 2, 3 and 4 belong to the description ID 1.
I don't like to see the data individually for each description, but the grouping data for macro-DESCRIPTION.
For example:
The total records in table are 4, the query return:
"There are 4 records total for description CDR VER AP-CS-UPS SANLUCA."
thanks for your help, regards.
viki
Hello everyone.
I have this problem with table of database MySQL.
My table with fields ID, Number and Description:
Code:
[b]ID ====== NUMBER ======= DESCRIPTION[/b] 1 ====== 9168381650==== CDR VER-CS AP-UPS SANLUCA 2 ====== 9168381659==== CDR VER-CS AP-UPS SANLUCA-9 3 ====== 9168381651==== CDR VER-CS AP-UPS SANLUCA-SQ S.SANLUCA 4 ====== 9168381652==== CDR VER-CS AP-UPS SANLUCA-SQ DIST.GUSPIN
Is a hierarchy structure where IDs 2, 3 and 4 belong to the description ID 1.
I don't like to see the data individually for each description, but the grouping data for macro-DESCRIPTION.
For example:
The total records in table are 4, the query return:
"There are 4 records total for description CDR VER AP-CS-UPS SANLUCA."
thanks for your help, regards.
viki
Comment