BookmarkSubscribeRSS Feed
lloraine
Calcite | Level 5


I created a user defined link.  How do I edit the link so it is using the correct linking fields?  Can you join one query to another using a calculated column.  I am sure there is a way to do this but due to my lack of experience using SAS Enterprise Guide, I am at a loss.  I created these two queries and now I want to join them using a calculated column.

Maybe if I explain more of what I am trying to do, someone can point me in the right direction.  I bring in 4 oracle tables.  I take each table and filter what I need and run the query for each table.

Now I want to take the results from each table and join them with the appropriate joining fields.  I did export the results of each of the tables and them brought them back in and joining to one of the results query.  That works but there must me a better way.

1 REPLY 1
DaveBirch
Obsidian | Level 7

If I understand you correctly, the question is about joining tables on variables (fields/columns) that you have calculated rather than variables that already exist.  I think you should use Query nodes to create temporary datasets or views and then use another Query node to do your join on the variables that you created in the earlier queries.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1032 views
  • 0 likes
  • 2 in conversation