BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
msuri113
Calcite | Level 5

I am unable to get common Id's from two different Teradata server tables.

1 ACCEPTED SOLUTION

Accepted Solutions
Quentin
Super User

Please show the code you have tried, and describe the problem.  Are you getting errors in your log, or just unexpected results?  If the results are unexpected, please describe what you are getting for results, and what you expect.

 

Assuming you have SAS libraries pointing to the two different servers, it should be possible to join them.  But I assume you will need to pull the data into SAS first, unless there is a way in Teradata for the two Teradata servers to see each other's data.  If the teradata servers can see each other's data, then from SAS you should be able to send an explicit pass-through query to one of the teradata servers and have it run the join and then send only the results of the join back to SAS.

 

I haven't played with Teradata much.  But I know with SQL server you can configure two different SQL server instances on different servers to see each other's data.

The Boston Area SAS Users Group is hosting free webinars!
Next webinar will be in January 2025. Until then, check out our archives: https://www.basug.org/videos. And be sure to subscribe to our our email list.

View solution in original post

4 REPLIES 4
Quentin
Super User

Please show the code you have tried, and describe the problem.  Are you getting errors in your log, or just unexpected results?  If the results are unexpected, please describe what you are getting for results, and what you expect.

 

Assuming you have SAS libraries pointing to the two different servers, it should be possible to join them.  But I assume you will need to pull the data into SAS first, unless there is a way in Teradata for the two Teradata servers to see each other's data.  If the teradata servers can see each other's data, then from SAS you should be able to send an explicit pass-through query to one of the teradata servers and have it run the join and then send only the results of the join back to SAS.

 

I haven't played with Teradata much.  But I know with SQL server you can configure two different SQL server instances on different servers to see each other's data.

The Boston Area SAS Users Group is hosting free webinars!
Next webinar will be in January 2025. Until then, check out our archives: https://www.basug.org/videos. And be sure to subscribe to our our email list.
msuri113
Calcite | Level 5
Thanks for quick reply Quentin.
We need common Id's from both teradata servers tables based on where condition We filtered two server tables.We have big data in both Teradata servers, so, the reason if I filter the data from Teradata server-1 it will get huge Id's and server-2 as well. My question is I want to execute both Teradata server tables with join condition and apply the where clause same time then will get common Id's .
PaigeMiller
Diamond | Level 26

So @Quentin asked "Please show the code you have tried, and describe the problem. Are you getting errors in your log, or just unexpected results? If the results are unexpected, please describe what you are getting for results, and what you expect." You didn't do that.

--
Paige Miller
Quentin
Super User

If you were submitting native teradata queries on one of the teradata servers, would you be able to query data from the second teradata server?

 

If not, then I don't see how you can avoid pulling the ID's from both servers down to SAS to do the join.

 

I suppose you could try pulling just one set of ID's from teradata  server A and then you could push the ID's up to teradata server B and do the join in teradata.  So that would only require transferring one set of ID's, but you would have to pull it from server A and then push it to server B, so it's still a lot of time moving data.

 

I would work with your admins to see if you can get a fast connection between the two teradata servers.

The Boston Area SAS Users Group is hosting free webinars!
Next webinar will be in January 2025. Until then, check out our archives: https://www.basug.org/videos. And be sure to subscribe to our our email list.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 613 views
  • 0 likes
  • 3 in conversation