SELECT DISTINCT
LTRIM(RTRIM(queryParam)) AS qpTrimmed
FROM queryParamValTbl
has duplicates (it removes most duplicates)
I assumed that
scngs_zone
scngs_zone
was really
'scngs_zone'
'scngs_zone ' -- trailing whitespace
So I tried the following:
SELECT
DISTINCT
LTRIM(RTRIM(queryParam)) AS...