Extra Alarm Fires Search Help & Guidelines

 

  The following items give a general description of the extra alarm fires database, the fields you may search upon, and some example queries. These items should help you perform useful searches of the extra alarm data.



General Considerations:

The search form for queries consists of these sections:

  • Three FIELD SECTIONS to select a field to search, operations desired, and text to search
  • Two JOIN SECTIONS used to 'join' the FIELD SECTIONS above together
Each FIELD SECTION consists of:
  • A drop down list box used to select database column (field) you desire to search (located on the left)
  • An 'operations' selector (located second left) used select how you would like to operate on the text you entered to be searched
  • A text box (located second right right) used to enter the text value to be searched
  • A 'Sort By' selector (located on the right) used to select how you would like the SORTED
Each JOIN SECTION consist of:
  • A 'OR' radio button: to select either 'this OR that' operations
  • A 'AND' radio button: to select either 'this AND that' operations
  • A 'No "x" field chosen radio button: if you desire NOT TO JOIN the fields together
Search may be performed on one, two, or all three FIELD SECTIONS if desired.
You are not allowed to select field three before you select field two. If you enter data into a field WITHOUT joining that field with another field, your entries will be disregarded.



The operation selector contains an IS LIKE operator. It is probably the most 'powerfull' feature, and deserves some explanation.

'Is LIKE' is a text string searching operator. It can use 'wildcards' to search text. The wildcard is the % (percent) character.

If you were looking for the text string 'John', and were searching by an 'equals' method, you would ONLY receive 'John' back as a response. 'John Smith' would NOT be found. However, if you searched for IS LIKE JOHN%, you are asking for any text string the STARTS WITH 'John', and has any text after the 'John'.

Hence you results would find, 'John Smith', 'John Doe', and 'John Brown'. You WOULD NOT find 'Andrew John Black', however, because that text string does not BEGIN with 'John'.

A new search for %John% (or %john%, not case sensitive) would find ALL instances of 'John' anywhere in the search.

So...
John% finds any text string STARTING with John.
%John finds any text string ENDING with John.
%John% finds any occurrence of the text string 'John'.

The NULL Operator:

The NULL or the NOT NULL operators are 'boolean', meaning they are either true or false. By 'true or false' it really means EMPTY or NOT EMPTY. A blank field will be FOUND if it is searched for as NULL.


   NOTE: - Special Considerations:

The extra alarm fires data consists of a large amount of  'fires'. These  'fires' each consist of MULTIPLE records that define a particular fire. For example, a two alarm fire consists of (at least) TWO records (line entries), one for the  'first alarm' (and its responce), and another record for the second alarm (and its responce). Each of these records contain the master record data, such as the date, address, run number, etc.

Each SET of a fires records (regardless of how many records a fire has) is identified in the database by a unique number (a primary key). Some of the fields you may search are contained in the  'master' record of a fire (example: the address), and some data is contained only in the subrecords of a fire (such as the companies responding).

For example: A search for any fire that Engine 11 responed to will return ALL the records for that fire (regardless of the number of records). However a search for any fire the Engine 11 DID NOT respond to MAY produce unexpected results, in that the search will find ANY record that does not contain Engine 11, but the search will return ALL the records for the fire, some of which could contain Engine 11. Be aware.

To assist in identifying which fields are which those fieldsd ONLY LOCATED IN SUBRECORDS are indicated in the following table by YELLOW highlighting. Those fields that belong to the 'master record' fields are not highlighted.



Field Definitions:

