|
egipto
Starting Member
1 Posts |
Posted - 01/09/2013 : 10:59:56
|
Data provided are: We have a schema named Student Data that contains 3 tables: Municipality, student and student location The tables are described as follows:
There is a table with 3 columns named Municipality:
id, integer, identifier number of the municipality name, character varying (32), Name of municipality geom, geometry (polygon, 32,161), geometry of the municipality
Each student has a unique record in the student table that has four columns:
code, character(2), student identifier code name, character varying (32), Name of student lastname, character varying (64), Last name of student municipality, character varying (32), Student municipality name
Each student has located his position and entered the student identifier code in the student_ location table, which has two columns:
code, character (2), student identifier code geom, geometry (point, 32,161), student point location Students table has filled all columns except for the municipality column whose value is null.
task: 1 - Write an instruction in structured query language (SQL) to update the name field of the municipality in the students table, where the point the student is placed within the polygon corresponding to the municipality that contains the point placed.
|
|