This section describes TICKIT, a sample database that Amazon Redshift documentation examples use.
This small database consists of seven tables: two fact tables and five dimensions. You can load the TICKIT dataset by following the steps in Step 4: Load data from Amazon S3 to Amazon Redshift in the Amazon Redshift Getting Started Guide.

This sample database application helps analysts track sales activity for the fictional TICKIT web site, where users buy and sell tickets online for sporting events, shows, and concerts. In particular, analysts can identify ticket movement over time, success rates for sellers, and the best-selling events, venues, and seasons. Analysts can use this information to provide incentives to buyers and sellers who frequent the site, to attract new users, and to drive advertising and promotions.
For example, the following query finds the top five sellers in San Diego, based on the number of tickets sold in 2008:
select sellerid, username, (firstname ||' '|| lastname) as name,
city, sum(qtysold)
from sales, date, users
where sales.sellerid = users.userid
and sales.dateid = date.dateid
and year = 2008
and city = 'San Diego'
group by sellerid, username, name, city
order by 5 desc
limit 5;
sellerid | username | name | city | sum
----------+----------+-------------------+-----------+-----
49977 | JJK84WTE | Julie Hanson | San Diego | 22
19750 | AAS23BDR | Charity Zimmerman | San Diego | 21
29069 | SVL81MEQ | Axel Grant | San Diego | 17
43632 | VAG08HKW | Griffin Dodson | San Diego | 16
36712 | RXT40MKU | Hiram Turner | San Diego | 14
(5 rows)
The database used for the examples in this guide contains a small data set; the two fact tables each contain less than 200,000 rows, and the dimensions range from 11 rows in the CATEGORY table up to about 50,000 rows in the USERS table.
In particular, the database examples in this guide demonstrate the key features of Amazon Redshift table design:
-
Data distribution
-
Data sort
-
Columnar compression
For information about the schemas of the tables in the TICKIT database, choose the following tabs:
Column name | Data type | Description |
---|---|---|
CATID | SMALLINT | Primary key, a unique ID value for each row. Each row represents a specific type of event for which tickets are bought and sold. |
CATGROUP | VARCHAR(10) | Descriptive name for a group of events, such
as
Shows and
Sports .
|
CATNAME | VARCHAR(10) | Short descriptive name for a type of event
within a group, such as
Opera and
Musicals .
|
CATDESC | VARCHAR(50) | Longer descriptive name for the type of
event, such as
Musical theatre .
|