Changes

Jump to navigation Jump to search
49 bytes added ,  15:10, 18 October 2017
The firmbase table contains undisclosed firms. Add a flag and remove them. Then use firmname, statecode, foundingdate as the key for this table. Check that is valid and make your core table.
 
DROP TABLE firmbase1;
CREATE TABLE firmbase1 AS
SELECT *, CASE
SELECT COUNT(*) FROM (SELECT DISTINCT firmname, statecode, foundingdate FROM firmbase1 WHERE undisclosedflag = 0)a;
--14145
  DROP TABLE firmbasecore;
CREATE TABLE firmbasecore AS
SELECT * FROM firmbase1 WHERE undisclosedflag = 0;
474

edits

Navigation menu