Question 12 3 pts Consider again the following relation about public transport users tapping on and off from trains, bus

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Question 12 3 pts Consider again the following relation about public transport users tapping on and off from trains, bus

Post by answerhappygod »

Question 12 3 Pts Consider Again The Following Relation About Public Transport Users Tapping On And Off From Trains Bus 1
Question 12 3 Pts Consider Again The Following Relation About Public Transport Users Tapping On And Off From Trains Bus 1 (101.75 KiB) Viewed 14 times
Question 12 3 pts Consider again the following relation about public transport users tapping on and off from trains, buses and ferries with their Opal Card: CardEvents (id: integer, day: date, card: integer, mode: text, tap_on: timestamp, tap_off: timestamp) The Sydney public transport network records about 1.5 million trips each day, where each trip shows in the given dataset as one entry with corresponding tap_on and tap_offtimestamps and the day when a customer started the trip, the card number used, and which mode of transport was used ('bus', 'lightrail', 'train' or 'ferry'). We have data since April 2014. Assume the Card Events relation is stored as an unordered heap file for which the only index is an unclustered B+-tree index on field day. If you want to retrieve all trip events within a certain time range (e.g. day BETWEEN '2020-04-01' AND '2020-07-31'), is using the index always the best alternative? Briefly explain.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply