May 19, 2012  
   Login  
Forum  
 
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...Joins in SP 2010 - Using Enesys 3.6.28.Joins in SP 2010 - Using Enesys 3.6.28.
Previous Previous
 
Next
 Disabled
New Post
 9/13/2011 9:31 AM
 
Hi,

I have been trying to retrieve data from 2 different(Products,Registration) lists using Joins.
Below is the query which is used

SELECT
ProductName,
a,
b,
c,
d,
e,
f,
g,
h,
j,
i
from Products, Registration where Products.ProductName = Registration.ProductName

This throws up an error which says ambiguos column ProductName

Please help me with the correct join statement.

Thanks in Advance.
New Post
 9/13/2011 9:36 AM
 

Hi,

Both lists have "ProductName" field.

Just alias "ProductName" in your select:

SELECT
Products.ProductName,
a,
b,
c,
d,
e,
f,
g,
h,
j,
i
from Products, Registration where Products.ProductName = Registration.ProductName

It should do the trick.


Frederic LATOUR
ENESYS
Previous Previous
 
Next
 Disabled
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...Joins in SP 2010 - Using Enesys 3.6.28.Joins in SP 2010 - Using Enesys 3.6.28.

 
You need to login for posting to the forums.
If you don't have a login, click here to register.
You need to login for posting to the forums.
If you don't have a login, click here to register.
 
Copyright 2010 Enesys - All rights reserved Terms Of UsePrivacy Statement