Skip to content
Louvre Ops DB

View

museum_visit

One row per admitted ticket: the first entry of its day, with the transport answer.

Rows 1–25 of 9,383

museum_visit, page 1 of 376
ticket_idINTEGERvisit_dateanyfirst_entry_atTEXTentrance_idINTEGERtransport_modeTEXT
12015-03-152015-03-15 13:41:304Taxi
22015-03-152015-03-15 13:40:504Taxi
32015-03-042015-03-04 16:16:245Bus
42015-03-042015-03-04 16:16:115Bus
52015-03-032015-03-03 10:30:244Metro
62015-03-032015-03-03 10:30:274Metro
72015-03-082015-03-08 14:25:273Metro
82015-04-252015-04-25 10:43:294Bus
92015-04-252015-04-25 10:43:344Bus
102015-04-252015-04-25 10:43:454Bus
112015-04-252015-04-25 10:44:024Bus
122015-04-252015-04-25 10:44:294Bus
132015-04-252015-04-25 10:44:294Bus
142015-04-252015-04-25 10:44:174Bus
152015-04-252015-04-25 10:44:184Bus
162015-04-252015-04-25 10:45:214Bus
172015-04-252015-04-25 10:44:414Bus
182015-04-252015-04-25 10:44:094Bus
192015-04-252015-04-25 10:45:194Bus
202015-04-252015-04-25 10:44:534Bus
212015-04-252015-04-25 10:46:314Bus
222015-04-252015-04-25 10:45:354Bus
232015-04-252015-04-25 10:45:294Bus
242015-04-252015-04-25 10:45:054Bus
252015-04-252015-04-25 10:47:274Bus
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;