4
How do I count the equal results and add the amount in front?
For example:
Currently the records of my table are like this:
Id | Nome
------------
0 | Teste
1 | Teste
2 | Teste
I want to give a DISTINCT
in them and leave them like this:
Id | Nome
------------
0 | Teste(3)
SQLFIDDLE for testing
I’m using MySql
!
The same works for
MySql
? That was thetag
which I inserted in the question.– Leonardo
works @Exception parabens Pedro
– Otto
@Exception works yes tested here in Mysql Workbench
– Pedro Rangel
@Otto thank you^^
– Pedro Rangel
No need to use DISTINCT...
– KaduAmaral
@Kaduamaral yes but he asked... Count equal records with SELECT DISTINCT and COUNT
– Pedro Rangel
@Pedrorangel I tested here and it worked. Thanks!
– Leonardo