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

Hi,

I'm using SAS Enterprise Guide 4.3 & I'm trying to find the best way to separate account numbers where one table is a subset of the other.

Any suggests?

1 ACCEPTED SOLUTION

Accepted Solutions
BrunoMueller
SAS Super FREQ

You can use the query builder to achieve this. Brief steps:

  • you have two tables that share a key which is used to identify the accounts
  • start your query with the table (called A from now on) that contains the accounts you are interested in
  • join the second table (called B from now on) in the query using a left join
  • on the select tab, get the columns from table A your are interested in
  • add the the key column from table B to the select tab
  • now define a filter on the key column from table B, all rows where this value is missing are only present in table A but not in table B

Have a go

View solution in original post

2 REPLIES 2
BrunoMueller
SAS Super FREQ

You can use the query builder to achieve this. Brief steps:

  • you have two tables that share a key which is used to identify the accounts
  • start your query with the table (called A from now on) that contains the accounts you are interested in
  • join the second table (called B from now on) in the query using a left join
  • on the select tab, get the columns from table A your are interested in
  • add the the key column from table B to the select tab
  • now define a filter on the key column from table B, all rows where this value is missing are only present in table A but not in table B

Have a go

pcfriendly
Calcite | Level 5

Thanks Bruno !!

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 2 replies
  • 4019 views
  • 2 likes
  • 2 in conversation