SQL is fetching results BLANK checks but the data has no BLANKS

From: M Sarwar <sarwarmd02(at)outlook(dot)com>
To: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: SQL is fetching results BLANK checks but the data has no BLANKS
Date: 2023-07-05 21:01:39
Message-ID: DM4PR19MB59789AC5B76EA5829DF176E9D32FA@DM4PR19MB5978.namprd19.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

SELECT TEST_NUMBER
FROM BRONX.TEST_TEST_DETAILS_ALL_MCM
WHERE LEFT(TEST_DESCRIPTION, 1) = ' '

;

The above SQL is fetching lot of data but when I take closer look at the data in the table TEST_TEST_DETAILS_ALL_MCM, I see no prefixed BLANKS in the column TEST_DESCRIPTION.

test_description character varying(50) COLLATE pg_catalog."default", -- TEST_DESCRIPTION, type

What could be the reason here for fetching the data when I do not have the data which has prefixes of BLANK , ‘ ‘.

Thanks,

Sarwar

Phasing 90 degrees temperature Fahrenheat in EST today

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message M Sarwar 2023-07-05 21:10:56 Re: SQL is fetching results BLANK checks but the data has no BLANKS
Previous Message jacob ndinkwa 2023-07-05 13:28:31 Re: Sanity check of shared_buffers value