View
museum_visit
One row per admitted ticket: the first entry of its day, with the transport answer.
Rows 5,651–5,675 of 9,383
| ticket_idINTEGER | visit_dateany | first_entry_atTEXT | entrance_idINTEGER | transport_modeTEXT |
|---|---|---|---|---|
| 5961 | 2018-07-17 | 2018-07-17 09:52:03 | 4 | Other |
| 5962 | 2018-07-17 | 2018-07-17 09:52:21 | 4 | Other |
| 5963 | 2018-07-17 | 2018-07-17 09:52:19 | 4 | Other |
| 5964 | 2018-07-17 | 2018-07-17 09:52:15 | 4 | Other |
| 5965 | 2018-07-17 | 2018-07-17 09:52:50 | 4 | Other |
| 5966 | 2018-07-17 | 2018-07-17 09:52:37 | 4 | Other |
| 5967 | 2018-07-17 | 2018-07-17 09:53:33 | 4 | Other |
| 5968 | 2018-07-17 | 2018-07-17 09:53:39 | 4 | Other |
| 5969 | 2018-07-17 | 2018-07-17 09:54:10 | 4 | Other |
| 5970 | 2018-07-17 | 2018-07-17 09:53:15 | 4 | Other |
| 5971 | 2018-07-17 | 2018-07-17 09:53:56 | 4 | Other |
| 5972 | 2018-07-17 | 2018-07-17 09:52:55 | 4 | Other |
| 5973 | 2018-07-17 | 2018-07-17 09:53:13 | 4 | Other |
| 5974 | 2018-07-17 | 2018-07-17 09:53:47 | 4 | Other |
| 5975 | 2018-07-17 | 2018-07-17 09:55:40 | 4 | Other |
| 5976 | 2018-07-17 | 2018-07-17 09:54:51 | 4 | Other |
| 5977 | 2018-07-17 | 2018-07-17 09:53:37 | 4 | Other |
| 5978 | 2018-07-17 | 2018-07-17 09:54:55 | 4 | Other |
| 5979 | 2018-07-17 | 2018-07-17 09:53:49 | 4 | Other |
| 5980 | 2018-07-17 | 2018-07-17 09:54:35 | 4 | Other |
| 5981 | 2018-07-17 | 2018-07-17 09:53:40 | 4 | Other |
| 5982 | 2018-07-17 | 2018-07-17 09:55:35 | 4 | Other |
| 5983 | 2018-07-17 | 2018-07-17 09:54:13 | 4 | Other |
| 5984 | 2018-07-17 | 2018-07-17 09:55:07 | 4 | Other |
| 5985 | 2018-07-17 | 2018-07-17 09:57:20 | 4 | Other |
View definition
CREATE VIEW museum_visit AS
SELECT
e.ticket_id,
date(e.scanned_at) AS visit_date,
e.scanned_at AS first_entry_at,
e.entrance_id,
e.transport_mode
FROM entry_scan e
WHERE e.is_first_entry = 1;