@Satifal:
Risultato:Codice PHP:
SELECT prezzo, utente FROM tabella WHERE prezzo = max(prezzo)
@goikiu:codice:Invalid use of group function
restituisce giustamente il prezzo maggiore, ma non l'utente abbinato (nell'esempio prezzo 400, utente 1)Codice PHP:
SELECT utente, MAX(prezzo) FROM tabella