|
Try removing the DISTINCT keyword and put the NOT back in and write the results to an outfile in QTEMP. Then run a SQL over the file in QTEMP using DISTINCT. SELECT QDSTCD CONCAT DIGITS(QDAREA) CONCAT DIGITS(QDBANK) FROM BRDETAIL WHERE QDDGRP = 'DEP' AND QDVERI = 'N' AND QDCLVL = '5' AND QDINST NOT IN(SELECT QIINST FROM BANKINST) Ken J Frey IT Project Leader Web: www.pdpgroupinc.com Email: KJFrey@xxxxxxxxxxxxxxx Office: 410-584-0391 Fax: 410-584-0391 Cell: 443-742-0642
As an Amazon Associate we earn from qualifying purchases.
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.