Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Incident Reports » Incident Reports Addressed for Version 4.15 » View Incident Report |
Serious |
Reported By: Terry Swiers Reported On: 11/3/2004 For: Version 4.14 Build 1 |
/*non-working sql*/ SELECT ar.TransDate, ar.TransType, ar.TransNum, invitem.stockcode FROM ar ar LEFT OUTER JOIN invoice ON ar.Transnum = invoice.Number JOIN invitem ON invoice.Number = invitem.Number JOIN code ON invitem.StockCode = code.StockCode WHERE ( ar.TransDate >= '2004-10-04' ) and (ar.transtype = 1) /*working sql - changed last retrieved field to code.stockcode*/ SELECT ar.TransDate, ar.TransType, ar.TransNum, code.stockcode FROM ar ar LEFT OUTER JOIN invoice ON ar.Transnum = invoice.Number JOIN invitem ON invoice.Number = invitem.Number JOIN code ON invitem.StockCode = code.StockCode WHERE ( ar.TransDate >= '2004-10-04' ) and (ar.transtype = 1) If I change the first line of the query to: SELECT ar.TransDate, ar.TransType, ar.TransNum, invitem.stockcode, code.stockcode You can see where the values of invitem.stockcode and code.stockcode are not all the same even though they should be given that there is an inner join between the two tables on that one field.
This web page was last updated on Tuesday, April 23, 2024 at 08:39 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |