BookmarkSubscribeRSS Feed
krg1140
Calcite | Level 5
  1. Using PROC SQL, perform an inner join to merge Audit Fees 2 and Firm Data.  Merge observatiosn where COMPANY_FKEY equals CIK and observations have the same fiscal year (FYEAR).

So far I have: but I'm not sure how to also make it ensure they have the same FYEAR? Any advice? 

proc sql;
create table Firm_Audit as
select *
from audit_fees_4, firm_data
where audit_fees_4.company_fkey=firm_data.CIK
quit;

1 REPLY 1
ChrisNZ
Tourmaline | Level 20

1. Use the appropriate icon to paste code

2. What about

where audit_fees_4.company_fkey=firm_data.CIK and audit_fees_4.FYEAR=firm_data.FYEAR

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 755 views
  • 0 likes
  • 2 in conversation