Hmm, what the hell does the = operator do in the ORDER BY clause?  The 
query works in Access, fails in SQL Server.

SELECT tVenTr.*, tVenTrDt.*
FROM tVenTR INNER JOIN tVenTRDt ON tVenTr.lId = tVenTrDt.lVenTrId
WHERE tVenTr.lVenId = 12
ORDER BY tVenTr.dtDate, tVenTr.lId, (tVenTr.nTranType = 
tVenTrDt.nTranType), tVenTrDt.dtDate, tVenTrDt.lId
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to