Skip to main content

This version of the product is no longer supported, and this documentation is no longer updated regularly. See the latest version of this content.Opens in a new tab

Modifying the TopFilms Query

To reduce the number of films we see, we need to modify the TopFilms query. Let's return to the Studio and modify the TopFilms query.

The definition of the TopFilms query is displayed within the Studio Class Editor window:

—TopFilms—
TopFilms

   Query TopFilms() As %SQLQuery(CONTAINID = 1)
    {
        SELECT %ID,Description,Length,Rating,Title,Category->CategoryName 
        FROM Film
        WHERE (PlayingNow = 1)
        ORDER BY TicketsSold DESC
    }

FeedbackOpens in a new tab