Viewing 7 posts - 1 through 7 (of 7 total)
NVM guys. I've solved my problems. It's Borland C++ DBGrid's problem. Not my query problem.
Thanks for all the help! ^_^
August 8, 2007 at 8:59 pm
Yes, you are correct. My ProcLoc table is used to overcome the M to M relationship between Product and Location. My Test table however, is used to hold test datas,...
August 8, 2007 at 7:15 pm
Thanks. This also works if I use in my SQL query browser.
I am using Borland Database library to display these data and I am using DBGrid. However, I get (MEMO)...
August 8, 2007 at 1:29 am
Thanks a lot. I got this correct.
SELECT test.TestID, IFNULL(location.LocationName, '-'), IFNULL(product.ProductName, '-')
FROM Test as test
INNER JOIN ProdLoc AS ProdLoc ON test.ProdLocID = prodLoc.ProdLocID
LEFT JOIN Product AS product ON ProdLoc.ProductID...
August 6, 2007 at 2:41 am
Thanks a lot. I got this correct.
SELECT test.TestID, IFNULL(location.LocationName, '-'), IFNULL(product.ProductName, '-')
FROM Test as test
INNER JOIN ProdLoc AS ProdLoc ON test.ProdLocID = prodLoc.ProdLocID
LEFT JOIN Product AS product ON ProdLoc.ProductID...
August 6, 2007 at 2:41 am
My same data and query are as follows:
ProdLoc Table
---------
ProdLocID, ProductID, LocationID
1, -, 23
2,112, 24
3, 115, 24
Product Table
------------
ProductID, ProductName
112, ABC
115, DEF
Location Table
-------------
LocationID, LocationName
22, HumanResource
23, Engineering
24, Marketing
Test Table
---------
TestID, ProdLocID
31, 1
32, 2
33, 3
SELECT...
August 2, 2007 at 7:04 pm
Okay.
I am grabbing the IDs from my C++ application.
Anyways, thanks guys. I will try the solutions and see how it goes.
July 30, 2007 at 11:47 pm
Viewing 7 posts - 1 through 7 (of 7 total)