Skip to main content
deleted 216 characters in body
Source Link
LandArch
  • 2.2k
  • 5
  • 26
  • 37

Based upon the few answers I have gotten, I assume that this would be a Full JoinView rather than a join. I am looking at this in order to guide the SQL Query.

SELECTCREATE soilmu_a_ny071.MUSYM,VIEW Component.hydricrating[Soils Extended Data] AS
SELECT *
FROM soilmu_a_ny071
FULL OUTER JOIN Component
ON soilmu_a_ny071.MUKEY=Component.mukey
ORDER BY soilmu_a_ny071.MUKEY;mukey;

soilmu_a_ny071 = the shape file imported into PostGIS to create the spatial table and Component = the non-spatial table

Or, if I wanted all the columns from both tables:.

SELECT *
FROM soilmu_a_ny071
FULL OUTER JOIN Component
ON soilmu_a_ny071.MUKEY=Component.mukey;

Based upon the few answers I have gotten, I assume that this would be a Full Join. I am looking at this in order to guide the SQL Query.

SELECT soilmu_a_ny071.MUSYM, Component.hydricrating
FROM soilmu_a_ny071
FULL OUTER JOIN Component
ON soilmu_a_ny071.MUKEY=Component.mukey
ORDER BY soilmu_a_ny071.MUKEY;

soilmu_a_ny071 = the shape file imported into PostGIS to create the spatial table and Component = the non-spatial table

Or, if I wanted all the columns from both tables:

SELECT *
FROM soilmu_a_ny071
FULL OUTER JOIN Component
ON soilmu_a_ny071.MUKEY=Component.mukey;

Based upon the few answers I have gotten, I assume that this would be a View rather than a join. I am looking at this in order to guide the SQL Query.

CREATE VIEW [Soils Extended Data] AS
SELECT *
FROM soilmu_a_ny071
JOIN Component
ON soilmu_a_ny071.MUKEY=Component.mukey;

soilmu_a_ny071 = the shape file imported into PostGIS to create the spatial table and Component = the non-spatial table.

deleted 61 characters in body
Source Link
LandArch
  • 2.2k
  • 5
  • 26
  • 37

Based upon the few answers I have gotten, I assume that this would be a Full Join. I am looking at this in order to guide the SQL Query.

SELECT soilmu_a_ny071.MUSYM, Component.hydricrating
FROM soilmu_a_ny071
FULL OUTER JOIN Component
ON soilmu_a_ny071.MUKEY=Component.mukey
ORDER BY soilmu_a_ny071.MUKEY;

soilmu_a_ny071 = the shape file imported into PostGIS to create the spatial table and Component = the non-spatial table

Or, if I wanted all the columns from both tables:

SELECT soilmu_a_ny071.*, Component.*
FROM soilmu_a_ny071
FULL OUTER JOIN Component
ON soilmu_a_ny071.MUKEY=Component.mukey
ORDER BY soilmu_a_ny071.FID;mukey;

Based upon the few answers I have gotten, I assume that this would be a Full Join. I am looking at this in order to guide the SQL Query.

SELECT soilmu_a_ny071.MUSYM, Component.hydricrating
FROM soilmu_a_ny071
FULL OUTER JOIN Component
ON soilmu_a_ny071.MUKEY=Component.mukey
ORDER BY soilmu_a_ny071.MUKEY;

soilmu_a_ny071 = the shape file imported into PostGIS to create the spatial table and Component = the non-spatial table

Or, if I wanted all the columns from both tables:

SELECT soilmu_a_ny071.*, Component.*
FROM soilmu_a_ny071
FULL OUTER JOIN Component
ON soilmu_a_ny071.MUKEY=Component.mukey
ORDER BY soilmu_a_ny071.FID;

Based upon the few answers I have gotten, I assume that this would be a Full Join. I am looking at this in order to guide the SQL Query.

SELECT soilmu_a_ny071.MUSYM, Component.hydricrating
FROM soilmu_a_ny071
FULL OUTER JOIN Component
ON soilmu_a_ny071.MUKEY=Component.mukey
ORDER BY soilmu_a_ny071.MUKEY;

soilmu_a_ny071 = the shape file imported into PostGIS to create the spatial table and Component = the non-spatial table

Or, if I wanted all the columns from both tables:

SELECT *
FROM soilmu_a_ny071
FULL OUTER JOIN Component
ON soilmu_a_ny071.MUKEY=Component.mukey;
added 234 characters in body
Source Link
LandArch
  • 2.2k
  • 5
  • 26
  • 37

Based upon the few answers I have gotten, I assume that this would be a Full Join. I am looking at this in order to guide the SQL Query.

SELECT soilmu_a_ny071.MUSYM, Component.hydricrating
FROM soilmu_a_ny071
FULL OUTER JOIN Component
ON soilmu_a_ny071.MUKEY=Component.mukey
ORDER BY soilmu_a_ny071.MUKEY;

soilmu_a_ny071 = the shape file imported into PostGIS to create the spatial table and Component = the non-spatial table

Or, if I wanted all the columns from both tables:

SELECT soilmu_a_ny071.*, Component.*
FROM soilmu_a_ny071
FULL OUTER JOIN Component
ON soilmu_a_ny071.MUKEY=Component.mukey
ORDER BY soilmu_a_ny071.FID;

Based upon the few answers I have gotten, I assume that this would be a Full Join. I am looking at this in order to guide the SQL Query.

SELECT soilmu_a_ny071.MUSYM, Component.hydricrating
FROM soilmu_a_ny071
FULL OUTER JOIN Component
ON soilmu_a_ny071.MUKEY=Component.mukey
ORDER BY soilmu_a_ny071.MUKEY;

soilmu_a_ny071 = the shape file imported into PostGIS to create the spatial table and Component = the non-spatial table

Based upon the few answers I have gotten, I assume that this would be a Full Join. I am looking at this in order to guide the SQL Query.

SELECT soilmu_a_ny071.MUSYM, Component.hydricrating
FROM soilmu_a_ny071
FULL OUTER JOIN Component
ON soilmu_a_ny071.MUKEY=Component.mukey
ORDER BY soilmu_a_ny071.MUKEY;

soilmu_a_ny071 = the shape file imported into PostGIS to create the spatial table and Component = the non-spatial table

Or, if I wanted all the columns from both tables:

SELECT soilmu_a_ny071.*, Component.*
FROM soilmu_a_ny071
FULL OUTER JOIN Component
ON soilmu_a_ny071.MUKEY=Component.mukey
ORDER BY soilmu_a_ny071.FID;
added 317 characters in body
Source Link
LandArch
  • 2.2k
  • 5
  • 26
  • 37
Loading
Source Link
LandArch
  • 2.2k
  • 5
  • 26
  • 37
Loading