...
FIELD NAME | PostgreSQL 11 DATA TYPE | PostGIS 2.5 DATA TYPE | DESCRIPTION | |
---|---|---|---|---|
1 | id | |||
2 | eas_address_base_id | |||
3 | base_address_num | See Address Number in the EAS Glossary. page 37 | ||
4 | base_address_suffix | See Address Number Suffix in the EAS Glossary. page 39 | ||
5 | street_name | See Street Name in the EAS Glossary. page 54 | ||
6 | street_type | See Street Name Post Type in the EAS Glossary. page 56 | ||
7 | street_post_direction | See Street Name Post Directional in the EAS Glossary. page 59 | ||
8 | street_cnn | |||
9 | street_full_street_name | See Complete Street Name in the EAS Glossary. page 63 | ||
10 | base_address_create_tms | |||
11 | base_address_retire_tms | |||
12 | eas_unit_address_id | See EAS Address Identifier in the EAS Glossary. | ||
13 | unit_address_base_flg | |||
14 | unit_address | See Subaddress Identifier in the EAS Glossary. page 78 | ||
15 | unit_address_create_tms | |||
16 | unit_address_retire_tms | |||
17 | disposition_description | official, placeholder | ||
18 | map_block_lot | |||
19 | block_lot | See Assessor Parcel Number in the EAS Glossary. | ||
20 | parcel_date_map_add | See the description for the column | ||
21 | parcel_date_map_drop | See the description for the column | ||
22 | eas_address_x_parcel_id | |||
23 | address_x_parcel_create_tms | |||
24 | address_x_parcel_retire_tms | |||
25 | zipcode | See Zip Code in the EAS Glossary. page 96 | ||
26 | longitude | In the WGS 84 spatial reference system. See EPSG:4326. | ||
27 | latitude | In the WGS 84 spatial reference system. See EPSG:4326. | ||
28 | geometry | In the NAD83 / California zone 3 (ftUS) spatial reference system. See EPSG:2227. | ||
29 | complete_landmark_name | |||
30 | address_type | “Landmark Address“, “Numbered Thoroughfare Address“ One of the values that are above, and is used to filter records of the respective address types. By definition, a numbered thoroughfare address may have a complete landmark name, while a landmark address will never have a value in the | ||
31 | landmark_aliases | An array of complete landmark name aliases. |
Example
The following is an example of examples are all written using PostgreSQL 11 SQL to filter for any .
Filter for all records that have changed within the last 7 days:
Code Block | ||
---|---|---|
| ||
SELECT *
FROM eas_flat_file_export
WHERE (base_address_create_tms > (CURRENT_TIMESTAMP - INTERVAL '7 days'))
OR (base_address_retire_tms > (CURRENT_TIMESTAMP - INTERVAL '7 days'))
OR (unit_address_create_tms > (CURRENT_TIMESTAMP - INTERVAL '7 days'))
OR (unit_address_retire_tms > (CURRENT_TIMESTAMP - INTERVAL '7 days'))
OR (parcel_date_map_drop > (CURRENT_TIMESTAMP - INTERVAL '7 days'))
OR (address_x_parcel_create_tms > (CURRENT_TIMESTAMP - INTERVAL '7 days'))
OR (address_x_parcel_retire_tms > (CURRENT_TIMESTAMP - INTERVAL '7 days')); |
Filter for all active base addresses only:
Code Block | ||
---|---|---|
| ||
SELECT * FROM public.vw_addresses_flat_export WHERE (unit_address_base_flg) AND (base_address_retire_tms IS NULL); |
Filter for all numbered thoroughfare addresses that have a complete landmark name:
Code Block | ||
---|---|---|
| ||
SELECT *
FROM eas_flat_file_export
WHERE (address_type = 'Numbered Thoroughfare Address')
AND NOT(complete_landmark_name IS NULL); |
Filter for all landmark addresses only:
Code Block | ||
---|---|---|
| ||
SELECT *
FROM eas_flat_file_export
WHERE (address_type = 'Landmark Address'); |