Opened 11 years ago

Closed 11 years ago

#1100 closed task (fixed)

Add Continent and Subcontinent to Tax_Geo_Map DV

Reported by: nssljp Owned by: nssljp
Priority: medium Milestone: Post-NPGS Prod'n
Component: Dataviews (CT) Version: 1.9.4 Server
Severity: Keywords:
Cc: Kurt Endress Database Engine: N/A
Operating System: N/A

Description

Add two columns as read only to the get_taxonomy_geography_map dataview.
The columns of interest are Continent and Subcontinent from the Region table.

Here is example code tested on 1.9.1 (Server)

(SELECT continent

FROM geography_region_map AS georeg

INNER JOIN region AS reg

ON reg.region_id = georeg.region_id

WHERE tgm.geography_id = georeg.geography_id) AS continent,

(SELECT subcontinent

FROM geography_region_map AS georeg

INNER JOIN region AS reg

ON reg.region_id = georeg.region_id

WHERE tgm.geography_id = georeg.geography_id) AS subcontinent,

Change History (3)

comment:1 by Kurt Endress, 11 years ago

npgsdev dataview changed and saved to file 2015_12_22_get_taxonomy_geography_map

added the two fields from region before note field and added two left joins

FROM

taxonomy_geography_map tgm
LEFT JOIN geography_region_map grm ON grm.geography_id = tgm.geography_id
LEFT JOIN region r ON grm.region_id = r.region_id
INNER JOIN (

comment:2 by Martin Reisinger, 11 years ago

Milestone: Post 1.0 → Post-NPGS Prod'n

comment:3 by Kurt Endress, 11 years ago

Resolution: → fixed
Status: new → closed

Dataview installed on npgsdb/web from file 2015_12_22_get_taxonomy_geography_map

Note: See TracTickets for help on using tickets.