× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 4/12/2010 3:41 PM, Charles Wilt wrote:

Works fine for me at v5r4
CREATE TABLE QTEMP/BUCK (EMP INT NOT NULL WITH DEFAULT, TERM_DATE
DATE )
Table BUCK created in QTEMP.
insert into qtemp/buck (emp, term_date) values(12345,NULL)
1 rows inserted in BUCK in QTEMP.

That's what I get for posting before I tested the snot out of it.

I use an INSERT to populate the target table with a copy of the
production data, but that doesn't cover all the possible conditions, so
I need to add some more rows with custom values. In order to avoid
accidental duplicate rows, I'm doing a subselect ...where key not in
(select key from...) and the subselect is using a UDF that accepts a
null value. ...(select key from payroll where isactive(emp, NULL)...)

The subselect is failing with SQL0206 Column NULL not in specified
tables. I verified that by running only the subselect. Sorry for the
trip down the rabbit hole.
--buck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.