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

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

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