View
museum_visit
One row per admitted ticket: the first entry of its day, with the transport answer.
Rows 5,676–5,700 of 9,383
| ticket_idINTEGER | visit_dateany | first_entry_atTEXT | entrance_idINTEGER | transport_modeTEXT |
|---|---|---|---|---|
| 5986 | 2018-07-17 | 2018-07-17 09:55:49 | 4 | Other |
| 5987 | 2018-07-17 | 2018-07-17 09:56:25 | 4 | Other |
| 5988 | 2018-07-17 | 2018-07-17 09:57:03 | 4 | Other |
| 5989 | 2018-07-17 | 2018-07-17 09:58:41 | 4 | Other |
| 5990 | 2018-07-17 | 2018-07-17 09:56:55 | 4 | Other |
| 5991 | 2018-07-17 | 2018-07-17 09:56:03 | 4 | Other |
| 5992 | 2018-07-17 | 2018-07-17 09:59:23 | 4 | Other |
| 5993 | 2018-07-17 | 2018-07-17 09:56:52 | 4 | Other |
| 5994 | 2018-07-17 | 2018-07-17 09:59:51 | 4 | Other |
| 5995 | 2018-07-17 | 2018-07-17 09:57:45 | 4 | Other |
| 5996 | 2018-07-17 | 2018-07-17 10:00:55 | 4 | Other |
| 5997 | 2018-07-17 | 2018-07-17 10:01:10 | 4 | Other |
| 5998 | 2018-07-17 | 2018-07-17 10:00:47 | 4 | Other |
| 5999 | 2018-07-17 | 2018-07-17 09:55:10 | 4 | Other |
| 6000 | 2018-07-17 | 2018-07-17 09:58:35 | 4 | Other |
| 6001 | 2018-07-17 | 2018-07-17 09:55:20 | 4 | Other |
| 6002 | 2018-07-17 | 2018-07-17 10:00:19 | 4 | Other |
| 6003 | 2018-07-17 | 2018-07-17 10:02:40 | 4 | Other |
| 6004 | 2018-07-17 | 2018-07-17 09:57:03 | 4 | Other |
| 6005 | 2018-07-17 | 2018-07-17 09:59:25 | 4 | Other |
| 6006 | 2018-07-17 | 2018-07-17 09:56:31 | 4 | Other |
| 6007 | 2018-07-17 | 2018-07-17 09:57:24 | 4 | Other |
| 6008 | 2018-07-17 | 2018-07-17 09:57:31 | 4 | Other |
| 6009 | 2018-07-17 | 2018-07-17 09:55:11 | 4 | Other |
| 6010 | 2018-07-17 | 2018-07-17 10:00:15 | 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;