Prime-time ratings compiled by Nielsen Media Research for May 24-June 30. Top 20 listings include the week's ranking, with rating for the week and season-to-date rankings in parentheses.

An ``X'' in parentheses denotes a one-time-only presentation. The rating is the percentage of the nation's estimated 99.4 million TV homes. Each ratings point represents 994,000 Households.

1. (11) ``Home Improvement,'' ABC, 21.6, 21.5 million homes.

2. (27) ``Spin City,'' ABC, 14.3, 14.2 million homes.

3. (14) ``Law and Order,'' NBC, 13.9, 13.8 million homes.

4. ``Mad About You,'' NBC, 13.6, 13.5 million homes.

5. (13) ``NYPD Blue,'' ABC, 13.5, 13.4 million homes.

6. (X) ``Law and Order,'' NBC, 11.9, 11.8 million homes.

7. (19) ``Dateline,'' (Monday) NBC, 10.9, 10.8 million homes.

8. (2) ``Frasier,'' NBC, 10.7, 10.6 million homes

9. (50) ``ABC Monday Night Movie: Cleopatra, Part 2,'' ABC, 10.0, 9.9 million homes

9. (19) ``Ally McBeal,'' Fox, 10.0, 9.9 million homes.

11. (19) ``Dateline,'' (Tuesday) NBC, 9.9, 9.8 million homes.

12. (26) ``Dharma & Greg,'' ABC, 9.4, 9.3 million homes.

12. (1) ``ER,'' NBC, 9.4, 9.3 million homes.

14. (15) ``20/20,'' (Friday) ABC, 9.3, 9.2 million homes.

14. (2) ``Friends,'' NBC, 9.3, 9.2 million homes.

16. (34) ``Will & Grace,'' NBC, 9.2, 9.1 million homes.

18. (12) ``Everybody Loves Raymond,'' CBS, 9.1, 9.0 million homes.

19. (44) ``48 Hours,'' CBS, 9.0, 8.9 million homes.

19. (9) ``CBS Sunday Movie: A Match Made in Heaven,'' CBS, 9.0, 8.9 million homes.

19. (17) ``JAG,'' CBS, 9.0, 8.9 million homes.