Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
I. Introduction:
According to Techopedia (2016), query analysis is a process used in databases which make
use of SQL in order to determine how to further optimize queries for performance. Queries are
expressed in a standard way using SQL (sequel). This language is composed of a set of commands
and rules that are used to ask questions of a database. SQL, which has been implemented for nearly
every DBMS, comes in many subtly different flavors depending on the database being queried
(Pratt, M). The software then detects the characteristics of the database being queried and then
modifies it using the appropriate search term.
There are also two types of query the, this is the attribute and spatial query. Attribute
queries ask for information from the tables associated with features or from stand alone tables
associated with the GIS.These attributes can be numeric values, text strings, Boolean values (i.e.,
true or false), or dates. This kind of query is similar to a query made toany database; however,
when using a GIS, the answers (i.e., the features related to the records selected by the process) are
highlighted on the map as well as in the table.
On the other hand, spatial queries are derived directly from the location of features on a
map. Information about the proximity of one parcel to other parcels or other kinds of features, such
as roads, is not contained in an attribute table but is easily learned using a spatial query. For
example, you could ask if one or more features are located within a certain distance of other
features, are contained by another feature, intersect other features, or possess another of the
relationships defined by spatial operators.
II. Objectives: At the end of the activity, the students are expected to;
1. Demonstrate how to do simple query analysis from the attribute table of a given dataset;
2. Familiarize the different properties of a given layer or shapefile;
3. Appreciate the importance of query analysis in extracting data and information from a given
dataset.
III. Methodology:
1. A dataset of region 10 in Mindanao containing the different attribute data was secured.
2. ArcGIS program was opened and add dataset with a file name of region10 was added.
3. When the dataset is already added in the Data View window of the ArcGIS program, the
Properties tab of the layer was opened.
4. Open the Attribute Table of the layer, examine it and provide the following information by
filling the blanks below: Explore the program using the Select by Attribute command to answer
the below queries in a quick manner. Read the reference: Asking the Right Question.
Kianggat
Bismartz
Alangilan
Binuni
Magoong
Dansalan
Aluna
Tabok
Mapulog
s. The barangays with hectares >= 1000 and <=1400 and households >= 2000 and <= 3000.
IV.
5. Is the municipality with the largest hectare the same with municipality with largest
perimeter?
The municipality with the largest hectare also corresponds to the municipality with the
largest perimeter, because as the area of an object increases it perimeter also increases.
V.
Firstly, a simple analysis can be done by making a query expression out of the data that is
particularly needed. This is an example of a query analysis: POPULATION LIKE >= 1500 AND
POPULATION LIKE <=1600 AND HOUSEHOLDS >= 300 AND HOUSEHOLDS<= 320.
Secondly, there are also different properties for a given layer or shapefile. These properties include
the geometry type, type of data, datum used, projection used, projected coordinate system,
geographic coordinate system, left extent, right extent, top extent, and bottom extent. Lastly, query
analysis is a very important tool GIS as it allows fast retrieval of specific data from a set of data.
To further improve the activity, the student must first know about the query expression so
that the activity will become much easier to perform.
VI.
References:
Veer, E. M. 2005. JavaScript for Dummies, 4th Edition. Wiley Publishing, Inc., 111
River Street Hoboken, NJ 07030-5774.
ArcMap 10.1, Help Menu
Terefe, A. 2010. Application and use of GIS in Small Sanitation Project in Developing
Countries, p 14
Query Analysis. Retrieved from https://www.techopedia.com/definition/30357/queryanalysis.