Column medicare._ps.fips3

Overview of column fips3 in table medicare._ps

Table

medicare._ps

Qualified name

medicare._ps.fips3

Datatype

string

Column type

computed

Expressions

CASE WHEN ssa3 is NOT NULL THEN
  CASE WHEN year > 2010 THEN
      (SELECT fips3 from public.ssa as s where ps.ssa3 = s.ssa3 and ps.year = s.year and ps.fips2 = s.fips2 ORDER BY 1 DESC LIMIT 1)
    ELSE
      (SELECT fips3 from public.ssa as s where ps.ssa3 = s.ssa3 and 2003 = s.year and ps.fips2 = s.fips2 ORDER BY 1 DESC LIMIT 1)
  END
ELSE
  (SELECT public.zip_to_fips3(year, zip))
END AS fips3
Column medicare._ps.fips3 Lineage SVG

Data lineage for column medicare._ps.fips3