-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.sec_quarterly_financials.quick_summary`
(
  submission_number STRING NOT NULL OPTIONS(description="Accession Number. The 20-character string formed from the 18-digit number assigned by the Commission to each EDGAR submission. submission_number: [adsh]"),
  company_name STRING OPTIONS(description="Name of registrant from the submission table. This corresponds to the name of the legal entity as recorded in EDGAR as of the filing date."),
  measure_tag STRING NOT NULL OPTIONS(description="The unique identifier (name) for a tag in a specific taxonomy release. measure_tag: [tag]"),
  period_end_date STRING NOT NULL OPTIONS(description="The end date for the data value, rounded to the nearest month end. period_end_date: [ddate]"),
  value FLOAT64 OPTIONS(description="The value. This is not scaled, it is as found in the Interactive Data file, but is rounded to four digits to the right of the decimal point."),
  units STRING NOT NULL OPTIONS(description="The unit of measure for the value. units: [uom]"),
  number_of_quarters INT64 NOT NULL OPTIONS(description="The count of the number of quarters represented by the data value, rounded to the nearest whole number. \\\"0\\\" indicates it is a point-in-time value. number_of_quarters: [qtrs]"),
  version STRING NOT NULL OPTIONS(description="For a standard tag, an identifier for the taxonomy; otherwise the accession number where the tag was defined."),
  central_index_key INT64 OPTIONS(description="Central Index Key (CIK). Ten digit number assigned by the Commission to each registrant that submits filings. central_index_key: [cik]"),
  ein STRING OPTIONS(description="Employee Identification Number, 9 digit identification number assigned by the Internal Revenue Service to business entities operating in the United States."),
  sic STRING OPTIONS(description="Standard Industrial Classification (SIC). Four digit code assigned by the Commission as of the filing date, indicating the registrant's type of business."),
  fiscal_year_end STRING OPTIONS(description="Fiscal Year End Date. fiscal_year_end: [fye]"),
  form STRING OPTIONS(description="The submission type of the registrant's filing."),
  fiscal_year INT64 OPTIONS(description="Fiscal Year Focus (as defined in EFM Ch. 6). fiscal_year: [fy]"),
  fiscal_period_focus STRING OPTIONS(description="Fiscal Period Focus (as defined in EFM Ch. 6) within Fiscal Year. The 10-Q for the 1st, 2nd and 3rd quarters would have a fiscal period focus of Q1, Q2 (or H1), and Q3 (or M9) respectively, and a 10-K would have a fiscal period focus of FY. fiscal_period_focus: [fp]"),
  date_filed INT64 OPTIONS(description="The date of the registrant's filing with the Commission. date_filed: [filed]"),
  date_accepted TIMESTAMP OPTIONS(description="The acceptance date and time of the registrant's filing with the Commission. Filings accepted after 5:30pm EST are considered filed on the following business day. date_accepted: [accepted]")
)
PARTITION BY DATE(_PARTITIONTIME);

INSERT INTO `bigquery-public-data.sec_quarterly_financials.quick_summary` (submission_number, company_name, measure_tag, period_end_date, value, units, number_of_quarters, version, central_index_key, ein, sic, fiscal_year_end, form, fiscal_year, fiscal_period_focus, date_filed, date_accepted, _PARTITIONTIME) VALUES ('0000019353-10-000063', 'CHARMING SHOPPES INC', 'AllowanceForDoubtfulAccountsReceivableCurrent', '20100131', 5345000.0, 'USD', 0, 'us-gaap/2009', 19353, '231721355', '5621', '0131', '10-Q', 2010, 'Q3', 20101201, '2010-12-01 08:05:00+00:00', NULL), ('0000019353-10-000063', 'CHARMING SHOPPES INC', 'AllowanceForDoubtfulAccountsReceivableCurrent', '20101031', 1737000.0, 'USD', 0, 'us-gaap/2009', 19353, '231721355', '5621', '0131', '10-Q', 2010, 'Q3', 20101201, '2010-12-01 08:05:00+00:00', NULL), ('0000019353-10-000063', 'CHARMING SHOPPES INC', 'CommonStockParOrStatedValuePerShare', '20100131', 0.1, 'USD', 0, 'us-gaap/2009', 19353, '231721355', '5621', '0131', '10-Q', 2010, 'Q3', 20101201, '2010-12-01 08:05:00+00:00', NULL), ('0000019353-10-000063', 'CHARMING SHOPPES INC', 'CommonStockParOrStatedValuePerShare', '20101031', 0.1, 'USD', 0, 'us-gaap/2009', 19353, '231721355', '5621', '0131', '10-Q', 2010, 'Q3', 20101201, '2010-12-01 08:05:00+00:00', NULL), ('0000019353-10-000063', 'CHARMING SHOPPES INC', 'CommonStockSharesAuthorized', '20100131', 300000000.0, 'shares', 0, 'us-gaap/2009', 19353, '231721355', '5621', '0131', '10-Q', 2010, 'Q3', 20101201, '2010-12-01 08:05:00+00:00', NULL);