tell me why I’m getting the message “The multi-part identifier “134062-DB1.netFORUMSTaging.dbo.Individual.individualKey” could not be bound”

5 pts.
Tags:
SQL
SQL error messages
SQL Statement Syntax Errors
SQL statements
I'm trying to process this SQL statement select cxa_cst_key, cxa_key, cxa_key from [134062-DB1].netFORUMSTaging.dbo.Individual LEFT JOIN dbo.co_customer_x_address ON [134062-DB1].netFORUMSTaging.dbo.Individual.individualKey = co_customer_x_address.cxa_cst_key where delete_flag = 0 and source not in ('MIBNOM1','MIBNOM2') order by add_date asc But I keep getting an error message PLEASE HELP

Answer Wiki

Thanks. We'll let you know when a new response is added.

You need to alias the remote table name and use the alias when referring to that object.

<pre>select cxa_cst_key, cxa_key, cxa_key
from [134062-DB1].netFORUMSTaging.dbo.Individual a
LEFT JOIN dbo.co_customer_x_address
ON a.individualKey = co_customer_x_address.cxa_cst_key
where delete_flag = 0
and source not in (‘MIBNOM1′,’MIBNOM2′)
order by add_date asc</pre>

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    Make sure you don't have a typo in '[134062-DB1].netFORUMSTaging.dbo.Individual.individualKey'. Can you run a simple query like this ? select individualKey from [134062-DB1].netFORUMSTaging.dbo.Individual
    68,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following