create table ticker ( tablee varchar(3) NOT NULL, permaticker integer, ticker varchar(8) NOT NULL, name varchar(256) NOT NULL, exchange varchar(32), isdelisted boolean, category varchar(32), cusips varchar(256), siccode integer, sicsector varchar(256), sicindustry varchar(256), famasector varchar(256), famaindustry varchar(256), sector varchar(128), industry varchar(128), scalemarketcap varchar(64), scalerevenue varchar(64), relatedtickers varchar(128), currency varchar(3), location varchar(64), lastupdated date, firstadded date, firstpricedate date, lastpricedate date, firstquarter date, lastquarter date, secfilings varchar(256), companysite varchar(256));



create table sf1 ( ticker varchar(8), dimension varchar(3), calendar_date date, date_key date, report_period date, last_updated date, accoci float, assets float, assetsavg float, assetsc float, assetsnc float, assetturnover float, bvps float, capex float, cashneq float, cashnequsd float, cor float, consolinc float, currentratio float, de float, debt float, debtc float, debtnc float, debtusd float, deferredrev float, depamor float, deposits float, divyield float, dps float, ebit float, ebitda float, ebitdamargin float, ebitdausd float, ebitusd float, ebt float, eps float, epsdil float, epsusd float, equity float, equityavg float, equityusd float, ev float, evebit float, evebitda float, fcf float, fcfps float, fxusd float, gp float, grossmargin float, intangibles float, intexp float, invcap float, invcapavg float, inventory float, investments float, investmentsc float, investmentsnc float, liabilities float, liabilitiesc float, liabilitiesnc float, marketcap float, ncf float, ncfbus float, ncfcommon float, ncfdebt float, ncfdiv float, ncff float, ncfi float, ncfinv float, ncfo float, ncfx float, netinc float, netinccmn float, netinccmnusd float, netincdis float, netincnci float, netmargin float, opex float, opinc float, payables float, payoutratio float, pb float, pe float, pe1 float, ppnenet float, prefdivis float, price float, ps float, ps1 float, receivables float, retearn float, revenue float, revenueusd float, rnd float, roa float, roe float, roic float, ros float, sbcomp float, sgna float, sharefactor float, sharesbas float, shareswa float, shareswadil float, sps float, tangibles float, taxassets float, taxexp float, taxliabilities float, tbvps float, workingcapital float)




create table sf1 (
    ticker varchar(8),
    dimension varchar(3),
    calendar_date date,
    date_key date,
    report_period date,
    last_updated date,
    accoci float,
    assets float,
    assetsavg float,
    assetsc float,
    assetsnc float,
    assetturnover float,
    bvps float,
    capex float,
    cashneq float,
    cashnequsd float,
    cor float,
    consolinc float,
    currentratio float,
    de float,
    debt float,
    debtc float,
    debtnc float,
    debtusd float,
    deferredrev float,
    depamor float,
    deposits float,
    divyield float,
    dps float,
    ebit float,
    ebitda float,
    ebitdamargin float,
    ebitdausd float,
    ebitusd float,
    ebt float,
    eps float,
    epsdil float,
    epsusd float,
    equity float,
    equityavg float,
    equityusd float,
    ev float,
    evebit float,
    evebitda float,
    fcf float,
    fcfps float,
    fxusd float,
    gp float,
    grossmargin float,
    intangibles float,
    intexp float,
    invcap float,
    invcapavg float,
    inventory float,
    investments float,
    investmentsc float,
    investmentsnc float,
    liabilities float,
    liabilitiesc float,
    liabilitiesnc float,
    marketcap float,
    ncf float,
    ncfbus float,
    ncfcommon float,
    ncfdebt float,
    ncfdiv float,
    ncff float,
    ncfi float,
    ncfinv float,
    ncfo float,
    ncfx float,
    netinc float,
    netinccmn float,
    netinccmnusd float,
    netincdis float,
    netincnci float,
    netmargin float,
    opex float,
    opinc float,
    payables float,
    payoutratio float,
    pb float,
    pe float,
    pe1 float,
    ppnenet float,
    prefdivis float,
    price float,
    ps float,
    ps1 float,
    receivables float,
    retearn float,
    revenue float,
    revenueusd float,
    rnd float,
    roa float,
    roe float,
    roic float,
    ros float,
    sbcomp float,
    sgna float,
    sharefactor float,
    sharesbas float,
    shareswa float,
    shareswadil float,
    sps float,
    tangibles float,
    taxassets float,
    taxexp float,
    taxliabilities float,
    tbvps float,
    workingcapital float
)