Field Type Description
Fire Year Text A four charcater field that sets a BLOCK selection for years of fires.
Date Search
(yyyy-mm-dd)
Date A date field in the yyyy-mm-dd format that allows for specific date searchs, as well as wildcard searches.
Address/Loc Text Text containing the address location of the fire(s)
24hr Time of Fire
(hhmm)
Text A four character field in a hhmm format containing the time of the FIRST responce the the fire.
Range 0000-2359.
Alarms (Max) Text A character field indicating the maximum number of alarms of a particular fire. Varies with the city involved. See the alarms numeric field
Alarms
(Num Equiv)
Number A NUMBER (consistant accross cities) indicating the maximum number of alarms for a fire. Also contains alarms 'plus'. Ranges like 2.0, 2.25, 2.50, 2.75, 3.0, 3.25 etc. Most useful!
Box# (or Loc ID) Text A text field containing the Box location of the fire, such as "Box 402A".
Run# Text A text field containing (where available) the run number of the fire. Format is Run #nnnn.
Occupancy Text A text field containing the building type of the fire building. Such as, Dwelling, Apartment, Commercial, etc.
Vacant/Occ Text A text field indicating whether the fire building was occupied, vacant, under demolition etc.
Total Water Used Number A number indicating the number of gallons of water used at a fire (where available)
Total Feet of
Ladders Used
Number A number indicating the number of feet of ladders used at a fire (where available)
First Responding Chief Text A text field indicating the name of the first responding chief (where available).
Chief Officer
in Charge
Text A text field indicating the name of the chief officer in charge of a fire (where available).
Fire Description Text A (often large) block of text describing the fire scene. Viewable ONLY in the Formatted Search result.
Alarm Type Text A subtext field indicating the name of a particular alarm. May not be particularly useful.
Engines Text A subtext field indicating those engines that responded to a particular alarm. Wilcard search REQUIRED to obtain useful results.
Ladders Text A subtext field indicating those ladders that responded to a particular alarm. Wilcard search REQUIRED to obtain useful results.
Squads Text A subtext field indicating any squads that responded to a particular alarm. Wilcard search REQUIRED to obtain useful results.
Other Rigs Text A subtext field indicating other companies that responded to a particular alarm. Wilcard search REQUIRED to obtain useful results.
Chiefs Text A subtext field indicating chiefs that responded to a particular alarm. Wilcard search REQUIRED to obtain useful results.


Example searches:

Single field searches:

"Find all fires from 2000 through 2009"
"Find all fires in 2003"
"Find all fires of a third alarm or greater"
"Find all fires that occurred in January"
"Find all fires in the Fourth Battalion"
"Find all fires that occurred in dwellings"
"Find all fires associated with an explosion"

Multi-field searches:

"Find all fires in 1999 that Engine 11 responded to"
"Find all fires in vacant commercial buildings"
"Find all fires in occupied apartment buildings that required 10,000 or more gallons of water to extinguish"
"Find all occupied commercial fires that required a HazMat responce"

If these samples do not solve your query problems, you may send an email to, eatc7402@comcast.net and we will try to assist you in finding the data you desire.


"Find all fires from 2000 to 2009"
Field Chosen         Operator         Text Chosen
 Fire Yesr  like  200%

Search results:
SELECT * FROM extra_alarm_fires_addr WHERE fire_year LIKE ("20%") ORDER BY 'fire_year' DESC
Your query returned 413 rows
Your query returned 143 extra alarn fires
Returned ALL fires from 2000 though 2009
BACK sample searches



"Find all fires in 2003"
Field Chosen         Operator         Text Chosen
 Fire Year  equals  2003

Search results:
SELECT * FROM extra_alarm_fires_addr WHERE fire_year = ("2003") ORDER BY 'fire_year' DESC
Your query returned 46 rows
Your query returned 13 extra alarn fires
Returned only the fires in 2003
BACK sample searches



"Find all fires of a third alarm or greater"
Field Chosen         Operator         Text Chosen
 Alarms (num equiv)  greater than or equal to  3.0
Search results:
SELECT * FROM extra_alarm_fires_addr WHERE max_alarms_numeric >= ("3.0") ORDER BY 'fire_year' DESC
Your query returned 127 rows
Your query returned 26 extra alarn fires
Returned all fires equal to or greater than a third alarm
BACK sample searches


"I want to see just the records for Engine Companies"
Field Chosen         Operator         Text Chosen
 Date Search  is LIKE  %-01-%
Search results:
SELECT * FROM extra_alarm_fires_addr WHERE fire_datefield LIKE ("%-01-%") ORDER BY 'fire_year' DESC
Your query returned 50 rows
Your query returned 18 extra alarn fires
Returned all fires which occurred in January
BACK sample searches


