Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following database schema for tracking peoples whereabouts in order to find those who may have been in contact with corona virus carriers. In

Consider the following database schema for tracking peoples whereabouts in order to find those who may have been in contact with corona virus carriers.

In each GPS coordinate pair (ns, ew), ns is longitude and ew is latitude, and both are in degrees (in unit).

For simplicity, assume that

  • a visit is on a single day
  • distance(ns1, ew1, ns2, ew2) returns the Euclidean distance between (ns1, ew1) and (ns2, ew2)
  • (ns, ew) in city table is the geometric center of the city and the citys border is defined by radius
  • a place or person's residence belongs to one city

(c) In an effort to find potential super-spreaders, find the people who have tested positive and the total number of places s/he visited during the 8 days prior to the positive test date, inclusive. List the uID, name, and phone number, and the # of visited places and order them in decreasing order of the # of visited places.

For example, if Raven tested positive on Oct-13-2020, you need to count all places she had visited from Oct-6 to Oct-13, inclusive. If Raven visited the same place multiple times, count the place only once.image text in transcribed

person (ulD, email, name, phone, ns, ew) place (pID, name, ns, ew) visit (VID, uID, PID, to, from) city (name, state, ns, ew, radius) tested (uID, when, result) (ns, ew): GPS coordinates of person's residence (ns, ew): GPS coordinates of place to/from: datetime (e.g., 2020-04-15 16:53:30') (ns, ew): GPS coordinates of city (geometric) center when: datetime, result: 'P' (positive)or 'N' (negative) person (ulD, email, name, phone, ns, ew) place (pID, name, ns, ew) visit (VID, uID, PID, to, from) city (name, state, ns, ew, radius) tested (uID, when, result) (ns, ew): GPS coordinates of person's residence (ns, ew): GPS coordinates of place to/from: datetime (e.g., 2020-04-15 16:53:30') (ns, ew): GPS coordinates of city (geometric) center when: datetime, result: 'P' (positive)or 'N' (negative)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Horngrens Cost Accounting A Managerial Emphasis

Authors: Srikant Datar, Madhav Rajan

16th Global Edition

1292211547, 9781292211541

More Books

Students also viewed these Accounting questions

Question

=+1. How will you measure awareness objectives?

Answered: 1 week ago

Question

=+2. How will you measure acceptance objectives?

Answered: 1 week ago

Question

What distinguishes craft and industrial unions from each other?

Answered: 1 week ago