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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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