View
museum_visit
One row per admitted ticket: the first entry of its day, with the transport answer.
Rows 5,576–5,600 of 9,383
| ticket_idINTEGER | visit_dateany | first_entry_atTEXT | entrance_idINTEGER | transport_modeTEXT |
|---|---|---|---|---|
| 5886 | 2018-06-24 | 2018-06-24 09:42:10 | 5 | Walk |
| 5887 | 2018-06-24 | 2018-06-24 09:42:13 | 5 | Walk |
| 5888 | 2018-06-24 | 2018-06-24 09:42:36 | 5 | Walk |
| 5889 | 2018-06-24 | 2018-06-24 09:42:01 | 5 | Walk |
| 5890 | 2018-06-24 | 2018-06-24 09:42:31 | 5 | Walk |
| 5891 | 2018-06-02 | 2018-06-02 10:48:18 | 2 | Metro |
| 5892 | 2018-06-02 | 2018-06-02 10:48:09 | 2 | Metro |
| 5893 | 2018-06-02 | 2018-06-02 14:06:02 | 1 | Bus |
| 5894 | 2018-06-04 | 2018-06-04 10:03:12 | 1 | Walk |
| 5895 | 2018-06-04 | 2018-06-04 10:03:17 | 1 | Walk |
| 5896 | 2018-08-27 | 2018-08-27 10:05:36 | 4 | Bus |
| 5897 | 2018-08-27 | 2018-08-27 10:05:49 | 4 | Bus |
| 5898 | 2018-08-27 | 2018-08-27 10:05:56 | 4 | Bus |
| 5899 | 2018-08-27 | 2018-08-27 10:06:18 | 4 | Bus |
| 5900 | 2018-08-27 | 2018-08-27 10:05:52 | 4 | Bus |
| 5901 | 2018-08-27 | 2018-08-27 10:06:46 | 4 | Bus |
| 5902 | 2018-08-27 | 2018-08-27 10:07:00 | 4 | Bus |
| 5903 | 2018-08-27 | 2018-08-27 10:07:21 | 4 | Bus |
| 5904 | 2018-08-27 | 2018-08-27 10:06:08 | 4 | Bus |
| 5905 | 2018-08-27 | 2018-08-27 10:07:42 | 4 | Bus |
| 5906 | 2018-08-27 | 2018-08-27 10:07:46 | 4 | Bus |
| 5907 | 2018-08-27 | 2018-08-27 10:06:31 | 4 | Bus |
| 5908 | 2018-08-27 | 2018-08-27 10:08:36 | 4 | Bus |
| 5909 | 2018-08-27 | 2018-08-27 10:07:33 | 4 | Bus |
| 5910 | 2018-08-27 | 2018-08-27 10:07:42 | 4 | Bus |
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;