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 !!

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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