Ask Software Engineering Expert

The following tables represent some of the data which the Fire Department tracks for reporting on emergency incidents.

INC - Incident table (Gives information about an emergency incident.)

INC_IDY (Unique incident number) SIT* (Situation Type) ADATE (Alarm Date) ATIME (Alarm Time) FIRST_DUE_STN# (The station district in which the incident occurred)
9000188 TAT 1/3/2009 14:20:22 ST05
9000770 TA 1/11/2009 17:25:31 ST02
9002128 MED 1/30/2009 8:39:15 ST11
9002322 SFIR 2/1/2009 15:55:25 ST01
9002516 MED 2/3/2009 13:19:16 ST08

* TA = Traffic accident, TAT = Traffic accident, person trapped, MED = Medical emergency, and SFIR = Structure fire.
# ST01 = Fire station 1, ST02 = Fire station 2, etc.

CMP_INC_RSP - Company response table (Gives information as to the units dispatched to an incident.)

INC_IDY (Unique incident number) CMP_IDY$ (Unit dispatched) DSP_TME (Time unit dispatched) RSP_TME (Time unit responded) ARR_TME (Time unit arrived) INS_TME (Time unit is available for another assignment)
9000188 E3 14:20:43 14:22:06 14:23:19 14:28:39
9000188 T1 14:20:43 14:22:38 14:24:54
9000770 E2 17:25:49 17:26:47 17:28:03 18:10:16
9000770 T8 17:25:49 17:26:55 17:30:25 18:08:24
9002128 E11 8:39:38 8:40:35 8:43:07 8:53:08
9002322 E1 15:56:56 15:57:09 15:59:04 16:05:48
9002322 E2 15:56:56 15:57:25 16:00:04 16:06:30
9002322 T1 15:56:56 15:57:15 15:59:49 16:01:21
9002516 E8 13:19:31 13:19:40 13:19:42 13:37:50

$ E1 = Engine at station 1, T1 = Truck at station 1, E2 = Engine at station 2, etc.

Using the table and column data given above as a guide, provide SQL queries that you would execute against the full data set - approximately 50,000 incidents per year - for the following questions:

a) To how many traffic accidents did the Fire Department send two or more companies in 2009?

b) For each incident, what is the first arriving company?

c) What is the delay between the time the alarm was received and the time each unit arrived at the scene?

d) How many times has each unit responded to incidents outside of their primary running district? (The FIRST_DUE_STN in the INC table indicates in which station's primary running district the incident occurred.)

Software Engineering, Computer Science

  • Category:- Software Engineering
  • Reference No.:- M91623423
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Software Engineering

In this assignment you will answer the following questions

In this assignment, you will answer the following questions related to Android platform and Android security design. 1. Describe Android architecture in detail by explaining the four conceptual layers. 2. Describe Androi ...

The research paper for this course is about some of the

The research paper for this course is about some of the best sources of digital evidence for child abuse and exploitation, domestic violence, and gambling according to the National Institute of Justice. Research commerci ...

Research projectin the course we have covered various

RESEARCH PROJECT In the course, we have covered various security and privacy issues that arise in the cyberspace field. We have learned to identify these risks and have discussed the current approaches and developments f ...

Overviewyou are required to modify and logically extend

Overview You are required to modify and logically extend the functionality of a provided code base to implement a game. This requires you to modify the code base as well as create documentation and implement various user ...

Address the following integrating biblical perspectives

Address the following, integrating biblical perspectives where appropriate: Define a hate crime and describe how white supremacist groups use the Internet to spread their message of hate. Explain why hate crime legislati ...

In this assignment you will answer the following review

In this assignment, you will answer the following review questions from the reading materials of the module/week. 1. "What are the key components of a typical P2P application? Describe their functions." 2. "What are the ...

Write reply to this article with references with apa

Write reply to this article with references with APA bibliography. Hate Crimes Over the past couple of years, hate crimes have been on the rise in America's largest cities. Studies show that there were sharp spikes in th ...

Reply to this article with apa referencehate crimes

Reply to this article with APA reference. Hate crimes According to Merriam-Webster, hate crime is any of various crimes (such as assault or defacement of property) when motivated by hostility to the victim as a member of ...

Proposaldesign of an efficient gps tracking system tag for

Proposal Design of an efficient GPS Tracking System (tag) for monitoring small species IMPLEMENTING EMBEDDED SYSTEMS USING SYSML Task Using PapyrusSysML Software (Downloadable online - Evaluation Copy- Latest Version) Mo ...

Write review on this article with apa formatgovernment

Write review on this article with APA format. Government surveillance is a major issue in the United States and globally. Surveillance refers to any collection and processing of personal data, whether, identifiable or no ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As