"Find all fires in the Fourth Battalion"
Field Chosen         Operator         Text Chosen
 Box# (or Loc ID)  is Like  Box 4%
Search results:
SELECT * FROM extra_alarm_fires_addr WHERE box_or_location_id LIKE ("Box 4%") ORDER BY 'fire_year' DESC
Your query returned 167 rows
Your query returned 62 extra alarn fires
Returned all fires with a Box number starting with a 4 (for the fourth battalion)
BACK sample searches


"Find all fires that occurred in dwellings"
Field Chosen         Operator         Text Chosen
 Occupancy  is Like  %dwell%
Search results:
SELECT * FROM extra_alarm_fires_addr WHERE occupancy_type LIKE ("%dwell%") ORDER BY 'fire_year' DESC
Your query returned 126 rows
Your query returned 51 extra alarn fires
Returned all fires that occurred in dwellings
BACK sample searches


"Find all fires that are associated with an explosion"
Field Chosen         Operator         Text Chosen
 Fire Description  is LIKE  %explos%
Search results:
SELECT * FROM extra_alarm_fires_addr WHERE fire_description LIKE ("%explos%") ORDER BY 'fire_year' DESC
Your query returned 11 rows
Your query returned 4 extra alarn fires
Returns all fires with the phrase 'explos' in the fire description
BACK sample searches


"Find all fires in 1999 that Engine 11 responded to"
Field Chosen         Operator         Text Chosen
 Fire Year  = (equals)   1999
 (field join) AND selected
 Engines  is LIKE   %11%
Search results:
SELECT * FROM extra_alarm_fires_addr WHERE fire_year = ("1999") and engines LIKE ("%11%") ORDER BY 'fire_year' DESC
Your query returned 34 rows
Your query returned 12 extra alarn fires
Returned all fires in 1999 that contain Engine 11
BACK sample searches


"Find all fires in vacant commercial buildings"
Field Chosen         Operator         Text Chosen
 Vac/Occupied  is LIKE   %vac%
 (field join) AND selected
 Occupancy  is LIKE   %comm%
Search results:
SELECT * FROM extra_alarm_fires_addr WHERE vac_or_occupied LIKE ("%vac%") and occupancy_type LIKE ("%comm%") ORDER BY 'fire_year' DESC
Your query returned 12 rows
Your query returned 3 extra alarn fires
Returned all fires in vacant commercial buildings
BACK sample searches


"Find all fires in occupied apartment buildings that required 10,000 or more gallons of water to extinguish"
Field Chosen         Operator         Text Chosen
 Vac/Occupied  is Like   %occ%
 (field join) AND selected
 Occupancy  is LIKE   %apart%
 (field join) AND selected
 Total Water Used  grater than or equal to   10000
Search results:
SELECT * FROM extra_alarm_fires_addr WHERE vac_or_occupied LIKE ("%occ%") and occupancy_type LIKE ("%apart%") and water_used >= ("10000") ORDER BY 'fire_year' DESC
Your query returned 13 rows
Your query returned 4 extra alarn fires
Returns all fires in occupied apartment buildings that required 10,000 or more gallons of water
BACK sample searches
"Find all occupied commercial fires that required a HazMat responce"
Field Chosen         Operator         Text Chosen
 Vac/Occupied  is Like   %occ%
 (field join) AND selected
 Occupancy  is LIKE   %comm%
 (field join) AND selected
 Other Rigs  is LIKE   %haz%
Search results:
SELECT * FROM extra_alarm_fires_addr WHERE vac_or_occupied LIKE ("%occ%") and occupancy_type LIKE ("%comm%") and other LIKE ("%haz%") ORDER BY 'fire_year' DESC
Your query returned 6 rows
Your query returned 2 extra alarn fires
Returns all occupied commercial fires that required a HazMat responce
BACK sample searches

 

Copyright © 2007, The Extra Alarm Association
of The Twin Cities, Inc.
All Rights Reserved
Last Edited: Thursday, April 05, 2007

-- [HOME] --