{
  "id": 2802,
  "title": "mysql dump",
  "url": "/competitions/cir-prospect/discussion/2802",
  "author_name": "",
  "post_date": "2012-10-03T16:03:03.600Z",
  "votes": null,
  "comment_count": 5,
  "views": 4022,
  "content": "<p>The readme file says there should be a file named fec.sql or fec2012.sql ready to be loaded into MySQL. Where can I find this file?</p>",
  "messages": [
    {
      "id": "15131",
      "postDate": "10/03/2012 16:03:03",
      "content": "<p>The readme file says there should be a file named fec.sql or fec2012.sql ready to be loaded into MySQL. Where can I find this file?</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "15142",
      "postDate": "10/03/2012 19:54:19",
      "content": "<p>Are you looking at this file? http://www.kaggle.com/files/4553/fec2012_sql.zip</p>\r\n<p>I just pulled it down to test and the sql file should be there after you unzip.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "15409",
      "postDate": "10/10/2012 19:54:38",
      "content": "<p>hi, i was able to download and import your sql dump.&nbsp; but i got this error:</p>\r\n<p><em>121010 11:16:43 [ERROR] /usr/sbin/mysqld: Table './fec/fec_itemized_indiv_2012' is marked as crashed and should be repaired</em></p>\r\n<p>can you confirm these table sizes:</p>\r\n<table border=\"0\" cellspacing=\"0\">\r\n<colgroup width=\"159\"></colgroup><colgroup width=\"103\"></colgroup><colgroup width=\"140\">\r\n</colgroup><colgroup width=\"108\"></colgroup>\r\n<tbody>\r\n<tr>\r\n<td align=\"LEFT\" height=\"16\">TABLE_NAME</td>\r\n<td align=\"LEFT\">TABLE_ROWS</td>\r\n<td align=\"LEFT\">AVG_ROW_LENGTH</td>\r\n<td align=\"LEFT\">DATA_LENGTH</td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"17\">fec_itemized_cand_2012</td>\r\n<td align=\"RIGHT\">5468</td>\r\n<td align=\"RIGHT\">111</td>\r\n<td align=\"RIGHT\">608732</td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"17\">fec_itemized_ccl_2012</td>\r\n<td align=\"RIGHT\">6006</td>\r\n<td align=\"RIGHT\">47</td>\r\n<td align=\"RIGHT\">288284</td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"17\">fec_itemized_comm_2012</td>\r\n<td align=\"RIGHT\">13221</td>\r\n<td align=\"RIGHT\">139</td>\r\n<td align=\"RIGHT\">1843376</td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"17\">fec_itemized_indiv_2012</td>\r\n<td align=\"RIGHT\">2018465</td>\r\n<td align=\"RIGHT\">196</td>\r\n<td align=\"RIGHT\">396896504</td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"17\">fec_itemized_oth_2012</td>\r\n<td align=\"RIGHT\">462771</td>\r\n<td align=\"RIGHT\">178</td>\r\n<td align=\"RIGHT\">82667676</td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"17\">fec_itemized_pas_2012</td>\r\n<td align=\"RIGHT\">211778</td>\r\n<td align=\"RIGHT\">174</td>\r\n<td align=\"RIGHT\">36857308</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<p><span style=\"text-decoration:line-through\">ie, they seem to be about the same counts as mentioned in the data dictionary, but have grown slightly?</span></p>\r\n<p>never mind, i seem to have been looking at an older description on the kaggle data description; these numbers are the same as in your readme.<span style=\"text-decoration:line-through\"><br>\r\n</span></p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "15411",
      "postDate": "10/10/2012 21:10:10",
      "content": "<p>Just checked my local copy, and counts look correct to me!</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "15593",
      "postDate": "10/15/2012 01:37:03",
      "content": "<p>i think i've mostly digested this, but a bit more error checking please...</p>\r\n<p>i am making some assumptions as to 'primary ID' and 'foreign key' reference fields in your data set.&nbsp; these are captured in the table below:</p>\r\n<table border=\"0\" cellspacing=\"0\">\r\n<thead>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\">Class</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">PID</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">Fkey</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n</tr>\r\n</thead>\r\n<colgroup width=\"84\"></colgroup><colgroup width=\"25\"></colgroup><colgroup width=\"171\">\r\n</colgroup><colgroup span=\"2\" width=\"84\"></colgroup>\r\n<tbody>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\">cand</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">*</span></td>\r\n<td align=\"LEFT\"><em><span style=\"color:#000000\">candidate_id</span></em></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"20\"><span style=\"color:#000000\">comm</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">*</span></td>\r\n<td align=\"LEFT\"><em><span style=\"color:#000000\">committee_id</span></em></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\">ccl</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">*</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">linkage_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">candidate_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">cand</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">candidate_id</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"20\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">committee_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">comm</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">committee_id</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\">indiv</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">*</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">transaction_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"20\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">filer_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">comm</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">committee_id</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">other_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">cand | comm</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">contributor_name </span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">contrib</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">name</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\">oth</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">*</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">transaction_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"20\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">filer_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">comm</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">committee_id</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">other_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">cand | comm</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">contributor_name </span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">contrib</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">name</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"20\"><span style=\"color:#000000\">pas</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">*</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">transaction_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">candidate_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">cand</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">candidate_id</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"20\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">filer_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">comm</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">committee_id</span></td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<p>good so far?&nbsp; if so, i'm bumping into some consistency errors of the following sorts:</p>\r\n<ul>\r\n<li>null id: some primary IDs seem to be empty strings? row index given </li><li>dup id: primary IDs should be unique? repeated ID, previous and current row index\r\n</li><li>null fkey0|1: these shouldn't be empty strings either? referencing indiv and its row index given\r\n</li><li>missing fkey0|1: these shouldn't be missing? referencing contrib and foreign reference given\r\n</li></ul>\r\n<p>examples of these, and summary statistics are listed in the attached report.&nbsp; eg, i find 241682 duplicate<strong> indiv.transaction_id</strong> ?!</p>\r\n<p>also, the _layout.xls files made me believe Indiv, Other and PAS would have <strong>\r\nnicar_amount</strong> attributes, but i find only <strong>amount</strong> ?</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "15663",
      "postDate": "10/15/2012 23:15:22",
      "content": "<p>If you're using the FEC data provided here, there are some irregularities like \\xA0 and extra commas, slashes, and quotes in some of the text fields. I had to clean up the data to get MySQL to pick it up correctly (I don't know if that's what you're using).\r\n There are tools for this in my proposal.</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 15142,
      "author_name": "cjdd3b",
      "author_url": "",
      "post_date": "10/03/2012 19:54:19",
      "content": "<p>Are you looking at this file? http://www.kaggle.com/files/4553/fec2012_sql.zip</p>\r\n<p>I just pulled it down to test and the sql file should be there after you unzip.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 15409,
      "author_name": "rikb49442",
      "author_url": "",
      "post_date": "10/10/2012 19:54:38",
      "content": "<p>hi, i was able to download and import your sql dump.&nbsp; but i got this error:</p>\r\n<p><em>121010 11:16:43 [ERROR] /usr/sbin/mysqld: Table './fec/fec_itemized_indiv_2012' is marked as crashed and should be repaired</em></p>\r\n<p>can you confirm these table sizes:</p>\r\n<table border=\"0\" cellspacing=\"0\">\r\n<colgroup width=\"159\"></colgroup><colgroup width=\"103\"></colgroup><colgroup width=\"140\">\r\n</colgroup><colgroup width=\"108\"></colgroup>\r\n<tbody>\r\n<tr>\r\n<td align=\"LEFT\" height=\"16\">TABLE_NAME</td>\r\n<td align=\"LEFT\">TABLE_ROWS</td>\r\n<td align=\"LEFT\">AVG_ROW_LENGTH</td>\r\n<td align=\"LEFT\">DATA_LENGTH</td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"17\">fec_itemized_cand_2012</td>\r\n<td align=\"RIGHT\">5468</td>\r\n<td align=\"RIGHT\">111</td>\r\n<td align=\"RIGHT\">608732</td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"17\">fec_itemized_ccl_2012</td>\r\n<td align=\"RIGHT\">6006</td>\r\n<td align=\"RIGHT\">47</td>\r\n<td align=\"RIGHT\">288284</td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"17\">fec_itemized_comm_2012</td>\r\n<td align=\"RIGHT\">13221</td>\r\n<td align=\"RIGHT\">139</td>\r\n<td align=\"RIGHT\">1843376</td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"17\">fec_itemized_indiv_2012</td>\r\n<td align=\"RIGHT\">2018465</td>\r\n<td align=\"RIGHT\">196</td>\r\n<td align=\"RIGHT\">396896504</td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"17\">fec_itemized_oth_2012</td>\r\n<td align=\"RIGHT\">462771</td>\r\n<td align=\"RIGHT\">178</td>\r\n<td align=\"RIGHT\">82667676</td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"17\">fec_itemized_pas_2012</td>\r\n<td align=\"RIGHT\">211778</td>\r\n<td align=\"RIGHT\">174</td>\r\n<td align=\"RIGHT\">36857308</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<p><span style=\"text-decoration:line-through\">ie, they seem to be about the same counts as mentioned in the data dictionary, but have grown slightly?</span></p>\r\n<p>never mind, i seem to have been looking at an older description on the kaggle data description; these numbers are the same as in your readme.<span style=\"text-decoration:line-through\"><br>\r\n</span></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 15411,
      "author_name": "cjdd3b",
      "author_url": "",
      "post_date": "10/10/2012 21:10:10",
      "content": "<p>Just checked my local copy, and counts look correct to me!</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 15593,
      "author_name": "rikb49442",
      "author_url": "",
      "post_date": "10/15/2012 01:37:03",
      "content": "<p>i think i've mostly digested this, but a bit more error checking please...</p>\r\n<p>i am making some assumptions as to 'primary ID' and 'foreign key' reference fields in your data set.&nbsp; these are captured in the table below:</p>\r\n<table border=\"0\" cellspacing=\"0\">\r\n<thead>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\">Class</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">PID</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">Fkey</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n</tr>\r\n</thead>\r\n<colgroup width=\"84\"></colgroup><colgroup width=\"25\"></colgroup><colgroup width=\"171\">\r\n</colgroup><colgroup span=\"2\" width=\"84\"></colgroup>\r\n<tbody>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\">cand</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">*</span></td>\r\n<td align=\"LEFT\"><em><span style=\"color:#000000\">candidate_id</span></em></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"20\"><span style=\"color:#000000\">comm</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">*</span></td>\r\n<td align=\"LEFT\"><em><span style=\"color:#000000\">committee_id</span></em></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\">ccl</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">*</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">linkage_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">candidate_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">cand</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">candidate_id</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"20\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">committee_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">comm</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">committee_id</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\">indiv</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">*</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">transaction_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"20\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">filer_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">comm</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">committee_id</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">other_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">cand | comm</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">contributor_name </span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">contrib</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">name</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\">oth</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">*</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">transaction_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"20\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">filer_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">comm</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">committee_id</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">other_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">cand | comm</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">contributor_name </span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">contrib</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">name</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"20\"><span style=\"color:#000000\">pas</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">*</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">transaction_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"22\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">candidate_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">cand</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">candidate_id</span></td>\r\n</tr>\r\n<tr>\r\n<td align=\"LEFT\" height=\"20\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\"><br>\r\n</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">filer_id</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">comm</span></td>\r\n<td align=\"LEFT\"><span style=\"color:#000000\">committee_id</span></td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<p>good so far?&nbsp; if so, i'm bumping into some consistency errors of the following sorts:</p>\r\n<ul>\r\n<li>null id: some primary IDs seem to be empty strings? row index given </li><li>dup id: primary IDs should be unique? repeated ID, previous and current row index\r\n</li><li>null fkey0|1: these shouldn't be empty strings either? referencing indiv and its row index given\r\n</li><li>missing fkey0|1: these shouldn't be missing? referencing contrib and foreign reference given\r\n</li></ul>\r\n<p>examples of these, and summary statistics are listed in the attached report.&nbsp; eg, i find 241682 duplicate<strong> indiv.transaction_id</strong> ?!</p>\r\n<p>also, the _layout.xls files made me believe Indiv, Other and PAS would have <strong>\r\nnicar_amount</strong> attributes, but i find only <strong>amount</strong> ?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 15663,
      "author_name": "brandonrobertz",
      "author_url": "",
      "post_date": "10/15/2012 23:15:22",
      "content": "<p>If you're using the FEC data provided here, there are some irregularities like \\xA0 and extra commas, slashes, and quotes in some of the text fields. I had to clean up the data to get MySQL to pick it up correctly (I don't know if that's what you're using).\r\n There are tools for this in my proposal.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "15131": "",
    "15142": "",
    "15409": "",
    "15411": "",
    "15593": "",
    "15663": ""
  },
  "source": "meta"
}