You can easily create test data to help debug SQL statements:
Like this? Consider joining my mailing list, or at least using my affiliate link when buying from Amazon 🙂
with data (key, value) as ( values ('key1', 'a') , ('key2', null) , ('key3', 'z') ) select 'min', min(coalesce(value,'')) from data union select 'max', max(coalesce(value,'')) from data
You or someone you know looking to buy or sell?