Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I search for data in a column and include NULL values?

column Data null search values
0
Posted

How do I search for data in a column and include NULL values?

0

In standard SQL, a field with nothing in it (i.e. NULL) can match no retrieve profile except WHERE FIELD IS NULL. A null value in the field means that the value is unknown and therefore cannot match any comparison. This is known as `three-valued logic’. Consider the following retrieve profile: …WHERE FIELD = ‘XXX’ Typically, this retrieve profile assumes that the user does not want to retrieve records in which FIELD is NULL (in user terminology, the `empty entries’). If your application requires that the NULLs be retrieved, use the Uniface profile characters. The equal sign “=” on its own means IS NULL and the vertical bar “|” means OR. Take the value entered by the user and append “|=” to it, and Uniface will add OR FIELD IS NULL to the generated SQL.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123