ccc

MySQL: Ejemplo de Having (se usa con group by)

select id_art_youtube, count(id_art_youtube) as total, nom_art_youtube, nom_foto from hist_youtube
inner join art_youtube on art_youtube.id = hist_youtube.id_art_youtube
group by id_art_youtube having total > 4 order by total desc, nom_art_youtube

No hay comentarios:

Publicar un comentario