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

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

Yes, I am getting the same results for the following SQLs.

SELECT test_number
FROM bronx.test_test_details_all_mcm
WHERE test_description LIKE ' %'
;

* Count is 878

SELECT TEST_NUMBER
FROM BRONX.TEST_TEST_DETAILS_ALL_MCM
WHERE LEFT(TEST_DESCRIPTION, 1) = ' '
;
Count is 878

Thanks,
Sarwar

________________________________
From: Erik Wienhold <ewie(at)ewie(dot)name>
Sent: Wednesday, July 5, 2023 5:46 PM
To: M Sarwar <sarwarmd02(at)outlook(dot)com>; pgsql-admin(at)lists(dot)postgresql(dot)org <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: SQL is fetching results BLANK checks but the data has no BLANKS

> On 05/07/2023 23:34 CEST M Sarwar <sarwarmd02(at)outlook(dot)com> wrote:
>
> Table has no indexes so far.

Do you get the same results when using LIKE instead?

SELECT test_number
FROM bronx.test_test_details_all_mcm
WHERE test_description LIKE ' %'

--
Erik

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message David G. Johnston 2023-07-05 22:06:17 Re: SQL is fetching results BLANK checks but the data has no BLANKS
Previous Message Erik Wienhold 2023-07-05 21:46:26 Re: SQL is fetching results BLANK checks but the data has no BLANKS