I'm not realizing how to make a query and that's why I come to ask. I have the Users table in which I have the following columns:
id, nombre, numero1, numero2, email
And the following query:
SELECT nombre, count(nombre) FROM Usuarios GROUP BY nombre HAVING count(nombre)>2
What I need is for the query to select rows where the nombre
repeats more than 2 times and also add the values of ( numero1 * numero2
) of each row, giving a final result to be able to order the users with nombre
repeated in descending order, how could you do that? Is it possible in a single query? I hope you have explained me well.
Thank you very much