I'm trying to find a way to trim or remove spaces in what appeared to be empty strings so that when I look for a min value I get a result with characters and not an empty string with spaces.
Originally I tried excluding empty fields ( !="" ) however since the empty strings contain spaces its technically not an empty string so I tried Trimming and still cant get the result set that I need.
select trim(Field_1) as Field_1
from Table_1
where Field_Date between '2019-08-01' and '2019-08-31'
and Field_1 != ""
order by Field_1 asc
The Result Set that I get is:
- Blank (6 Spaces)
- Blank (6 Spaces)
- Blank (6 Spaces)
- ABC
- DEF
- GHI
The Result Set that I Need
- ABC
- DEF
- GHI