Wrds | Compustat
select a.*, b.permno, b.linkdt, b.linkenddt from comp.funda a join ccm.ccmxpf_linktable b on a.gvkey = b.gvkey where b.linktype in (‘LU’, ‘LC’) and b.linkprim = ‘P’;
Empirical research in finance and accounting relies heavily on standardized, historical financial statement data. Compustat (originally from Standard & Poor’s, now part of S&P Global Market Intelligence) provides over 50 years of annual and quarterly fundamentals for publicly traded companies. The Wharton Research Data Services (WRDS) platform acts as a unified delivery system, offering seamless access to Compustat alongside CRSP, OptionMetrics, IBES, and others. This paper serves both as a tutorial and a methodological reference for researchers who need to extract, clean, and merge WRDS Compustat data. wrds compustat
annual = db.raw_sql(“”” select gvkey, datadate, fyr, at, lt, ceq, sale from comp.funda where indfmt=‘INDL’ and consol=‘C’ and popsrc=‘D’ and at > 0 ””") select a
Unlocking Financial Insight: A Guide to WRDS Compustat Wharton Research Data Services (WRDS) is the industry-standard platform for high-performance financial research, and is widely considered its most essential database. For researchers in accounting, finance, and economics, WRDS Compustat provides the high-quality, standardized data necessary to analyze market trends and corporate performance across decades. What is WRDS Compustat? This paper serves both as a tutorial and