× 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.



Michael,

I think this will work:
update amflibd/mbbfrep a set a.cuscl=
 (select b.cuscl from  amflibz/mbbfrep b where a.comno=b.comno and
a.cusno=b.cusno and
b.comno=11)
Where exists (select * from  amflibz/mbbfrep C where a.comno=C.comno and
a.cusno=C.cusno and
C.comno=11)

 
Bud Blanchard
770-578-6771 x230 (-6858 Fax)

Karl H. Touset
President/CEO
Advanced Logic Solutions, Inc.
Tel.  +1 770 578 6771
Fax. +1 770 578 6858
Updates:  http://www.advlog.com/files/updates.htm
Forums.: http://www.advlog.com/forums/
Website:   http://www.advlog.com

CONFIDENTIALITY NOTICE: This e-mail transmission, and any attachments,
is intended only for the use of the individual or entity named above and
may contain information that is confidential, privileged and exempt from
disclosure under applicable law. If you are not the intended recipient,
you are hereby notified that any disclosure, copying, distribution or
use of any of the information contained in this transmission is strictly
PROHIBITED. If you have received this transmission in error, please
immediately notify us at Admin@xxxxxxxxxx Advanced Logic Solutions, Inc.
- Marietta, GA. 30068 +01 770 578-6771
 

-----Original Message-----
From: mapics-l-bounces@xxxxxxxxxxxx
[mailto:mapics-l-bounces@xxxxxxxxxxxx] On Behalf Of
michael.ellis@xxxxxxxxxxxxxxx
Sent: Tuesday, December 28, 2004 12:12 PM
To: mapics-l@xxxxxxxxxxxx
Subject: help with an SQL to fix MAPICS file

Hopefully someone on the MAPICS group knows SQL enough to help me debug
my 
problem:

I am having someone update Customer Class fields in our LIVE environment

to get the data correct.  We do not have the luxury of refreshing the
test 
environment frequently.   I prefer not to copy the MBBFREP from the live

environment (ZZ) to the test environment (ZD).   What I want to do is 
simply update MBBFREP (customer master) in the test environment with the

value of the CUSCL field from the live environment, ignoring all other 
fields and handling the possible differences between the files
(customers 
added or deleted in live or in test since the last refresh). 

HERE'S THE SQL I'm trying to use:

update amflibd/mbbfrep a set a.cuscl= 
 (select b.cuscl from  amflibz/mbbfrep b where a.comno=b.comno and 
a.cusno=b.cusno and 
b.comno=11) 

HERE'S THE ERROR I'm getting:

Null values not allowed in column or variable CUSCL.


I've tried adding exclusions in my where clause for when the CUSCL IS 
NULL, etc., but nothing I'm doing is working.  There are some records in

ZZ that have blank in the customer class field, but when I SQL to find 
those with NULL values, I get nothing -- as in no records seem to
contain 
NULL.   Am I doing somthing in my subquery that would cause the result 
rows to be empty?   Everything I've tried indicates there should be 
results.

Any suggestions would be greatly appreciated.
Thanks.


Michael G. Ellis
Information Systems International, Inc.
A Global ERP Consulting Firm
815-398-1670 x23
 
Choose ISI consultants to ensure consistently top quality implementation

services at all levels of your organization.

"We should be known by what we belong to - not by what belongs to us."
-- 
Unknown
_______________________________________________
This is the MAPICS ERP System Discussion (MAPICS-L) mailing list
To post a message email: MAPICS-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mapics-l
or email: MAPICS-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mapics-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.