SELECT
legend.areasymbol AS Area_symbol,
mapunit.mukey AS MUKEY,
mapunit.musym AS Map_unit_symbol,
mapunit.muname AS Map_unit_name,
component.comppct_r AS Component_percent,
component.compname AS Component_name,
component.compkind AS Component_kind,
component.drainagecl AS Drainage_class,
(SELECT TOP 1 copmgrp.pmgroupname
FROM copmgrp
WHERE component.cokey = copmgrp.cokey AND copmgrp.rvindicator='yes') AS Parent_material,
(SELECT TOP 1 cogeomordesc.geomfname
FROM cogeomordesc
WHERE component.cokey = cogeomordesc.cokey AND cogeomordesc.rvindicator='yes' AND cogeomordesc.geomftname = 'Landform') AS Landform
FROM legend
INNER JOIN mapunit ON legend.lkey = mapunit.lkey AND legend.areasymbol=
'MO123'
INNER JOIN component ON mapunit.mukey = component.mukey
ORDER BY mapunit.muname