Query problem when using C/ODBC

After running into problems, I’ve found in this Forum why it is not possible to use LEFT JOIN in a TSQL query that uses C/ODBC for connecting: It is just not supported (C/ODBC for navision 2.6) I’m using the query from inside another application (a documentation database), and therefore need to define the query in there. By the way: We are using the Native database (not SQL Server). So are there anybodyout there who has put together a query that does this: For a productnumber; - return from the products table: Description, vendor number - PLUS return the Vendor name from the vendor table, This is easy as long as every product record has a vendor number. I just use this (simplified example):

SELECT Prod.No, Prod.Descript, Prod.VendorNo, Prod.price, Vendor.name 
FROM Prod, Vendor WHERE Vendor.no = Prod.VendorNo AND Prod.no = '216249' 

But if a product record has a BLANK vendor number (maybe not decided yet!) the above query returns nothing - which is quite logic. Using MS Access with linked tables into navision, this Access query proved successful:


SELECT Prod.no, Prod.Descript, Vendor.name FROM Prod LEFT JOIN Vendor
ON prod.vendorNo = Vendor.no WHERE Prod.no = "216249"

So, does anyone have a good idea on how to achieve the LEFT JOIN results when C/ODBC doesn’t allow LEFT JOIN ? Arild

Is it only the left outer join which is not working or all joins ? Can’t yo make 2 queries and UNION them ?

I don’t believe any JOIN types are working through C/ODBC. Using 2 queries and UNION: could that be done in one query, or should I use two recordsets ? (Need I say that I’m a newbie on building SQL-querying ?[:I])