← All tables and views

Sakila view

customer_list

Native view in the Sakila sample database.

599rows

9 columns

Schema from the provider contract
ColumnTypeNullableKeyReferences
IDyes——
nameyes——
addressyes——
zip codeyes——
phoneyes——
cityyes——
countryyes——
notesyes——
SIDyes——

View definition

CREATE VIEW "customer_list" AS SELECT cu.customer_id AS ID, (cu.first_name || ' ' || cu.last_name) AS name, a.address AS address, a.postal_code AS "zip code", a.phone AS phone, city.city AS city, country.country AS country, CASE WHEN cu.active THEN 'active' ELSE '' END AS notes, cu.store_id AS SID FROM customer AS cu JOIN address AS a ON cu.address_id = a.address_id JOIN city ON a.city_id = city.city_id JOIN country ON city.country_id = country.country_id

Data preview

Sample records

599 rows available
IDnameaddresszip codephonecitycountry
1MARY SMITH1913 Hanoi Way3520028303384290SaseboJapan
2PATRICIA JOHNSON1121 Loja Avenue17886838635286649San BernardinoUnited States
3LINDA WILLIAMS692 Joliet Street83579448477190408AthenaiGreece
4BARBARA JONES1566 Inegöl Manor53561705814003527MyingyanMyanmar
5ELIZABETH BROWN53 Idfu Parkway4239910655648674NantouTaiwan
6JENNIFER DAVIS1795 Santiago de Compostela Way18743860452626434LaredoUnited States
7MARIA MILLER900 Santiago de Compostela Parkway93896716571220373KragujevacYugoslavia
8SUSAN WILSON478 Joliet Way77948657282285970HamiltonNew Zealand