Sakila schema

Tables and views

Explore the native recordsets with their real names, schema, relationships, row counts, and direct downloads.

atable actor Performers available to be associated with films. 4 columns · 0 links · 200 rows · 1 matches in other samples atable address Customer, staff, and store addresses, including the source's location geometry as a binary value. 9 columns · 1 links · 603 rows · 4 matches in other samples ctable category Film categories used to classify the catalogue. 3 columns · 0 links · 16 rows · 1 matches in other samples ctable city Cities associated with addresses and countries. 4 columns · 1 links · 600 rows · 2 matches in other samples ctable country Countries associated with cities. 3 columns · 0 links · 109 rows · 1 matches in other samples ctable customer People registered to rent films from a store. 9 columns · 2 links · 599 rows · 4 matches in other samples ftable film The film catalogue, including language, rating, rental terms, and special features. 13 columns · 2 links · 1,000 rows · 4 matches in other samples ftable film_actor The many-to-many association between films and actors. 3 columns · 2 links · 5,462 rows · 2 matches in other samples ftable film_category The many-to-many association between films and categories. 3 columns · 2 links · 1,000 rows · 2 matches in other samples ftable film_text Search-oriented title and description copy maintained from the film catalogue by the source trigger. 3 columns · 0 links · 1,000 rows itable inventory Film copies held by stores and available for rental. 4 columns · 2 links · 4,581 rows · 3 matches in other samples ltable language Languages used for original and dubbed films. 3 columns · 0 links · 6 rows · 1 matches in other samples ptable payment Customer payments recorded for rentals and staff transactions. 7 columns · 3 links · 16,044 rows · 3 matches in other samples rtable rental Film inventory rentals by customers and staff. 7 columns · 3 links · 16,044 rows · 4 matches in other samples stable staff Store staff, including source PNG profile pictures stored as BLOBs. 11 columns · 2 links · 2 rows · 4 matches in other samples stable store Rental locations and their managers. 4 columns · 2 links · 2 rows · 4 matches in other samples aview actor_info Actor names with their film titles grouped by category, derived from the source view's ordered aggregates. 4 columns · 0 links · 200 rows cview customer_list 9 columns · 0 links · 599 rows fview film_list 8 columns · 0 links · 1,000 rows nview nicer_but_slower_film_list 8 columns · 0 links · 1,000 rows sview sales_by_film_category 2 columns · 0 links · 16 rows sview sales_by_store 3 columns · 0 links · 2 rows sview staff_list 8 columns · 0 links · 2 rows

Relationship map

How recordsets connect.

22 foreign keys
addresscity_idcitycity_id
citycountry_idcountrycountry_id
customerstore_idstorestore_id
customeraddress_idaddressaddress_id
filmoriginal_language_idlanguagelanguage_id
filmlanguage_idlanguagelanguage_id
film_actorfilm_idfilmfilm_id
film_actoractor_idactoractor_id
film_categorycategory_idcategorycategory_id
film_categoryfilm_idfilmfilm_id
inventoryfilm_idfilmfilm_id
inventorystore_idstorestore_id
paymentstaff_idstaffstaff_id
paymentcustomer_idcustomercustomer_id
paymentrental_idrentalrental_id
rentalcustomer_idcustomercustomer_id
rentalinventory_idinventoryinventory_id
rentalstaff_idstaffstaff_id
staffaddress_idaddressaddress_id
staffstore_idstorestore_id
storeaddress_idaddressaddress_id
storemanager_staff_idstaffstaff_id