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

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

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