|
C
|
chris 11/3/2006 |
I'm struggling to get any SQL querys to work and could do with some help. I'm new to ASP Runner so I think I'm probably missing something. However it does seem to build OK but there is always a page error. Here's my query select a.ContactID, a.ProductID, b.ProductName From CONTACT_PRODUCT a, PRODUCTS b where a.ProductID=b.ProductID I'm assuming if I put this against one table it will display information from both tables listed in the one table's list. Any help would be appreciated. Thanks
|
|
|
|
Sergey Kornilov admin 11/4/2006 |
|
If the same field name appears in bth tables use alias: select a.ContactID, a.ProductIDas aProductID, b.ProductName From CONTACT_PRODUCT a, PRODUCTS b where a.ProductID=b.ProductID |
|
|
E
|
EngAdven author 11/5/2006 |
|
Thanks for that but I've tried a few combinations with aliases and inner joins with no success.
|
|
|
|
Sergey Kornilov admin 11/6/2006 |
|
Gary, |
|
|
E
|
EngAdven author 11/7/2006 |
|
Still no joy I'm afraid. |
|
|
J
|
Jane 11/7/2006 |
|
Gary, |
|