0

I'm new to coding,please keep that in mind,currently I'm learning in Italian, therefore are some mistake in spelling.

I have a small Database regarding a dvd-rental, I write this code and the result is nicely showing, but I need only the top row.

select count(dvd_neloggio.id_dvd),
       film.titolo,
       grouping(dvd_neloggio.id_dvd) top
from dvd_neloggio
  inner join dvd on dvd_neloggio.id_dvd=dvd.id_dvd
  inner join film on dvd.id_film=film.id_film
group by dvd_neloggio.id_dvd,film.titolo
order by  dvd_neloggio.id_dvd;
William Robertson
  • 12,552
  • 3
  • 33
  • 36

0 Answers0