Torna al Thread

"SELECT TOP 3 tab_utenti.ID_utenti, tab_utenti.user_utente, tab_utenti.foto_utente, tab_voto_utente.id_utente, AVG(tab_voto_utente.voto_utente) AS VotoMedio, COUNT(tab_voto_utente.voto_utente) AS ContaVoti " &_ "FROM tab_utenti INNER JOIN " &_ "tab_voto_utente ON tab_utenti.ID_utenti = tab_voto_utente.id_utente " &_ "GROUP BY tab_utenti.ID_utenti, tab_utenti.user_utente, tab_utenti.foto_utente, tab_voto_utente.id_utente " &_ "ORDER BY VotoMedio DESC, ContaVoti DESC"
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5