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



As others have said, it may be a library list issue, There are things that
you can try, and one is to point the query to the correct library like this;

SELECT COUNT(*) FROM libname.FILE1 A, libname.FILE2 B
where
A.SBKRNM = B.SRCDTA
AND( A.SQCDE IN('SA', 'SB', 'SD', 'SG', 'SH'))

That way you eliminate any doubt about what file is being used.

HTH

Jim

On 9/28/07, donna lester <donna_lester_ny@xxxxxxxxx> wrote:

Thank you all.
I have done RTVQMQRY. But some how, from query/400 to SQL statement
count of the records is differing?
what could be the reason?

SELECT COUNT(*) FROM FILE1 A, FILE2 B
where
A.SBKRNM = B.SRCDTA
AND( A.SQCDE IN('SA', 'SB', 'SD', 'SG', 'SH'))


Glenn Gundermann <ggundermann@xxxxxx> wrote:
How about:

SELECT COUNT(*) FROM FILE1 A JOIN FILE2 B ON A.SBKRNM = B.SRCDTA
WHERE A.SQCDE IN('SA', 'SB', 'SD', 'SG', 'SH')

Glenn Gundermann
ggundermann@xxxxxx
(647) 272-3295


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.