sql
stringlengths
6
1.05M
INSERT INTO burgers (burger_name, devoured) VALUES ('Rodeo', false); INSERT INTO burgers (burger_name, devoured) VALUES ('Sunrise', false); INSERT INTO burgers (burger_name, devoured) VALUES ('Snydz', false);
<filename>nemo/src/main/resources/db/changelog/job_opportunity.sql INSERT INTO job_opportunity (jo_name, description, contract_type,working_hours,salary_range_ini,salary_range_end,gender,availability,workplace_country,workplace_city,workplace_neighborhood,workplace_street,workplace_home_number,workplace_complement,workplace_zip_code, workplace_latitude, workplace_longitude,divulgation_ini,divulgation_end) VALUES ('Divisão9112','Desenvolvimento', 'CLT','08:00:00',530,2315,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-12-03T23:21:51.096Z','2021-01-09T21:20:38.729Z'), ('Resposta365','Desenvolvimento', 'CLT','08:00:00',288,9625,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-09-14T17:29:06.417Z','2020-10-11T15:42:45.514Z'), ('Contas2717','Desenvolvimento', 'CLT','08:00:00',234,167,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-01-03T18:13:35.523Z','2020-06-03T06:37:42.356Z'), ('Métricas9045','Desenvolvimento', 'CLT','08:00:00',459,1793,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-06-25T00:21:56.180Z','2020-11-07T05:45:05.059Z'), ('Pesquisa1580','Desenvolvimento', 'CLT','08:00:00',543,2361,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-05-07T13:42:31.017Z','2020-10-24T04:05:44.001Z'), ('Marketing6023','Desenvolvimento', 'CLT','08:00:00',790,1570,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-02-18T02:13:24.912Z','2021-07-29T21:59:06.780Z'), ('Configuração436','Desenvolvimento', 'CLT','08:00:00',238,7317,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-11-15T03:48:52.212Z','2021-11-27T02:02:44.970Z'), ('Contas4514','Desenvolvimento', 'CLT','08:00:00',802,5045,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-01-24T12:24:35.795Z','2021-10-08T01:37:42.886Z'), ('Marketing490','Desenvolvimento', 'CLT','08:00:00',49,7487,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-09-22T17:10:28.451Z','2021-05-13T16:49:39.502Z'), ('Pesquisa7102','Desenvolvimento', 'CLT','08:00:00',942,5144,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-09-20T05:07:22.403Z','2021-05-14T23:32:45.530Z'), ('Grupo5178','Desenvolvimento', 'CLT','08:00:00',102,5275,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-11-06T21:06:53.952Z','2020-06-09T16:27:23.712Z'), ('Táticas5836','Desenvolvimento', 'CLT','08:00:00',901,8938,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-11-25T00:02:47.571Z','2021-05-14T19:08:19.819Z'), ('Táticas2578','Desenvolvimento', 'CLT','08:00:00',573,4847,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-05-05T11:49:14.866Z','2021-05-17T08:09:57.130Z'), ('Identidade2463','Desenvolvimento', 'CLT','08:00:00',5,4147,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-10-22T06:31:44.471Z','2021-08-30T13:47:10.030Z'), ('Programa6238','Desenvolvimento', 'CLT','08:00:00',134,3956,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-04-01T12:39:57.010Z','2021-05-26T11:18:24.973Z'), ('Garantia4281','Desenvolvimento', 'CLT','08:00:00',896,7737,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-09-24T20:18:31.464Z','2020-05-19T16:58:44.184Z'), ('Integração9080','Desenvolvimento', 'CLT','08:00:00',566,1439,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-12-20T01:50:48.083Z','2020-06-11T11:21:20.296Z'), ('Funcionalidade6801','Desenvolvimento', 'CLT','08:00:00',927,7105,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-08-17T04:59:29.788Z','2021-12-05T09:21:05.181Z'), ('Branding7051','Desenvolvimento', 'CLT','08:00:00',97,8217,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-01-14T03:12:34.559Z','2020-05-17T13:01:50.249Z'), ('Garantia35','Desenvolvimento', 'CLT','08:00:00',137,7943,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-04-13T20:47:00.077Z','2020-05-14T19:48:38.994Z'), ('Qualidade7239','Desenvolvimento', 'CLT','08:00:00',74,2965,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-08-27T02:58:32.273Z','2021-07-07T08:39:37.038Z'), ('Implementação7886','Desenvolvimento', 'CLT','08:00:00',517,6749,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-06-01T22:22:49.872Z','2020-04-08T22:31:42.812Z'), ('Implementação8592','Desenvolvimento', 'CLT','08:00:00',881,3376,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-11-02T21:06:53.307Z','2021-07-10T07:26:40.473Z'), ('Programa8321','Desenvolvimento', 'CLT','08:00:00',534,7085,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-11-25T02:31:35.296Z','2021-01-01T19:30:19.060Z'), ('Soluções1659','Desenvolvimento', 'CLT','08:00:00',166,775,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-07-27T03:32:53.338Z','2021-06-04T06:40:54.858Z'), ('Pesquisa7779','Desenvolvimento', 'CLT','08:00:00',622,5760,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-08-02T17:48:21.415Z','2020-04-29T15:25:37.141Z'), ('Rede9652','Desenvolvimento', 'CLT','08:00:00',95,7077,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2020-01-02T15:12:27.644Z','2021-05-15T18:43:44.905Z'), ('Programa8530','Desenvolvimento', 'CLT','08:00:00',65,2599,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-01-01T16:44:35.136Z','2020-12-01T04:05:19.337Z'), ('Divisão3563','Desenvolvimento', 'CLT','08:00:00',946,7634,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-08-12T23:17:26.099Z','2021-06-23T01:41:54.020Z'), ('Mobilidade3858','Desenvolvimento', 'CLT','08:00:00',83,1301,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-11-11T04:04:22.398Z','2020-03-24T21:46:01.325Z'), ('Operações1358','Desenvolvimento', 'CLT','08:00:00',653,8884,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-05-20T06:43:04.455Z','2020-03-17T00:19:56.411Z'), ('Integração6326','Desenvolvimento', 'CLT','08:00:00',565,1939,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-06-14T14:02:56.934Z','2020-04-08T20:22:25.449Z'), ('A infraestrutura7774','Desenvolvimento', 'CLT','08:00:00',532,4275,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-10-18T17:54:34.340Z','2020-07-08T11:16:43.405Z'), ('Implementação2774','Desenvolvimento', 'CLT','08:00:00',443,5848,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-12-30T06:36:44.444Z','2020-02-15T02:03:47.994Z'), ('Diretivas2981','Desenvolvimento', 'CLT','08:00:00',297,9926,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-05-21T01:26:39.150Z','2020-03-22T09:52:24.017Z'), ('Mobilidade2705','Desenvolvimento', 'CLT','08:00:00',202,5979,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-08-28T06:42:10.262Z','2021-11-23T06:58:47.489Z'), ('Intranet4444','Desenvolvimento', 'CLT','08:00:00',615,505,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-01-18T13:17:16.904Z','2021-05-26T19:22:39.241Z'), ('Integração1365','Desenvolvimento', 'CLT','08:00:00',288,1271,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-01-08T22:57:15.788Z','2021-09-05T16:24:33.590Z'), ('Comunicações3629','Desenvolvimento', 'CLT','08:00:00',474,5488,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-05-07T20:16:54.262Z','2020-04-28T20:59:12.833Z'), ('Resposta9350','Desenvolvimento', 'CLT','08:00:00',556,2631,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-08-24T01:40:36.816Z','2021-12-29T03:06:58.259Z'), ('Rede4619','Desenvolvimento', 'CLT','08:00:00',236,8826,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-08-30T06:53:03.625Z','2020-04-01T10:45:14.516Z'), ('Operações5748','Desenvolvimento', 'CLT','08:00:00',164,6552,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-11-26T00:47:27.006Z','2021-05-11T02:10:02.603Z'), ('Fatores147','Desenvolvimento', 'CLT','08:00:00',775,9422,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-10-13T20:32:27.789Z','2021-03-18T05:23:54.155Z'), ('Programa4628','Desenvolvimento', 'CLT','08:00:00',436,4676,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-09-26T23:06:48.548Z','2021-08-25T10:25:40.285Z'), ('Garantia9373','Desenvolvimento', 'CLT','08:00:00',437,6147,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-09-06T02:26:34.889Z','2020-06-06T11:36:57.769Z'), ('Táticas9558','Desenvolvimento', 'CLT','08:00:00',336,304,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-09-17T22:56:15.913Z','2020-07-22T09:47:48.707Z'), ('Grupo3120','Desenvolvimento', 'CLT','08:00:00',670,5484,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-10-28T06:54:39.150Z','2020-06-02T21:13:11.097Z'), ('Operações3145','Desenvolvimento', 'CLT','08:00:00',682,1559,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-01-02T05:20:45.411Z','2020-09-30T07:34:29.442Z'), ('Integração588','Desenvolvimento', 'CLT','08:00:00',57,202,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-01-10T15:15:34.219Z','2020-08-09T23:21:21.884Z'), ('Soluções6034','Desenvolvimento', 'CLT','08:00:00',82,1151,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-05-14T01:50:59.542Z','2020-04-28T10:45:35.117Z'), ('Mobilidade6842','Desenvolvimento', 'CLT','08:00:00',362,2815,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-02-19T00:04:12.719Z','2020-03-23T22:05:15.072Z'), ('Prestação de contas6422','Desenvolvimento', 'CLT','08:00:00',71,9458,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-09-19T23:51:37.470Z','2021-02-21T20:04:29.486Z'), ('Implementação449','Desenvolvimento', 'CLT','08:00:00',192,8659,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-12-06T23:17:01.863Z','2021-07-09T08:37:30.126Z'), ('Usabilidade5332','Desenvolvimento', 'CLT','08:00:00',728,5668,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-12-25T04:05:10.613Z','2021-12-13T06:09:52.628Z'), ('Paradigma3564','Desenvolvimento', 'CLT','08:00:00',933,6988,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-02-21T09:28:08.600Z','2021-10-30T05:10:50.937Z'), ('Funcionalidade6624','Desenvolvimento', 'CLT','08:00:00',873,7190,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-11-03T02:10:57.544Z','2021-12-17T04:36:11.733Z'), ('Fatores3683','Desenvolvimento', 'CLT','08:00:00',367,3832,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-11-04T06:11:46.546Z','2020-08-26T16:56:00.465Z'), ('Mobilidade53','Desenvolvimento', 'CLT','08:00:00',985,4715,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-04-07T18:56:43.660Z','2021-04-14T05:25:55.998Z'), ('Táticas8584','Desenvolvimento', 'CLT','08:00:00',280,9921,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-05-29T09:31:05.242Z','2021-11-27T21:54:05.240Z'), ('Grupo8798','Desenvolvimento', 'CLT','08:00:00',816,7381,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-12-05T10:42:26.683Z','2021-05-11T12:19:52.813Z'), ('Mobilidade5822','Desenvolvimento', 'CLT','08:00:00',81,1922,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-01-03T05:38:02.556Z','2020-06-02T03:05:55.393Z'), ('A infraestrutura8974','Desenvolvimento', 'CLT','08:00:00',307,2074,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-11-20T08:34:17.521Z','2020-12-20T00:51:43.993Z'), ('Rede3144','Desenvolvimento', 'CLT','08:00:00',964,4744,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-04-29T06:06:58.480Z','2021-11-22T11:34:06.245Z'), ('Fatores4557','Desenvolvimento', 'CLT','08:00:00',90,7078,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-09-28T11:21:42.236Z','2020-09-29T20:01:38.904Z'), ('A infraestrutura7814','Desenvolvimento', 'CLT','08:00:00',492,5771,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-07-13T09:50:37.696Z','2020-10-13T15:45:16.817Z'), ('Mobilidade9690','Desenvolvimento', 'CLT','08:00:00',247,9711,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-09-11T06:37:03.679Z','2022-01-11T08:39:59.905Z'), ('Identidade3231','Desenvolvimento', 'CLT','08:00:00',222,9990,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-12-25T07:59:50.043Z','2020-05-02T11:06:42.485Z'), ('Otimização7925','Desenvolvimento', 'CLT','08:00:00',18,4761,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-09-16T04:11:56.998Z','2021-08-10T16:55:20.482Z'), ('Criativo5831','Desenvolvimento', 'CLT','08:00:00',661,9587,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-08-09T21:52:18.326Z','2020-07-08T15:37:23.238Z'), ('Qualidade3607','Desenvolvimento', 'CLT','08:00:00',492,9176,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-04-14T06:29:10.729Z','2020-10-06T12:28:50.099Z'), ('Garantia1866','Desenvolvimento', 'CLT','08:00:00',159,4955,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-01-06T20:03:07.337Z','2020-06-07T16:17:10.615Z'), ('Soluções6615','Desenvolvimento', 'CLT','08:00:00',170,6743,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-09-17T04:39:26.000Z','2020-12-07T08:34:14.094Z'), ('Funcionalidade3491','Desenvolvimento', 'CLT','08:00:00',361,3969,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-10-26T11:18:12.139Z','2020-04-27T23:32:53.458Z'), ('Programa4278','Desenvolvimento', 'CLT','08:00:00',22,4402,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-05-28T10:07:57.306Z','2020-09-02T23:57:44.726Z'), ('Comunicações9328','Desenvolvimento', 'CLT','08:00:00',723,142,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-04-07T10:00:32.542Z','2020-11-30T15:31:16.547Z'), ('Marketing1944','Desenvolvimento', 'CLT','08:00:00',527,5533,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-05-21T15:53:51.809Z','2021-04-28T01:05:05.868Z'), ('Integração6635','Desenvolvimento', 'CLT','08:00:00',875,3815,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-03-21T09:01:23.444Z','2020-07-10T05:14:15.755Z'), ('Métricas5718','Desenvolvimento', 'CLT','08:00:00',996,1128,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-02-16T21:37:10.175Z','2021-05-05T01:44:50.345Z'), ('Pesquisa1489','Desenvolvimento', 'CLT','08:00:00',938,7966,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-01-10T14:49:53.053Z','2021-02-11T05:17:19.813Z'), ('Fatores9907','Desenvolvimento', 'CLT','08:00:00',403,3910,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-07-28T13:04:00.174Z','2021-03-21T14:11:30.050Z'), ('Contas5222','Desenvolvimento', 'CLT','08:00:00',993,8064,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-07-31T09:16:26.823Z','2021-08-08T18:27:29.702Z'), ('Criativo5034','Desenvolvimento', 'CLT','08:00:00',493,9022,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-12-25T23:33:47.737Z','2020-05-11T23:20:15.350Z'), ('Comunicações4348','Desenvolvimento', 'CLT','08:00:00',356,7990,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-12-07T04:58:18.395Z','2021-04-22T15:20:56.689Z'), ('Paradigma8647','Desenvolvimento', 'CLT','08:00:00',263,3225,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-06-19T21:54:40.499Z','2020-08-02T05:35:26.521Z'), ('Otimização3249','Desenvolvimento', 'CLT','08:00:00',516,5646,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-09-05T19:09:11.500Z','2021-09-23T13:08:01.840Z'), ('Identidade1023','Desenvolvimento', 'CLT','08:00:00',403,1246,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-08-11T13:21:01.353Z','2020-10-13T14:20:50.541Z'), ('Branding8888','Desenvolvimento', 'CLT','08:00:00',22,4884,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-09-05T23:23:26.662Z','2020-02-27T18:34:37.953Z'), ('Marca4111','Desenvolvimento', 'CLT','08:00:00',114,198,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-08-23T19:26:07.941Z','2020-05-07T00:35:18.753Z'), ('Pesquisa5846','Desenvolvimento', 'CLT','08:00:00',633,3729,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-11-13T22:59:18.677Z','2020-02-09T02:13:27.927Z'), ('Criativo8779','Desenvolvimento', 'CLT','08:00:00',39,7038,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-11-20T23:30:01.972Z','2020-02-19T04:04:09.215Z'), ('Prestação de contas4367','Desenvolvimento', 'CLT','08:00:00',548,6711,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-01-03T18:49:47.095Z','2020-08-17T00:05:51.017Z'), ('Garantia405','Desenvolvimento', 'CLT','08:00:00',628,7501,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-08-28T10:14:06.627Z','2021-09-19T14:56:09.229Z'), ('Diretivas2557','Desenvolvimento', 'CLT','08:00:00',6,4100,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-04-16T10:20:13.915Z','2020-12-14T12:33:46.777Z'), ('A infraestrutura9481','Desenvolvimento', 'CLT','08:00:00',841,1009,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-09-24T14:46:46.824Z','2020-09-02T21:50:06.296Z'), ('Divisão4595','Desenvolvimento', 'CLT','08:00:00',130,3191,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-01-20T18:06:14.261Z','2021-03-24T02:08:06.493Z'), ('Prestação de contas5019','Desenvolvimento', 'CLT','08:00:00',717,9734,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-05-13T01:42:36.987Z','2021-03-03T00:37:08.296Z'), ('Mobilidade4406','Desenvolvimento', 'CLT','08:00:00',908,7417,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-08-30T12:51:45.108Z','2020-11-24T01:14:52.542Z'), ('Identidade60','Desenvolvimento', 'CLT','08:00:00',667,8774,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-12-09T09:21:56.773Z','2021-08-15T06:06:14.035Z'), ('Marketing5298','Desenvolvimento', 'CLT','08:00:00',54,817,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-05-20T08:23:32.929Z','2021-02-13T15:21:08.557Z'), ('Mercados921','Desenvolvimento', 'CLT','08:00:00',627,1472,'female','N','Brasil','São José dos Campos','Monte Castelo','Vinte e Sete de julho',41,'1',12215100,-23.1850273,-45.8770411,'2019-06-29T06:16:13.330Z','2020-08-24T23:58:27.626Z');
<reponame>CAG9/SQL-Interview-Questions<gh_stars>0 SELECT DISTINCT sub.user_id FROM( SELECT *, LAG(created_at) OVER( PARTITION BY user_id ORDER BY user_id, created_at) as lag_date FROM amazon_transactions ORDER BY user_id, created_at) sub WHERE DATEDIFF(sub.created_at,sub.lag_date) >= 0 AND DATEDIFF(sub.created_at,sub.lag_date) < 7
DROP FUNCTION create_order CASCADE;
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3308 -- Généré le : lun. 01 juin 2020 à 21:16 -- Version du serveur : 5.7.28 -- Version de PHP : 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de données : `new_version` -- -- -------------------------------------------------------- -- -- Structure de la table `classes` -- DROP TABLE IF EXISTS `classes`; CREATE TABLE IF NOT EXISTS `classes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` text COLLATE utf8mb4_unicode_ci NOT NULL, `description` text COLLATE utf8mb4_unicode_ci NOT NULL, `field_id` varchar(4) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `id_filiere` (`field_id`) ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `classes` -- INSERT INTO `classes` (`id`, `nom`, `description`, `field_id`, `created_at`, `updated_at`) VALUES (2, 'Learn html 2', 'Learn html description', 'GC', NULL, '2020-06-01 08:41:33'), (3, 'Programmation C', 'Ce cours sert a prends les et la base principe de ..', 'GI', NULL, NULL), (4, 'Programmation JAVA', 'Ce cours sert a prends les et la base principe de ..', 'GI', NULL, NULL), (5, 'Securiter Réseau', 'Ce cours sert a prends les et la base principe de ...', 'TSI', NULL, NULL), (6, 'Gestion Projet', 'Ce cours sert a prends les et la base principe de ...', 'TM', NULL, NULL); -- -------------------------------------------------------- -- -- Structure de la table `comments` -- DROP TABLE IF EXISTS `comments`; CREATE TABLE IF NOT EXISTS `comments` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `nom` text COLLATE utf8mb4_unicode_ci NOT NULL, `email` text COLLATE utf8mb4_unicode_ci NOT NULL, `opinion` text COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `comments` -- INSERT INTO `comments` (`id`, `nom`, `email`, `opinion`, `created_at`, `updated_at`) VALUES (2, 'ihab ihab', '<EMAIL>', 'Opinion', '2020-06-01 19:13:46', '2020-06-01 19:13:46'), (3, 'ihab ihab', '<EMAIL>', 'opinion 2', '2020-06-01 19:14:01', '2020-06-01 19:14:01'), (4, 'EL KHABBAZ', '<EMAIL>', 'Opinion 3', '2020-06-01 19:14:34', '2020-06-01 19:14:34'); -- -------------------------------------------------------- -- -- Structure de la table `failed_jobs` -- DROP TABLE IF EXISTS `failed_jobs`; CREATE TABLE IF NOT EXISTS `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Structure de la table `fields` -- DROP TABLE IF EXISTS `fields`; CREATE TABLE IF NOT EXISTS `fields` ( `filiere_id` varchar(4) COLLATE utf8mb4_unicode_ci NOT NULL, `filiere` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `filiere_description` text COLLATE utf8mb4_unicode_ci NOT NULL, `departement` text COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`filiere_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `fields` -- INSERT INTO `fields` (`filiere_id`, `filiere`, `filiere_description`, `departement`, `created_at`, `updated_at`) VALUES ('GI', 'GENIE INFORMATIQUE', 'Le développement de l\'informatique, des systèmes d’information et des systèmes de télécommunication élargissent considérablement les domaines d\'application de l\'informatique en renforçant les interactions entre les aspects matériels et logiciels. La filière d’informatique d’EST est une réponse à ces développements.', 'genie informatique', NULL, NULL), ('TM', 'TECHNIQUE DE MANAGEMENT', 'Former des techniciens supérieurs en techniques de management (privées et publiques) disposant de connaissances et compétences appréciables.\r\nFavoriser une meilleure collaboration entre l\'université et les entreprises.\r\nAcquérir des compétences directement opérationnelles liées à la maîtrise technique des emplois ciblés.', 'techniques de management', NULL, NULL), ('TSI', 'TECHNIQUE DE SON ET D IMAGE', 'Cette formation a pour objectif d\'apporter des compétences professionnelles dans le domaine de la création numérique (Images fixes ou animées, sons, vidéos, compositing,...). Les compétences acquises par les lauréats leurs permettent de s\'engager dans des métiers différents.', 'genie informatique', NULL, NULL), ('GIM', 'GENIE INDUSTRIEL ET MAINTENANCE', 'Génie industriel et Maintenance a pour but de former en deux ans des techniciens supérieurs généralistes capables de gérer et d’organiser les opérations de maintenance des installations, pour optimiser la disponibilité des outils de production et de service.', 'genie electrique', NULL, NULL), ('GC', 'GENEIE CIVIL', 'L’enseignement vise à la formation en deux ans de cadres polyvalents participant à la responsabilité de l’étude et de l’exécution des travaux de génie civil:\r\nDans un bureau d’études, ils élaborent, suivant les directives des ingénieurs, les plans, devis, programmes et calculs, tant en ce qui concerne la conception que la préparation des ouvrages.\r\nSur les chantiers, ils ont la responsabilité de l’exécution : conduite des travaux, coordination des corps d’état, etc.\r\nDans les laboratoires d’essais ou de recherche, ils sont chargés de l’organisation, de l’exécution et du dépouillement des programmes d’essais.', 'genie electrique', NULL, NULL), ('IA', 'Inteligence artificiel', 'Filiere de inteligence artificiel', 'genie informatique', NULL, NULL), ('TEST', 'test', 'test test', 'test', NULL, NULL), ('ZE', 'ZERG', 'test test test', 'test', '2020-06-01 13:57:14', '2020-06-01 13:57:14'); -- -------------------------------------------------------- -- -- Structure de la table `files` -- DROP TABLE IF EXISTS `files`; CREATE TABLE IF NOT EXISTS `files` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_filiere` varchar(4) COLLATE utf8mb4_unicode_ci NOT NULL, `code_prof` int(11) NOT NULL, `commantaire` text COLLATE utf8mb4_unicode_ci NOT NULL, `id_cour` int(11) DEFAULT NULL, `type_cour` enum('cour','tp','td','bibliotheque') COLLATE utf8mb4_unicode_ci DEFAULT 'cour', `nbr_telechargement` int(11) DEFAULT '0', `date_ajoute` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `nom_pdf` text COLLATE utf8mb4_unicode_ci NOT NULL, `pdf_lien` text COLLATE utf8mb4_unicode_ci NOT NULL, `titre` text COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `id_filiere` (`id_filiere`), KEY `code_prof` (`code_prof`), KEY `id_cour` (`id_cour`) ) ENGINE=MyISAM AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `files` -- INSERT INTO `files` (`id`, `id_filiere`, `code_prof`, `commantaire`, `id_cour`, `type_cour`, `nbr_telechargement`, `date_ajoute`, `nom_pdf`, `pdf_lien`, `titre`, `created_at`, `updated_at`) VALUES (29, 'tcc', 141, 'n', 45, 'cour', 0, '2020-04-17 06:57:00', '@ReadMe.txt', '../file/tcc/@ReadMe.txt', 'un pdf de x et y ', NULL, NULL), (27, 'tcc', 141, 'tp de macro a rendre', 47, 'tp', 0, '2020-04-17 06:29:42', '@ReadMe.txt', '../file/tcc/@ReadMe.txt', 'TP MACRO', NULL, NULL), (28, 'tcc', 141, 'a rendre', 46, 'td', 0, '2020-04-17 06:45:14', '@ReadMe.txt', '../file/tcc/@ReadMe.txt', 'test ', NULL, NULL), (23, 'tcc', 141, 'chapitre N 1 du Module', 45, 'cour', 0, '2020-04-17 02:10:31', 'VIDEO_10s_hd.mp4', '../file/tcc/VIDEO_10s_hd.mp4', 'Video de cours Module', NULL, NULL), (24, 'tcc', 141, 'TP 1 ', 46, 'tp', 0, '2020-04-17 02:11:43', 'cv.txt', '../file/tcc/cv.txt', 'TP1', NULL, NULL), (25, 'tcc', 141, 'A rendre avant le 20/04/2020 a 12:00 ', 45, 'td', 0, '2020-04-17 02:15:18', 'HTML-partie1.pdf', '../file/tcc/HTML-partie1.pdf', 'TD 3 ', NULL, NULL), (21, 'bibl', 6, 'test biblio', -1, 'bibliotheque', 1, '2020-04-13 11:18:37', '@ReadMe.txt', '../file/bibliotheque/@ReadMe.txt', 'Exemple PFE', NULL, NULL), (32, 'ia', 28, 'grrhthhh', NULL, 'td', 0, '2020-06-01 00:32:30', 'file.sql', 'public/file/ia/file.sql', 'langage C', '2020-05-31 22:32:30', '2020-05-31 22:32:30'); -- -------------------------------------------------------- -- -- Structure de la table `messages` -- DROP TABLE IF EXISTS `messages`; CREATE TABLE IF NOT EXISTS `messages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `emetteur_id` int(11) NOT NULL, `emetteur_nom` text COLLATE utf8mb4_unicode_ci NOT NULL, `emetteur_email` text COLLATE utf8mb4_unicode_ci NOT NULL, `emetteur_telephone` int(11) NOT NULL, `emetteur_type` enum('admin','professeur','etudiant','visiteur') COLLATE utf8mb4_unicode_ci DEFAULT NULL, `message` text COLLATE utf8mb4_unicode_ci NOT NULL, `etat` enum('0','1') COLLATE utf8mb4_unicode_ci DEFAULT '0', `date_env` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `recepteur_id` int(11) NOT NULL, `recepteur_email` text COLLATE utf8mb4_unicode_ci NOT NULL, `recepteur_type` enum('admin','professeur','etudiant','visiteur') COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `messages` -- INSERT INTO `messages` (`id`, `emetteur_id`, `emetteur_nom`, `emetteur_email`, `emetteur_telephone`, `emetteur_type`, `message`, `etat`, `date_env`, `recepteur_id`, `recepteur_email`, `recepteur_type`, `created_at`, `updated_at`) VALUES (1, 1, 'admin', '<EMAIL>', 548615, 'admin', 'Bonjour Mr.Hassan , merci de passe a la Direction avant le 20/04/2020', '0', '2020-05-18 07:48:00', 28, '<EMAIL>', 'professeur', NULL, NULL), (6, -1, 'admin', '<EMAIL>', 600000001, 'admin', 'test de Réponse a user id 28', '0', '2020-06-01 09:25:55', 28, '<EMAIL>', 'professeur', '2020-06-01 07:25:55', '2020-06-01 08:19:58'), (3, 7, '<NAME>', '<EMAIL>', 677884433, NULL, 'ggg', '0', '2020-05-26 08:54:52', 1, '1', NULL, '2020-05-26 06:54:52', '2020-05-26 06:54:52'), (4, 7, '<NAME>', '<EMAIL>', 677884433, NULL, 'ydtjkuk', '0', '2020-05-26 08:57:33', 1, '<EMAIL>', NULL, '2020-05-26 06:57:33', '2020-05-26 06:57:33'), (7, -1, 'ihab ihab', '<EMAIL>', 649566183, 'visiteur', 'from visiteur ihab ihab', '0', '2020-06-01 17:13:46', -1, '<EMAIL>', 'admin', '2020-06-01 15:13:46', '2020-06-01 15:13:46'), (8, 28, 'ihabEEEE ihab', '<EMAIL>', 649566183, 'professeur', 'test from id 28 user test', '0', '2020-06-01 17:14:35', -1, '<EMAIL>', 'admin', '2020-06-01 15:14:35', '2020-06-01 15:14:35'), (9, -1, 'admin', '<EMAIL>', 600000001, 'admin', 'reponce', '0', '2020-06-01 17:18:30', 28, '<EMAIL>', 'professeur', '2020-06-01 15:18:30', '2020-06-01 15:18:30'), (10, -1, 'admin', '<EMAIL>', 600000001, 'admin', 'hhhhhhhhhhhhhhhhhhhhhhhh', '0', '2020-06-01 17:20:57', 28, '<EMAIL>', 'professeur', '2020-06-01 15:20:57', '2020-06-01 15:20:57'); -- -------------------------------------------------------- -- -- Structure de la table `migrations` -- DROP TABLE IF EXISTS `migrations`; CREATE TABLE IF NOT EXISTS `migrations` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2020_05_23_021345_create_classes_table', 1), (5, '2020_05_23_021536_create_fields_table', 1), (6, '2020_05_23_021653_create_files_table', 1), (7, '2020_05_23_021807_create_messages_table', 1), (8, '2020_05_23_021906_create_questions_table', 1), (9, '2020_05_23_022015_create_quizzes_table', 1), (10, '2020_05_23_022112_create_requests_table', 1), (11, '2020_05_23_022246_create_results_table', 1), (12, '2020_05_28_161633_laratrust_setup_tables', 1), (13, '2020_06_01_202620_create_comments_table', 2); -- -------------------------------------------------------- -- -- Structure de la table `password_resets` -- DROP TABLE IF EXISTS `password_resets`; CREATE TABLE IF NOT EXISTS `password_resets` ( `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, KEY `password_resets_email_index` (`email`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Structure de la table `permissions` -- DROP TABLE IF EXISTS `permissions`; CREATE TABLE IF NOT EXISTS `permissions` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `display_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `permissions_name_unique` (`name`) ) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `permissions` -- INSERT INTO `permissions` (`id`, `name`, `display_name`, `description`, `created_at`, `updated_at`) VALUES (1, 'create-users', 'Create Users', 'Create Users', '2020-05-28 10:27:31', '2020-05-28 10:27:31'), (2, 'read-users', 'Read Users', 'Read Users', '2020-05-28 10:27:31', '2020-05-28 10:27:31'), (3, 'update-users', 'Update Users', 'Update Users', '2020-05-28 10:27:31', '2020-05-28 10:27:31'), (4, 'delete-users', 'Delete Users', 'Delete Users', '2020-05-28 10:27:32', '2020-05-28 10:27:32'), (5, 'create-profile', 'Create Profile', 'Create Profile', '2020-05-28 10:27:32', '2020-05-28 10:27:32'), (6, 'read-profile', 'Read Profile', 'Read Profile', '2020-05-28 10:27:32', '2020-05-28 10:27:32'), (7, 'update-profile', 'Update Profile', 'Update Profile', '2020-05-28 10:27:32', '2020-05-28 10:27:32'), (8, 'delete-profile', 'Delete Profile', 'Delete Profile', '2020-05-28 10:27:32', '2020-05-28 10:27:32'), (9, 'create-module_1_name', 'Create Module_1_name', 'Create Module_1_name', '2020-05-28 10:27:32', '2020-05-28 10:27:32'), (10, 'read-module_1_name', 'Read Module_1_name', 'Read Module_1_name', '2020-05-28 10:27:32', '2020-05-28 10:27:32'), (11, 'update-module_1_name', 'Update Module_1_name', 'Update Module_1_name', '2020-05-28 10:27:32', '2020-05-28 10:27:32'), (12, 'delete-module_1_name', 'Delete Module_1_name', 'Delete Module_1_name', '2020-05-28 10:27:32', '2020-05-28 10:27:32'); -- -------------------------------------------------------- -- -- Structure de la table `permission_role` -- DROP TABLE IF EXISTS `permission_role`; CREATE TABLE IF NOT EXISTS `permission_role` ( `permission_id` int(10) UNSIGNED NOT NULL, `role_id` int(10) UNSIGNED NOT NULL, PRIMARY KEY (`permission_id`,`role_id`), KEY `permission_role_role_id_foreign` (`role_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `permission_role` -- INSERT INTO `permission_role` (`permission_id`, `role_id`) VALUES (1, 1), (2, 1), (3, 1), (4, 1), (5, 1), (6, 1), (6, 2), (7, 1), (7, 2), (8, 1), (9, 3), (10, 3), (11, 3), (12, 3); -- -------------------------------------------------------- -- -- Structure de la table `permission_user` -- DROP TABLE IF EXISTS `permission_user`; CREATE TABLE IF NOT EXISTS `permission_user` ( `permission_id` int(10) UNSIGNED NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `user_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`user_id`,`permission_id`,`user_type`), KEY `permission_user_permission_id_foreign` (`permission_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Structure de la table `questions` -- DROP TABLE IF EXISTS `questions`; CREATE TABLE IF NOT EXISTS `questions` ( `id_quiz` int(11) NOT NULL, `n_question` int(11) NOT NULL, `question` text COLLATE utf8mb4_unicode_ci NOT NULL, `rep_correcte` text COLLATE utf8mb4_unicode_ci NOT NULL, `rep_2` text COLLATE utf8mb4_unicode_ci NOT NULL, `rep_3` text COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, KEY `id_quiz` (`id_quiz`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `questions` -- INSERT INTO `questions` (`id_quiz`, `n_question`, `question`, `rep_correcte`, `rep_2`, `rep_3`, `created_at`, `updated_at`) VALUES (1, 1, 'Mon nom est', 'aiman', 'hassan', 'ayoub', NULL, NULL), (1, 2, 'Mon age est', '20', '100', '80', NULL, NULL), (1, 3, 'Mon prenom est', 'elbouayadi', 'asraoui', 'ahmadi', NULL, NULL); -- -------------------------------------------------------- -- -- Structure de la table `quizzes` -- DROP TABLE IF EXISTS `quizzes`; CREATE TABLE IF NOT EXISTS `quizzes` ( `id_quiz` int(11) NOT NULL AUTO_INCREMENT, `nom_quiz` text COLLATE utf8mb4_unicode_ci NOT NULL, `id_prof` int(11) NOT NULL, `id_filiere` varchar(4) COLLATE utf8mb4_unicode_ci NOT NULL, `dernier_delai` datetime DEFAULT NULL, `date_pub` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id_quiz`), KEY `id_prof` (`id_prof`), KEY `id_filiere` (`id_filiere`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `quizzes` -- INSERT INTO `quizzes` (`id_quiz`, `nom_quiz`, `id_prof`, `id_filiere`, `dernier_delai`, `date_pub`, `created_at`, `updated_at`) VALUES (1, 'quiz de test', 11, 'GI', NULL, '2020-06-17 16:00:00', NULL, NULL), (2, 'quiz de Semestre', 3, 'TCC', NULL, '2020-07-08 16:00:00', NULL, NULL); -- -------------------------------------------------------- -- -- Structure de la table `requests` -- DROP TABLE IF EXISTS `requests`; CREATE TABLE IF NOT EXISTS `requests` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL, `prenom` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL, `date_naiss` date NOT NULL, `filiere` varchar(4) COLLATE utf8mb4_unicode_ci NOT NULL, `num_tele` int(11) NOT NULL, `email` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL, `password` text COLLATE utf8mb4_unicode_ci NOT NULL, `type_user` enum('etudiant','professeur') COLLATE utf8mb4_unicode_ci NOT NULL, `etat` enum('-1','0','1') COLLATE utf8mb4_unicode_ci NOT NULL, `adresse` text COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `filiere` (`filiere`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Structure de la table `results` -- DROP TABLE IF EXISTS `results`; CREATE TABLE IF NOT EXISTS `results` ( `id_quiz` int(11) NOT NULL, `id_etudiant` int(11) NOT NULL, `resultat` int(11) NOT NULL, `quesiont_corrcete` text COLLATE utf8mb4_unicode_ci, `question_incorrecte` text COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, KEY `id_quiz` (`id_quiz`), KEY `id_etudiant` (`id_etudiant`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `results` -- INSERT INTO `results` (`id_quiz`, `id_etudiant`, `resultat`, `quesiont_corrcete`, `question_incorrecte`, `created_at`, `updated_at`) VALUES (1, 1, 2, '1', '1', NULL, NULL), (1, 5, 3, '1', '1', NULL, NULL); -- -------------------------------------------------------- -- -- Structure de la table `roles` -- DROP TABLE IF EXISTS `roles`; CREATE TABLE IF NOT EXISTS `roles` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `display_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `roles_name_unique` (`name`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `roles` -- INSERT INTO `roles` (`id`, `name`, `display_name`, `description`, `created_at`, `updated_at`) VALUES (1, 'administrator', 'Administrator', 'Administrator', '2020-05-28 10:27:31', '2020-05-28 10:27:31'), (2, 'user', 'User', 'User', '2020-05-28 10:27:32', '2020-05-28 10:27:32'), (3, 'role_name', 'Role Name', 'Role Name', '2020-05-28 10:27:32', '2020-05-28 10:27:32'); -- -------------------------------------------------------- -- -- Structure de la table `role_user` -- DROP TABLE IF EXISTS `role_user`; CREATE TABLE IF NOT EXISTS `role_user` ( `role_id` int(10) UNSIGNED NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `user_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`user_id`,`role_id`,`user_type`), KEY `role_user_role_id_foreign` (`role_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `role_user` -- INSERT INTO `role_user` (`role_id`, `user_id`, `user_type`) VALUES (1, 8, 'App\\User'), (1, 9, 'App\\User'), (2, 10, 'App\\User'), (2, 11, 'App\\User'), (2, 20, 'App\\User'), (2, 23, 'App\\User'), (2, 24, 'App\\User'), (2, 25, 'App\\User'), (2, 26, 'App\\User'), (2, 27, 'App\\User'), (2, 28, 'App\\User'), (2, 29, 'App\\User'); -- -------------------------------------------------------- -- -- Structure de la table `users` -- DROP TABLE IF EXISTS `users`; CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom_user` text COLLATE utf8mb4_unicode_ci NOT NULL, `prenom_user` text COLLATE utf8mb4_unicode_ci NOT NULL, `date_naiss_user` date NOT NULL, `num_tele_user` text COLLATE utf8mb4_unicode_ci NOT NULL, `filiere_user` varchar(6) COLLATE utf8mb4_unicode_ci NOT NULL, `email` text COLLATE utf8mb4_unicode_ci NOT NULL, `password` text COLLATE utf8mb4_unicode_ci NOT NULL, `adresse_user` text COLLATE utf8mb4_unicode_ci NOT NULL, `type_user` enum('etudiant','professeur','admin') COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `filiere_user` (`filiere_user`) ) ENGINE=MyISAM AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `users` -- INSERT INTO `users` (`id`, `nom_user`, `prenom_user`, `date_naiss_user`, `num_tele_user`, `filiere_user`, `email`, `password`, `adresse_user`, `type_user`, `created_at`, `updated_at`) VALUES (1, '<NAME>', 'Mohamed', '2020-06-13', '0649566183', 'gi', '<EMAIL>', <PASSWORD>', 'ANASSI', 'admin', '2020-06-01 05:17:00', '2020-06-01 05:17:00'), (2, 'az', 'az', '2020-06-04', '2146', 'gc', '<EMAIL>', <PASSWORD>xw1oH/8.Fry', 'fzef', 'professeur', '2020-06-01 05:18:32', '2020-06-01 05:18:32'), (11, 'RHATTOY', 'Ahmed', '2020-05-03', '0505678439', 'gi', '<EMAIL>', '1234567890', 'EST MEKNES', 'professeur', '2020-05-28 10:45:37', '2020-05-31 16:04:05'), (20, 'Lahmmer', 'lahmer', '2020-05-10', '0675487564', 'gc', '<EMAIL>', <PASSWORD>', 'EST MEKNES', 'professeur', '2020-05-31 16:16:32', '2020-05-31 16:19:45'), (10, 'LAHBILII', 'salma', '2020-05-07', '0677853452', 'tm', '<EMAIL>', <PASSWORD>', 'MARJAN 3 MEKNES', 'etudiant', '2020-05-28 10:44:08', '2020-05-31 19:26:04'), (8, 'EL KHABBAZ', 'Mohammmed', '2000-09-24', '0649566183', 'gi', '<EMAIL>', '1234567890', '247 LOT RIAD ISMAILIA TRANCHE E MEKNES', 'admin', '2020-05-28 10:33:41', '2020-05-31 14:00:41'), (9, 'EL BOU3AYDI', 'Ayman', '2020-04-30', '0600000001', 'gi', '<EMAIL>', '$2y$10$rBj9StQAmgnrNDURDVj0GeKTZAErgvB2jhHrCz4DlMIAQM4d9YiYO', 'AL BASSATINE MEKNES', 'admin', '2020-05-28 10:35:26', '2020-05-31 16:27:30'), (22, 'ihab', 'ihab', '2020-05-02', '0649566183', 'gi', '<EMAIL>', '$2y$10$GRFCa926R4nRgFItLm8kW.b17qCHfL8LTaUOVMvANhQgohqijbgx.', 'hay rahma 3567', 'etudiant', '2020-05-31 16:45:20', '2020-05-31 16:45:20'), (23, 'ihab', 'ihab', '2020-05-09', '0649566183', 'tm', '<EMAIL>', '$2y$10$aFzGDa.8oINzvc6zCJ9XE.GCJOsgMxvTGkTYKq/dyUCBrfjqaI3Q6', 'hay rahma 3567', 'professeur', '2020-05-31 16:50:34', '2020-05-31 16:50:34'), (24, 'ihab', 'ihab', '2020-05-02', '0649566183', 'tm', '<EMAIL>', '$2y$10$cxLvfVs.YFep4SjzPMryc.yh6hAj459NSBcY6wigiItn5rl.1.oEe', 'hay rahma 3567', 'etudiant', '2020-05-31 16:55:55', '2020-05-31 16:55:55'), (25, 'ihab', 'ihab', '2020-05-10', '0649566183', 'gc', '<EMAIL>', '$2y$10$E75az9wBJTue1Wh4XsvHfewEkxNUJUswp6Ij7bp1P5xbCD5pb0doa', 'hay rahma 3567', 'professeur', '2020-05-31 16:59:34', '2020-05-31 16:59:34'), (26, 'ihab', 'ihab', '2020-05-09', '0649566183', 'tm', '<EMAIL>', '$2y$10$1TvGZFJBQLVHy0oHsXSUFeDntUeW3c3vSLrnbqyov6CnxJJzrelCy', 'hay rahma 3567', 'professeur', '2020-05-31 17:07:28', '2020-05-31 17:07:28'), (27, 'ihab', 'ihab', '2020-05-02', '0649566183', 'tm', '<EMAIL>', '$2y$10$jfmXypLw1c5o8iKpUVFiC.hwc/gkdE9QXE9G9HHSCOgC/wmDG6HnC', 'hay rahma 3567', 'etudiant', '2020-05-31 17:13:17', '2020-05-31 17:13:17'), (28, 'ihabEEEE', 'ihab', '2020-05-09', '0649566183', 'tm', '<EMAIL>', '$2y$10$AKahcuY5cvE1S0qRmO7Gq.TPhnHACPFxa6bqOhIhqmK4j87Ir1zea', 'hay rahma 3567', 'professeur', '2020-05-31 17:22:14', '2020-05-31 17:25:57'), (29, 'ihab', 'ihab', '2020-06-13', '0649566183', 'IA', '<EMAIL>', '$2y$10$pDi9w2CEQMNKUDhn.cLBZ.MxtPsWKkB2GIqef1Wvh7VuR/FOqjjv.', 'hay rahma 3567', 'etudiant', '2020-05-31 19:57:58', '2020-05-31 19:57:58'); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>examples/UsingMariaDB/mydb.sql -- Adminer 4.7.1 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; SET NAMES utf8mb4; CREATE DATABASE `mydb` /*!40100 DEFAULT CHARACTER SET utf8mb4 */; USE `mydb`; DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(512) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; INSERT INTO `user` (`id`, `name`) VALUES (1, 'Peter'), (2, '小云'), (3, '<NAME>'); -- 2019-09-29 04:02:16
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 06, 2021 at 06:14 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `job_app` -- -- -------------------------------------------------------- -- -- Table structure for table `child_details` -- CREATE TABLE `child_details` ( `id` bigint(20) UNSIGNED NOT NULL, `user_id` int(11) NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `father_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `mother_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `child_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `aadhar` bigint(20) NOT NULL, `birth_date` date NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `uuid` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `father_details` -- CREATE TABLE `father_details` ( `id` bigint(20) UNSIGNED NOT NULL, `user_id` int(11) NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `father_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `mother_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `child_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `aadhar` bigint(20) NOT NULL, `birth_date` date NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `jobs` -- CREATE TABLE `jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `gender` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `contact` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `ssc` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `hsc` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `graduation` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `prefered_location` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `expected_ctc` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `current_ctc` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `notice_period` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `master_degree` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `languages` -- CREATE TABLE `languages` ( `id` bigint(20) UNSIGNED NOT NULL, `job_id` int(11) NOT NULL, `language` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `read` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `write` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `speak` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `languages` -- INSERT INTO `languages` (`id`, `job_id`, `language`, `read`, `write`, `speak`, `created_at`, `updated_at`) VALUES (1, 6, 'hindi', '1', '1', '0', NULL, NULL), (2, 7, 'hindi', '1', '1', '0', NULL, NULL), (3, 7, 'english', '1', '0', '1', NULL, NULL), (4, 7, 'gujarati', '1', '1', '0', NULL, NULL), (5, 8, 'hindi', '1', '1', '0', NULL, NULL), (6, 8, 'english', '1', '0', '1', NULL, NULL), (7, 8, 'gujarati', '1', '1', '0', NULL, NULL), (8, 9, 'hindi', '1', '0', '1', NULL, NULL), (9, 9, 'english', '1', '1', '0', NULL, NULL), (10, 9, 'gujarati', '1', '1', '0', NULL, NULL), (11, 10, 'hindi', '1', '1', '0', NULL, NULL), (12, 10, 'english', '1', '0', '1', NULL, NULL), (13, 10, 'gujarati', '1', '1', '0', NULL, NULL), (14, 11, 'hindi', '1', '0', '0', NULL, NULL), (15, 11, 'english', '1', '0', '0', NULL, NULL), (16, 11, 'gujarati', '1', '0', '0', NULL, NULL), (17, 12, 'hindi', '1', '0', '0', NULL, NULL), (18, 12, 'english', '1', '0', '0', NULL, NULL), (19, 12, 'gujarati', '1', '0', '0', NULL, NULL), (20, 13, 'hindi', '1', '0', '0', NULL, NULL), (21, 13, 'english', '1', '0', '0', NULL, NULL), (22, 13, 'gujarati', '1', '0', '0', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2014_10_12_200000_add_two_factor_columns_to_users_table', 1), (4, '2019_08_19_000000_create_failed_jobs_table', 1), (5, '2019_12_14_000001_create_personal_access_tokens_table', 1), (6, '2021_01_29_031927_create_father_details_table', 1), (7, '2021_01_29_032744_create_mother_details_table', 1), (8, '2021_01_29_040036_create_child_details_table', 1), (9, '2021_02_05_065333_create_sessions_table', 1), (10, '2021_02_05_095829_create_work_experience_table', 2), (11, '2021_02_05_103623_create_languages_table', 3), (12, '2021_02_05_105747_create_jobs_table', 3), (13, '2021_02_05_111035_create_experience_table', 4); -- -------------------------------------------------------- -- -- Table structure for table `mother_details` -- CREATE TABLE `mother_details` ( `id` bigint(20) UNSIGNED NOT NULL, `user_id` int(11) NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `father_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `mother_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `child_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `aadhar` bigint(20) NOT NULL, `birth_date` date NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `personal_access_tokens` -- CREATE TABLE `personal_access_tokens` ( `id` bigint(20) UNSIGNED NOT NULL, `tokenable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `tokenable_id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, `abilities` text COLLATE utf8mb4_unicode_ci, `last_used_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `sessions` -- CREATE TABLE `sessions` ( `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `user_id` bigint(20) UNSIGNED DEFAULT NULL, `ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `user_agent` text COLLATE utf8mb4_unicode_ci, `payload` text COLLATE utf8mb4_unicode_ci NOT NULL, `last_activity` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `sessions` -- INSERT INTO `sessions` (`id`, `user_id`, `ip_address`, `user_agent`, `payload`, `last_activity`) VALUES ('2EajkcqoRw6TYsZLFbBhNw59a8d3Qgrjnlm0m3Dj', 1, '::1', 'Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36', 'YTo2OntzOjM6InVybCI7YToxOntzOjg6ImludGVuZGVkIjtzOjQyOiJodHRwOi8vbG9jYWxob3N0L0pvYkFwcGxpY2F0aW9uL3B1YmxpYy9qb2IiO31zOjY6Il9mbGFzaCI7YToyOntzOjM6Im9sZCI7YTowOnt9czozOiJuZXciO2E6MDp7fX1zOjY6Il90b2tlbiI7czo0MDoiQW5xeXE1ZGZiYndlcXZ6NWRtUEJYdE9XbmFXak9PVXlpbFBnVHRoSCI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6NDI6Imh0dHA6Ly9sb2NhbGhvc3QvSm9iQXBwbGljYXRpb24vcHVibGljL2pvYiI7fXM6NTA6ImxvZ2luX3dlYl81OWJhMzZhZGRjMmIyZjk0MDE1ODBmMDE0YzdmNThlYTRlMzA5ODlkIjtpOjE7czoxNzoicGFzc3dvcmRfaGFzaF93ZWIiO3M6NjA6IiQyeSQxMCQyUkF3c3lvTXpLbGV1aWsyVHM2ZUh1cG1OMjZEQ0QudHdDOFdmeVZUQXRtRjZnTWdPWHVNQyI7fQ==', 1612588411); -- -------------------------------------------------------- -- -- Table structure for table `technical_experience` -- CREATE TABLE `technical_experience` ( `id` bigint(20) UNSIGNED NOT NULL, `job_id` int(11) NOT NULL, `technology_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `experience` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `two_factor_secret` text COLLATE utf8mb4_unicode_ci, `two_factor_recovery_codes` text COLLATE utf8mb4_unicode_ci, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `current_team_id` bigint(20) UNSIGNED DEFAULT NULL, `profile_photo_path` text COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `two_factor_secret`, `two_factor_recovery_codes`, `remember_token`, `current_team_id`, `profile_photo_path`, `created_at`, `updated_at`) VALUES (1, 'admin', '<EMAIL>', NULL, '$2y$10$2RAwsyoMzKleuik2Ts6eHupmN26DCD.twC8WfyVTAtmF6gMgOXuMC', NULL, NULL, NULL, NULL, NULL, '2021-02-06 13:13:24', '2021-02-06 13:13:24'); -- -------------------------------------------------------- -- -- Table structure for table `work_experience` -- CREATE TABLE `work_experience` ( `id` bigint(20) UNSIGNED NOT NULL, `job_id` int(11) NOT NULL, `company_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `start_date` date NOT NULL, `end_date` date NOT NULL, `sr_no` int(4) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Indexes for dumped tables -- -- -- Indexes for table `child_details` -- ALTER TABLE `child_details` ADD PRIMARY KEY (`id`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`); -- -- Indexes for table `father_details` -- ALTER TABLE `father_details` ADD PRIMARY KEY (`id`); -- -- Indexes for table `jobs` -- ALTER TABLE `jobs` ADD PRIMARY KEY (`id`); -- -- Indexes for table `languages` -- ALTER TABLE `languages` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `mother_details` -- ALTER TABLE `mother_details` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`), ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`); -- -- Indexes for table `sessions` -- ALTER TABLE `sessions` ADD PRIMARY KEY (`id`), ADD KEY `sessions_user_id_index` (`user_id`), ADD KEY `sessions_last_activity_index` (`last_activity`); -- -- Indexes for table `technical_experience` -- ALTER TABLE `technical_experience` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- Indexes for table `work_experience` -- ALTER TABLE `work_experience` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `child_details` -- ALTER TABLE `child_details` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `father_details` -- ALTER TABLE `father_details` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `jobs` -- ALTER TABLE `jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `languages` -- ALTER TABLE `languages` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `mother_details` -- ALTER TABLE `mother_details` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `technical_experience` -- ALTER TABLE `technical_experience` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `work_experience` -- ALTER TABLE `work_experience` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>DonaldLouch/website /* Warnings: - You are about to drop the column `tagLine` on the `BlogPosts` table. All the data in the column will be lost. */ -- AlterTable ALTER TABLE `BlogPosts` DROP COLUMN `tagLine`, ADD COLUMN `headingText` VARCHAR(300) NULL;
SELECT `deposit_group` FROM `wizzard_deposits` GROUP BY `deposit_group` ORDER BY AVG(`magic_wand_size`) ASC LIMIT 1;
<reponame>rizkyraf8/projectweb2-ali<filename>db/db_project2.sql -- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 23 Jul 2020 pada 05.34 -- Versi server: 10.1.32-MariaDB -- Versi PHP: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `db_project2` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `data_cuti` -- CREATE TABLE `data_cuti` ( `id_cuti` int(5) NOT NULL, `nik` int(6) NOT NULL, `start_date` date NOT NULL, `end_date` date NOT NULL, `jenis_cuti` varchar(20) NOT NULL, `jml_cuti` varchar(2) NOT NULL, `alasan` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `data_cuti` -- INSERT INTO `data_cuti` (`id_cuti`, `nik`, `start_date`, `end_date`, `jenis_cuti`, `jml_cuti`, `alasan`) VALUES (3, 99693, '2020-07-10', '2020-07-10', 'Cuti Tahunan', '1', 'Cuti'), (4, 99693, '2020-06-01', '2020-06-01', 'Cuti Tahunan', '1', 'Ambil Cuti'), (5, 99693, '2020-07-21', '2020-07-21', 'Cuti Dadakan', '1', 'Cuti dadakan'), (6, 99693, '2020-07-30', '2020-07-31', 'Cuti Tahunan', '2', 'Cuti Liburan'); -- -------------------------------------------------------- -- -- Struktur dari tabel `data_karyawan` -- CREATE TABLE `data_karyawan` ( `nik` int(6) NOT NULL, `nama` varchar(100) NOT NULL, `gender` varchar(10) NOT NULL, `tmpt_lahir` varchar(50) NOT NULL, `tgl_lahir` date NOT NULL, `no_ktp` varchar(50) NOT NULL, `email` varchar(100) NOT NULL, `jabatan` varchar(50) NOT NULL, `start_kontrak` date NOT NULL, `end_kontrak` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `data_karyawan` -- INSERT INTO `data_karyawan` (`nik`, `nama`, `gender`, `tmpt_lahir`, `tgl_lahir`, `no_ktp`, `email`, `jabatan`, `start_kontrak`, `end_kontrak`) VALUES (99693, '<NAME>', 'Pria', 'Bekasi', '1996-09-25', '32752509960005', '<EMAIL>', 'Staff IT', '2020-01-01', '2021-01-01'), (99694, '<NAME>', 'Pria', 'Bekasi', '2002-12-25', '327525122002001', '<EMAIL>', 'Officer 1', '2020-01-01', '2020-12-31'); -- -------------------------------------------------------- -- -- Struktur dari tabel `data_presensi` -- CREATE TABLE `data_presensi` ( `id_presensi` int(5) NOT NULL, `nik` int(6) NOT NULL, `tanggal` date NOT NULL, `jam_login` time NOT NULL, `jam_logout` time NOT NULL, `ip_addr` varchar(25) NOT NULL, `tipe_presensi` varchar(10) NOT NULL, `remark` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `data_presensi` -- INSERT INTO `data_presensi` (`id_presensi`, `nik`, `tanggal`, `jam_login`, `jam_logout`, `ip_addr`, `tipe_presensi`, `remark`) VALUES (1, 99693, '2020-07-04', '08:00:00', '17:00:00', '0.0.0.0', '1', 'Jatiasih'), (2, 99693, '2020-07-20', '19:32:41', '19:32:50', '192.168.127.12', 'WFH', 'Kemayoran'), (3, 99693, '2020-07-21', '10:50:19', '17:22:41', '192.168.3.11', 'WFH', 'Jatiasih'); -- -------------------------------------------------------- -- -- Struktur dari tabel `data_sakit` -- CREATE TABLE `data_sakit` ( `id_sakit` int(5) NOT NULL, `nik` int(6) NOT NULL, `start_date` date NOT NULL, `end_date` date NOT NULL, `jml_hari_sakit` int(2) NOT NULL, `alasan` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `data_sakit` -- INSERT INTO `data_sakit` (`id_sakit`, `nik`, `start_date`, `end_date`, `jml_hari_sakit`, `alasan`) VALUES (1, 99693, '2020-07-01', '2020-07-01', 1, 'Sakit maag'), (2, 99693, '2020-07-04', '2020-07-04', 1, 'Sakit Hati'), (3, 99693, '2020-07-15', '2020-07-15', 1, 'Sakit Asam Lambung'), (4, 99693, '2020-07-24', '2020-07-24', 1, 'Sakit Demam'); -- -------------------------------------------------------- -- -- Struktur dari tabel `user_login` -- CREATE TABLE `user_login` ( `id` int(4) NOT NULL, `nik` int(6) NOT NULL, `password` varchar(100) NOT NULL, `level` varchar(25) NOT NULL, `last_login` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `user_login` -- INSERT INTO `user_login` (`id`, `nik`, `password`, `level`, `last_login`) VALUES (1, 99693, '<PASSWORD>', 'Administrator', '2020-07-23 10:27:19'), (5, 99694, '<PASSWORD>b1fb2f489e5d34bec60873564479', 'Karyawan', '2020-07-21 11:25:26'); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `data_cuti` -- ALTER TABLE `data_cuti` ADD PRIMARY KEY (`id_cuti`), ADD KEY `nik_FK` (`nik`) USING BTREE; -- -- Indeks untuk tabel `data_karyawan` -- ALTER TABLE `data_karyawan` ADD PRIMARY KEY (`nik`); -- -- Indeks untuk tabel `data_presensi` -- ALTER TABLE `data_presensi` ADD PRIMARY KEY (`id_presensi`), ADD KEY `nik_FK` (`nik`) USING BTREE; -- -- Indeks untuk tabel `data_sakit` -- ALTER TABLE `data_sakit` ADD PRIMARY KEY (`id_sakit`), ADD KEY `nik_FK` (`nik`) USING BTREE; -- -- Indeks untuk tabel `user_login` -- ALTER TABLE `user_login` ADD PRIMARY KEY (`id`), ADD KEY `fk_nik` (`nik`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `data_cuti` -- ALTER TABLE `data_cuti` MODIFY `id_cuti` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT untuk tabel `data_presensi` -- ALTER TABLE `data_presensi` MODIFY `id_presensi` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT untuk tabel `data_sakit` -- ALTER TABLE `data_sakit` MODIFY `id_sakit` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT untuk tabel `user_login` -- ALTER TABLE `user_login` MODIFY `id` int(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables) -- -- -- Ketidakleluasaan untuk tabel `data_cuti` -- ALTER TABLE `data_cuti` ADD CONSTRAINT `data_cuti_ibfk_1` FOREIGN KEY (`nik`) REFERENCES `data_karyawan` (`nik`); -- -- Ketidakleluasaan untuk tabel `data_presensi` -- ALTER TABLE `data_presensi` ADD CONSTRAINT `nik_FK1` FOREIGN KEY (`nik`) REFERENCES `data_karyawan` (`nik`); -- -- Ketidakleluasaan untuk tabel `user_login` -- ALTER TABLE `user_login` ADD CONSTRAINT `fk_nik` FOREIGN KEY (`nik`) REFERENCES `data_karyawan` (`nik`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>Database/dbo.Database - Analysis - Space - Indexes.sql --================================================================================================= -- Output information about the space used by the indexes in this database. --================================================================================================= SET ROWCOUNT 0 SET NOCOUNT ON DECLARE @ServiceStart DATETIME IF EXISTS(SELECT * FROM fn_my_permissions (NULL, 'DATABASE')WHERE permission_name = 'VIEW SERVER STATE') BEGIN SET @ServiceStart = (SELECT TOP 1 sqlserver_start_time FROM sys.dm_os_sys_info) END SELECT * FROM ( SELECT ParentName = OBJECT_NAME(i.[object_id]) ,IndexName = i.[name] ,[Type] = i.type_desc ,[RowCount] = REPLACE(CONVERT(VARCHAR(29), CONVERT(MONEY, SUM(p.[rows])), 1), '.00', '') ,[PageCount] = SUM(a.total_pages) ,PagesUsed = SUM(a.used_pages) ,[FillFactor] = AVG(i.fill_factor) ,TotalMB = CONVERT(DECIMAL(11, 2), (CONVERT(DECIMAL(11, 2), (SUM(a.total_pages) * 8)) / CONVERT(DECIMAL(11, 2), 1024))) ,UsedMB = CONVERT(DECIMAL(11, 2), (CONVERT(DECIMAL(11, 2), (SUM(a.used_pages) * 8)) / CONVERT(DECIMAL(11, 2), 1024))) ,FreeMB = CONVERT(DECIMAL(11, 2), (CONVERT(DECIMAL(11, 2), (SUM(a.total_pages) * 8)) / CONVERT(DECIMAL(11, 2), 1024))) - CONVERT(DECIMAL(11, 2), (CONVERT(DECIMAL(11, 2), (SUM(a.used_pages) * 8)) / CONVERT(DECIMAL(11, 2), 1024))) ,UserSeeks = SUM(CASE WHEN ius.user_seeks IS NULL THEN 0 ELSE ius.user_seeks END) ,UserScans = SUM(CASE WHEN ius.user_scans IS NULL THEN 0 ELSE ius.user_scans END) ,UserLookups = SUM(CASE WHEN ius.user_lookups IS NULL THEN 0 ELSE ius.user_lookups END) ,[ServiceUpTime] = DATEDIFF(MINUTE, @ServiceStart, GETUTCDATE()) ,[ServiceStart] = @ServiceStart FROM sys.indexes i LEFT JOIN sys.tables t ON t.[object_id] = i.[object_id] LEFT JOIN sys.partitions p ON i.[object_id] = p.[object_id] AND i.index_id = p.index_id LEFT JOIN sys.allocation_units a ON p.partition_id = a.container_id LEFT OUTER JOIN sys.dm_db_index_usage_stats ius ON ius.database_id = DB_ID() AND i.[object_id] = ius.[object_id] AND i.index_id = ius.index_id INNER JOIN sys.objects o ON o.[object_id] = i.[object_id] WHERE 1=1 AND (o.is_ms_shipped IS NULL OR o.is_ms_shipped = 0) AND o.type_desc NOT IN ('SQL_TABLE_VALUED_FUNCTION') GROUP BY t.[name], i.[object_id], i.index_id, i.[name], i.type_desc ) cte WHERE 1=1 AND (cte.UserSeeks = 0 AND cte.UserScans = 0 AND cte.UserLookups = 0) ORDER BY cte.ParentName ASC, CASE WHEN cte.[Type] = 'HEAP' THEN 0 WHEN cte.[Type] = 'CLUSTERED' THEN 1 ELSE 2 END ASC, cte.IndexName ASC GO
<gh_stars>0 CREATE TABLE `orders` ( `id` bigint(20) NOT NULL, `total_cost` decimal(19,2) NOT NULL, `user_id` bigint(20) NOT NULL, `status` varchar(32) NOT NULL, `create_time` datetime DEFAULT CURRENT_TIMESTAMP, `update_time` datetime DEFAULT NULL, `pay_channel` varchar(500) DEFAULT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `order_detail` ( `id` bigint(20) NOT NULL, `order_id` bigint(20) NOT NULL, `product_id` bigint(20) NOT NULL, `user_id` bigint(20) NOT NULL, `quantity` int(11) NOT NULL, `price` decimal(20,2) NOT NULL, `create_time` datetime DEFAULT CURRENT_TIMESTAMP, `update_time` datetime DEFAULT NULL, `product_specs_id` bigint(20) NOT NULL, PRIMARY KEY (`id`), KEY `order_id` (`order_id`), KEY `user_id` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
<reponame>team-earth-final/music-lyfe2<gh_stars>0 DROP TABLE IF EXISTS users_tracks; DROP TABLE IF EXISTS tracks; DROP TABLE IF EXISTS app_users; CREATE TABLE app_users ( id SERIAL PRIMARY KEY, fave_artist VARCHAR(255), display_name VARCHAR(255), spotify_user_id VARCHAR(255) UNIQUE ); CREATE TABLE tracks ( id SERIAL PRIMARY KEY, track_name VARCHAR(255), artist VARCHAR(255), album_name VARCHAR(255), release_date VARCHAR(255), genres VARCHAR(255), spotify_track_id VARCHAR(255), preview_url VARCHAR(255), app_user_id INT, user_rank INT, global_plays INT, user_plays INT, popularity INT, last_time_user_played VARCHAR(255), album_cover_url VARCHAR(255), CONSTRAINT fk_app_users FOREIGN KEY(app_user_id) REFERENCES app_users(id) );
create or replace view tasks_pri_lean as -- classification and select select id, sum(coalesce(g.pri,0)) tot_pri, count(*) cnt -- ,array_agg(coalesce(dh.depid)) depids -- tag/priority definitions from tags g -- tasks tagging info right outer join lateral ( select id, jsonb_array_elements_text(contents->'tags') tag from tasks t union select id,null from tasks ) t on g.name=t.tag group by id order by tot_pri desc; create or replace view tasks_pri_accum_lean as select h.depid tid, sum(p.tot_pri)+sum(level) tot_pri, array_agg(h.depid) depids from tasks_deps_hierarchy h left outer join tasks_pri_lean p on (p.id=h.tid) group by h.depid; create or replace view tasks_pri_comb_lean as select p.*, coalesce(a.tot_pri,0) dep_pri, coalesce(p.tot_pri,0)+coalesce(a.tot_pri,0) comb_pri from tasks_pri_lean p left outer join tasks_pri_accum_lean a on p.id=a.tid order by comb_pri desc
CREATE OR REPLACE FUNCTION update_pathology_observations_nresult_from_trigger() RETURNS TRIGGER AS $body$ DECLARE BEGIN IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN NEW.nresult = convert_to_float(NEW.result, NULL); END IF; RETURN NEW ; END $body$ LANGUAGE plpgsql; COMMENT ON FUNCTION update_pathology_observations_nresult_from_trigger() IS 'Tries to coerce the result column into the nresult column as a float. Sets nresult to NULL if result is eg text and cannot be coerced. nresult is a performance optimisation useful for instance in graphing';
<gh_stars>1-10 CREATE TABLE `languages` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) CHARACTER SET utf8 NOT NULL, `suffix` varchar(50) CHARACTER SET utf8 NOT NULL, PRIMARY KEY (`ID`), UNIQUE KEY `name` (`name`), UNIQUE KEY `suffix` (`suffix`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1
<gh_stars>10-100 -- Revert seattleflu/schema:warehouse/identifier/indexes/identifier_barcode_slices_null from pg begin; drop index warehouse.identifier_barcode_slices_is_null_idx; commit;
<filename>Load/lib/sql/orthomclEdgesSchemaMySql.sql CREATE DATABASE apidb; USE apidb; CREATE TABLE apidb.SimilarSequences ( QUERY_ID VARCHAR(15), SUBJECT_ID VARCHAR(15), QUERY_TAXON_ID VARCHAR(15), SUBJECT_TAXON_ID VARCHAR(15), EVALUE_MANT BIGINT(20), EVALUE_EXP BIGINT(20), PERCENT_IDENTITY FLOAT, PERCENT_MATCH FLOAT ); -- GRANT INSERT, SELECT, UPDATE, DELETE ON apidb.SimilarSequences TO kirkup; -- GRANT SELECT ON apidb.SimilarSequences TO kirkup; -- CREATE INDEX apidb.ss_qtaxexp_ix ON apidb.SimilarSequences(query_id, subject_taxon_id, evalue_exp, evalue_mant, query_taxon_id, subject_id); -- CREATE INDEX apidb.ss_seqs_ix ON apidb.SimilarSequences(query_id, subject_id, evalue_exp, evalue_mant); CREATE INDEX ss_qtaxexp_ix ON apidb.SimilarSequences(query_id, subject_taxon_id, evalue_exp, evalue_mant, query_taxon_id, subject_id); CREATE INDEX ss_seqs_ix ON apidb.SimilarSequences(query_id, subject_id, evalue_exp, evalue_mant); ----------------------------------------------------------- CREATE TABLE apidb.Inparalog ( SEQUENCE_ID_A VARCHAR(15), SEQUENCE_ID_B VARCHAR(15), TAXON_ID VARCHAR(15), UNNORMALIZED_SCORE DOUBLE, NORMALIZED_SCORE DOUBLE ); -- GRANT INSERT, SELECT, UPDATE, DELETE ON apidb.Inparalog TO gus_w; -- GRANT SELECT ON apidb.Inparalog TO gus_r; ------------------------------------------------------------ CREATE TABLE apidb.Ortholog ( SEQUENCE_ID_A VARCHAR(15), SEQUENCE_ID_B VARCHAR(15), TAXON_ID_A VARCHAR(15), TAXON_ID_B VARCHAR(15), UNNORMALIZED_SCORE DOUBLE, NORMALIZED_SCORE DOUBLE ); -- CREATE INDEX ortholog_seq_a_ix on apidb.ortholog(sequence_id_a); -- CREATE INDEX ortholog_seq_b_ix on apidb.ortholog(sequence_id_b); -- GRANT INSERT, SELECT, UPDATE, DELETE ON apidb.ortholog TO gus_w; -- GRANT SELECT ON apidb.ortholog TO gus_r; -- ---------------------------------------------------------- CREATE TABLE apidb.CoOrtholog ( SEQUENCE_ID_A VARCHAR(15), SEQUENCE_ID_B VARCHAR(15), TAXON_ID_A VARCHAR(15), TAXON_ID_B VARCHAR(15), UNNORMALIZED_SCORE DOUBLE, NORMALIZED_SCORE DOUBLE ); -- GRANT INSERT, SELECT, UPDATE, DELETE ON apidb.coortholog TO gus_w; -- GRANT SELECT ON apidb.coortholog TO gus_r; CREATE VIEW apidb.InterTaxonMatch AS SELECT ss.query_id, ss.subject_id, ss.subject_taxon_id, ss.evalue_mant, ss.evalue_exp FROM apidb.SimilarSequences ss WHERE ss.subject_taxon_id != ss.query_taxon_id; -- GRANT INSERT, SELECT, UPDATE, DELETE ON apidb.interTaxonMatch TO gus_w; -- GRANT SELECT ON apidb.InterTaxonMatch TO gus_r; -- exit;
<reponame>Sistemium/ASA.aws<gh_stars>0 create or replace function aws.metricDataMemberDimension ( @name STRING, @value int, @n int default 1, @memberN int default 1 ) returns text begin return string( '&MetricData.member.', @memberN, '.Dimensions.member.', @n, '.Name=', @name, '&MetricData.member.', @memberN, '.Dimensions.member.', @n, '.Value=', @value ); end; create or replace function aws.metricDataMember ( @name STRING, @unit varchar(16) default 'Count', @value int, @ts timestamp default now (), @n int default 1, @extraDimensions text default null ) returns text begin return string( '&MetricData.member.', @n, '.MetricName=', @name, '&MetricData.member.', @n, '.Unit=', @unit, '&MetricData.member.', @n, '.Value=', @value, '&MetricData.member.', @n, '.Timestamp=', util.tzTimestamp(util.utc(@ts)), aws.metricDataMemberDimension ('Server', property('servername'), 1, @n), aws.metricDataMemberDimension ('Database', current database, 2, @n), @extraDimensions ); end; create or replace function aws.putMetricData ( @data text, @ns varchar(32) default 'ASA Metrics' ) returns GUID begin declare @result GUID; declare @xml XML; set @xml = aws.httpPost ( 'http://monitoring.eu-west-1.amazonaws.com', aws.signedQuery ( util.getUserOption('AWSAccessKeyId'), util.getUserOption('AWSSecret'), aws.queryData ('PutMetricData', 'Namespace=' + @ns + @data) ) ); select RequestId into @result from openxml(@xml,'/*/*') with ( RequestId GUID '*:RequestId' ); return @result; end; create or replace function aws.putMetricDatum ( @name STRING, @value int, @ts timestamp default now(), @unit varchar(16) default 'Count', @ns varchar(32) default 'ASA Metrics' ) returns GUID begin return aws.putMetricData ( @ns, aws.metricDataMember (@name, @unit, @value, @ts) ); end; ALTER FUNCTION "aws"."putMetricDataOld" ( @name STRING, @value int, @ts timestamp default now (), @unit varchar(16) default 'Count', @ns varchar(32) default 'ASA Metrics' ) returns GUID begin declare @result GUID; declare @xml XML; set @xml = ( select aws.httpPost ( 'http://monitoring.eu-west-1.amazonaws.com', aws.signedQuery ( util.getUserOption('AWSAccessKeyId'), util.getUserOption('AWSSecret'), aws.queryData ( 'PutMetricData', 'Namespace=' + @ns + '&MetricData.member.1.MetricName=' + @name + '&MetricData.member.1.Unit=' + @unit + '&MetricData.member.1.Value=' + string(@value) + '&MetricData.member.1.Timestamp='+util.tzTimestamp(@ts) + '&MetricData.member.1.Dimensions.member.1.Name=Server' + '&MetricData.member.1.Dimensions.member.1.Value=' + property('servername') + '&MetricData.member.1.Dimensions.member.2.Name=Database' + '&MetricData.member.1.Dimensions.member.2.Value=' + current database ) ) ) ); select RequestId into @result from openxml(@xml,'/*/*') with ( RequestId GUID '*:RequestId' ); return @result; end
<gh_stars>100-1000 select r_name, c, rank() over (order by r_regionkey) as ran from ( select r_name, r_regionkey, count(*) as c from region group by r_name, r_regionkey ) a;
<filename>services/headless-lms/migrations/20210701085008_create_email_template.down.sql -- Add down migration script here DROP TABLE email_templates;
drop index IDX_ORDERMAN_CUSTOMER_UNIQ_EMAIL ;
<reponame>salspaugh/queryutils create index sessions_user_id on sessions(user_id); create index parsetrees_query_id on parsetrees(query_id); create index queries_session_id on queries(session_id);
drop table if exists states; create table states ( id int unsigned not null auto_increment, name varchar(50) not null, primary key(id) ) Engine = InnoDB; drop table if exists counties; create table counties ( state_id int unsigned not null, id int unsigned not null auto_increment, name varchar(50) not null, primary key (id, state_id), foreign key (state_id) references states(id) ) Engine = InnoDB; insert into states(id, name) values(1, "New Mexico"); insert into counties(state_id, name) values(1, "Bernalillo"); insert into counties(state_id, name) values(1, "Catron"); insert into counties(state_id, name) values(1, "Chaves"); insert into counties(state_id, name) values(1, "Cibola"); insert into counties(state_id, name) values(1, "Colfax"); insert into counties(state_id, name) values(1, "Curry"); insert into counties(state_id, name) values(1, "De Baca"); insert into counties(state_id, name) values(1, "<NAME>"); insert into counties(state_id, name) values(1, "Eddy"); insert into counties(state_id, name) values(1, "Grant"); insert into counties(state_id, name) values(1, "Guadalupe"); insert into counties(state_id, name) values(1, "Harding"); insert into counties(state_id, name) values(1, "Hidalgo"); insert into counties(state_id, name) values(1, "Lea"); insert into counties(state_id, name) values(1, "Lincoln"); insert into counties(state_id, name) values(1, "Los Alamos"); insert into counties(state_id, name) values(1, "Luna"); insert into counties(state_id, name) values(1, "McKinley"); insert into counties(state_id, name) values(1, "Mora"); insert into counties(state_id, name) values(1, "Otero"); insert into counties(state_id, name) values(1, "Quay"); insert into counties(state_id, name) values(1, "Rio Arriba"); insert into counties(state_id, name) values(1, "Roosevelt"); insert into counties(state_id, name) values(1, "Sandoval"); insert into counties(state_id, name) values(1, "San Juan"); insert into counties(state_id, name) values(1, "San Miguel"); insert into counties(state_id, name) values(1, "Santa Fe"); insert into counties(state_id, name) values(1, "Sierra"); insert into counties(state_id, name) values(1, "Socorro"); insert into counties(state_id, name) values(1, "Taos"); insert into counties(state_id, name) values(1, "Torrance"); insert into counties(state_id, name) values(1, "Union"); insert into counties(state_id, name) values(1, "Valencia"); insert into states(id, name) values(2, "Oregon"); insert into counties(state_id, name) values(2, "Baker"); insert into counties(state_id, name) values(2, "Benton"); insert into counties(state_id, name) values(2, "Clackamas"); insert into counties(state_id, name) values(2, "Clatsop"); insert into counties(state_id, name) values(2, "Columbia"); insert into counties(state_id, name) values(2, "Coos"); insert into counties(state_id, name) values(2, "Crook"); insert into counties(state_id, name) values(2, "Curry"); insert into counties(state_id, name) values(2, "Deschutes"); insert into counties(state_id, name) values(2, "Douglas"); insert into counties(state_id, name) values(2, "Gilliam"); insert into counties(state_id, name) values(2, "Grant"); insert into counties(state_id, name) values(2, "Harney"); insert into counties(state_id, name) values(2, "<NAME>"); insert into counties(state_id, name) values(2, "Jackson"); insert into counties(state_id, name) values(2, "Jefferson"); insert into counties(state_id, name) values(2, "Josephine"); insert into counties(state_id, name) values(2, "Klamath"); insert into counties(state_id, name) values(2, "Lake"); insert into counties(state_id, name) values(2, "Lane"); insert into counties(state_id, name) values(2, "Lincoln"); insert into counties(state_id, name) values(2, "Linn"); insert into counties(state_id, name) values(2, "Malheur"); insert into counties(state_id, name) values(2, "Marion"); insert into counties(state_id, name) values(2, "Morrow"); insert into counties(state_id, name) values(2, "Multnomah"); insert into counties(state_id, name) values(2, "Polk"); insert into counties(state_id, name) values(2, "Sherman"); insert into counties(state_id, name) values(2, "Tillamook"); insert into counties(state_id, name) values(2, "Umatilla"); insert into counties(state_id, name) values(2, "Union"); insert into counties(state_id, name) values(2, "Wallowa"); insert into counties(state_id, name) values(2, "Wasco"); insert into counties(state_id, name) values(2, "Washington"); insert into counties(state_id, name) values(2, "Wheeler"); insert into counties(state_id, name) values(2, "Yamhill"); insert into states(id, name) values(3, "Utah"); insert into counties(state_id, name) values(3, "Beaver"); insert into counties(state_id, name) values(3, "Box Elder"); insert into counties(state_id, name) values(3, "Cache"); insert into counties(state_id, name) values(3, "Carbon"); insert into counties(state_id, name) values(3, "Daggett"); insert into counties(state_id, name) values(3, "Davis"); insert into counties(state_id, name) values(3, "Duchesne"); insert into counties(state_id, name) values(3, "Emery"); insert into counties(state_id, name) values(3, "Garfield"); insert into counties(state_id, name) values(3, "Grand"); insert into counties(state_id, name) values(3, "Iron"); insert into counties(state_id, name) values(3, "Juab"); insert into counties(state_id, name) values(3, "Kane"); insert into counties(state_id, name) values(3, "Millard"); insert into counties(state_id, name) values(3, "Morgan"); insert into counties(state_id, name) values(3, "Piute"); insert into counties(state_id, name) values(3, "Rich"); insert into counties(state_id, name) values(3, "Salt Lake"); insert into counties(state_id, name) values(3, "San Juan"); insert into counties(state_id, name) values(3, "Sanpete"); insert into counties(state_id, name) values(3, "Sevier"); insert into counties(state_id, name) values(3, "Summit"); insert into counties(state_id, name) values(3, "Tooele"); insert into counties(state_id, name) values(3, "Uintah"); insert into counties(state_id, name) values(3, "Utah"); insert into counties(state_id, name) values(3, "Wasatch"); insert into counties(state_id, name) values(3, "Washington"); insert into counties(state_id, name) values(3, "Wayne"); insert into counties(state_id, name) values(3, "Weber"); insert into states(id, name) values(4, "West Virginia"); insert into counties(state_id, name) values(4, "Barbour"); insert into counties(state_id, name) values(4, "Berkeley"); insert into counties(state_id, name) values(4, "Boone"); insert into counties(state_id, name) values(4, "Braxton"); insert into counties(state_id, name) values(4, "Brooke"); insert into counties(state_id, name) values(4, "Cabell"); insert into counties(state_id, name) values(4, "Calhoun"); insert into counties(state_id, name) values(4, "Clay"); insert into counties(state_id, name) values(4, "Doddridge"); insert into counties(state_id, name) values(4, "Fayette"); insert into counties(state_id, name) values(4, "Gilmer"); insert into counties(state_id, name) values(4, "Grant"); insert into counties(state_id, name) values(4, "Greenbrier"); insert into counties(state_id, name) values(4, "Hampshire"); insert into counties(state_id, name) values(4, "Hancock"); insert into counties(state_id, name) values(4, "Hardy"); insert into counties(state_id, name) values(4, "Harrison"); insert into counties(state_id, name) values(4, "Jackson"); insert into counties(state_id, name) values(4, "Jefferson"); insert into counties(state_id, name) values(4, "Kanawha"); insert into counties(state_id, name) values(4, "Lewis"); insert into counties(state_id, name) values(4, "Lincoln"); insert into counties(state_id, name) values(4, "Logan"); insert into counties(state_id, name) values(4, "McDowell"); insert into counties(state_id, name) values(4, "Marion"); insert into counties(state_id, name) values(4, "Marshall"); insert into counties(state_id, name) values(4, "Mason"); insert into counties(state_id, name) values(4, "Mercer"); insert into counties(state_id, name) values(4, "Mineral"); insert into counties(state_id, name) values(4, "Mingo"); insert into counties(state_id, name) values(4, "Monongalia"); insert into counties(state_id, name) values(4, "Monroe"); insert into counties(state_id, name) values(4, "Morgan"); insert into counties(state_id, name) values(4, "Nicholas"); insert into counties(state_id, name) values(4, "Ohio"); insert into counties(state_id, name) values(4, "Pendleton"); insert into counties(state_id, name) values(4, "Pleasants"); insert into counties(state_id, name) values(4, "Pocahontas"); insert into counties(state_id, name) values(4, "Preston"); insert into counties(state_id, name) values(4, "Putnam"); insert into counties(state_id, name) values(4, "Raleigh"); insert into counties(state_id, name) values(4, "Randolph"); insert into counties(state_id, name) values(4, "Ritchie"); insert into counties(state_id, name) values(4, "Roane"); insert into counties(state_id, name) values(4, "Summers"); insert into counties(state_id, name) values(4, "Taylor"); insert into counties(state_id, name) values(4, "Tucker"); insert into counties(state_id, name) values(4, "Tyler"); insert into counties(state_id, name) values(4, "Upshur"); insert into counties(state_id, name) values(4, "Wayne"); insert into counties(state_id, name) values(4, "Webster"); insert into counties(state_id, name) values(4, "Wetzel"); insert into counties(state_id, name) values(4, "Wirt"); insert into counties(state_id, name) values(4, "Wood"); insert into counties(state_id, name) values(4, "Wyoming"); insert into states(id, name) values(5, "Wyoming"); insert into counties(state_id, name) values(5, "Albany"); insert into counties(state_id, name) values(5, "Big Horn"); insert into counties(state_id, name) values(5, "Campbell"); insert into counties(state_id, name) values(5, "Carbon"); insert into counties(state_id, name) values(5, "Converse"); insert into counties(state_id, name) values(5, "Crook"); insert into counties(state_id, name) values(5, "Fremont"); insert into counties(state_id, name) values(5, "Goshen"); insert into counties(state_id, name) values(5, "Hot Springs"); insert into counties(state_id, name) values(5, "Johnson"); insert into counties(state_id, name) values(5, "Laramie"); insert into counties(state_id, name) values(5, "Lincoln"); insert into counties(state_id, name) values(5, "Natrona"); insert into counties(state_id, name) values(5, "Niobrara"); insert into counties(state_id, name) values(5, "Park"); insert into counties(state_id, name) values(5, "Platte"); insert into counties(state_id, name) values(5, "Sheridan"); insert into counties(state_id, name) values(5, "Sublette"); insert into counties(state_id, name) values(5, "Sweetwater"); insert into counties(state_id, name) values(5, "Teton"); insert into counties(state_id, name) values(5, "Uinta"); insert into counties(state_id, name) values(5, "Washakie"); insert into counties(state_id, name) values(5, "Weston"); insert into states(id, name) values(6, "Colorado"); insert into counties(state_id, name) values(6, "Adams"); insert into counties(state_id, name) values(6, "Alamosa"); insert into counties(state_id, name) values(6, "Arapahoe"); insert into counties(state_id, name) values(6, "Archuleta"); insert into counties(state_id, name) values(6, "Baca"); insert into counties(state_id, name) values(6, "Bent"); insert into counties(state_id, name) values(6, "Boulder"); insert into counties(state_id, name) values(6, "Broomfield"); insert into counties(state_id, name) values(6, "Chaffee"); insert into counties(state_id, name) values(6, "Cheyenne"); insert into counties(state_id, name) values(6, "Clear Creek"); insert into counties(state_id, name) values(6, "Conejos"); insert into counties(state_id, name) values(6, "Costilla"); insert into counties(state_id, name) values(6, "Crowley"); insert into counties(state_id, name) values(6, "Custer"); insert into counties(state_id, name) values(6, "Delta"); insert into counties(state_id, name) values(6, "Denver"); insert into counties(state_id, name) values(6, "Dolores"); insert into counties(state_id, name) values(6, "Douglas"); insert into counties(state_id, name) values(6, "Eagle"); insert into counties(state_id, name) values(6, "Elbert"); insert into counties(state_id, name) values(6, "<NAME>"); insert into counties(state_id, name) values(6, "Fremont"); insert into counties(state_id, name) values(6, "Garfield"); insert into counties(state_id, name) values(6, "Gilpin"); insert into counties(state_id, name) values(6, "Grand"); insert into counties(state_id, name) values(6, "Gunnison"); insert into counties(state_id, name) values(6, "Hinsdale"); insert into counties(state_id, name) values(6, "Huerfano"); insert into counties(state_id, name) values(6, "Jackson"); insert into counties(state_id, name) values(6, "Jefferson"); insert into counties(state_id, name) values(6, "Kiowa"); insert into counties(state_id, name) values(6, "<NAME>"); insert into counties(state_id, name) values(6, "Lake"); insert into counties(state_id, name) values(6, "La Plata"); insert into counties(state_id, name) values(6, "Larimer"); insert into counties(state_id, name) values(6, "Las Animas"); insert into counties(state_id, name) values(6, "Lincoln"); insert into counties(state_id, name) values(6, "Logan"); insert into counties(state_id, name) values(6, "Mesa"); insert into counties(state_id, name) values(6, "Mineral"); insert into counties(state_id, name) values(6, "Moffat"); insert into counties(state_id, name) values(6, "Montezuma"); insert into counties(state_id, name) values(6, "Montrose"); insert into counties(state_id, name) values(6, "Morgan"); insert into counties(state_id, name) values(6, "Otero"); insert into counties(state_id, name) values(6, "Ouray"); insert into counties(state_id, name) values(6, "Park"); insert into counties(state_id, name) values(6, "Phillips"); insert into counties(state_id, name) values(6, "Pitkin"); insert into counties(state_id, name) values(6, "Prowers"); insert into counties(state_id, name) values(6, "Pueblo"); insert into counties(state_id, name) values(6, "Rio Blanco"); insert into counties(state_id, name) values(6, "Rio Grande"); insert into counties(state_id, name) values(6, "Routt"); insert into counties(state_id, name) values(6, "Saguache"); insert into counties(state_id, name) values(6, "San Juan"); insert into counties(state_id, name) values(6, "San Miguel"); insert into counties(state_id, name) values(6, "Sedgwick"); insert into counties(state_id, name) values(6, "Summit"); insert into counties(state_id, name) values(6, "Teller"); insert into counties(state_id, name) values(6, "Washington"); insert into counties(state_id, name) values(6, "Weld"); insert into counties(state_id, name) values(6, "Yuma"); insert into states(id, name) values(7, "Kansas"); insert into counties(state_id, name) values(7, "Allen"); insert into counties(state_id, name) values(7, "Anderson"); insert into counties(state_id, name) values(7, "Atchison"); insert into counties(state_id, name) values(7, "Barber"); insert into counties(state_id, name) values(7, "Barton"); insert into counties(state_id, name) values(7, "Bourbon"); insert into counties(state_id, name) values(7, "Brown"); insert into counties(state_id, name) values(7, "Butler"); insert into counties(state_id, name) values(7, "Chase"); insert into counties(state_id, name) values(7, "Chautauqua"); insert into counties(state_id, name) values(7, "Cherokee"); insert into counties(state_id, name) values(7, "Cheyenne"); insert into counties(state_id, name) values(7, "Clark"); insert into counties(state_id, name) values(7, "Clay"); insert into counties(state_id, name) values(7, "Cloud"); insert into counties(state_id, name) values(7, "Coffey"); insert into counties(state_id, name) values(7, "Comanche"); insert into counties(state_id, name) values(7, "Cowley"); insert into counties(state_id, name) values(7, "Crawford"); insert into counties(state_id, name) values(7, "Decatur"); insert into counties(state_id, name) values(7, "Dickinson"); insert into counties(state_id, name) values(7, "Doniphan"); insert into counties(state_id, name) values(7, "Douglas"); insert into counties(state_id, name) values(7, "Edwards"); insert into counties(state_id, name) values(7, "Elk"); insert into counties(state_id, name) values(7, "Ellis"); insert into counties(state_id, name) values(7, "Ellsworth"); insert into counties(state_id, name) values(7, "Finney"); insert into counties(state_id, name) values(7, "Ford"); insert into counties(state_id, name) values(7, "Franklin"); insert into counties(state_id, name) values(7, "Geary"); insert into counties(state_id, name) values(7, "Gove"); insert into counties(state_id, name) values(7, "Graham"); insert into counties(state_id, name) values(7, "Grant"); insert into counties(state_id, name) values(7, "Gray"); insert into counties(state_id, name) values(7, "Greeley"); insert into counties(state_id, name) values(7, "Greenwood"); insert into counties(state_id, name) values(7, "Hamilton"); insert into counties(state_id, name) values(7, "Harper"); insert into counties(state_id, name) values(7, "Harvey"); insert into counties(state_id, name) values(7, "Haskell"); insert into counties(state_id, name) values(7, "Hodgeman"); insert into counties(state_id, name) values(7, "Jackson"); insert into counties(state_id, name) values(7, "Jefferson"); insert into counties(state_id, name) values(7, "Jewell"); insert into counties(state_id, name) values(7, "Johnson"); insert into counties(state_id, name) values(7, "Kearny"); insert into counties(state_id, name) values(7, "Kingman"); insert into counties(state_id, name) values(7, "Kiowa"); insert into counties(state_id, name) values(7, "Labette"); insert into counties(state_id, name) values(7, "Lane"); insert into counties(state_id, name) values(7, "Leavenworth"); insert into counties(state_id, name) values(7, "Lincoln"); insert into counties(state_id, name) values(7, "Linn"); insert into counties(state_id, name) values(7, "Logan"); insert into counties(state_id, name) values(7, "Lyon"); insert into counties(state_id, name) values(7, "McPherson"); insert into counties(state_id, name) values(7, "Marion"); insert into counties(state_id, name) values(7, "Marshall"); insert into counties(state_id, name) values(7, "Meade"); insert into counties(state_id, name) values(7, "Miami"); insert into counties(state_id, name) values(7, "Mitchell"); insert into counties(state_id, name) values(7, "Montgomery"); insert into counties(state_id, name) values(7, "Morris"); insert into counties(state_id, name) values(7, "Morton"); insert into counties(state_id, name) values(7, "Nemaha"); insert into counties(state_id, name) values(7, "Neosho"); insert into counties(state_id, name) values(7, "Ness"); insert into counties(state_id, name) values(7, "Norton"); insert into counties(state_id, name) values(7, "Osage"); insert into counties(state_id, name) values(7, "Osborne"); insert into counties(state_id, name) values(7, "Ottawa"); insert into counties(state_id, name) values(7, "Pawnee"); insert into counties(state_id, name) values(7, "Phillips"); insert into counties(state_id, name) values(7, "Pottawatomie"); insert into counties(state_id, name) values(7, "Pratt"); insert into counties(state_id, name) values(7, "Rawlins"); insert into counties(state_id, name) values(7, "Reno"); insert into counties(state_id, name) values(7, "Republic"); insert into counties(state_id, name) values(7, "Rice"); insert into counties(state_id, name) values(7, "Riley"); insert into counties(state_id, name) values(7, "Rooks"); insert into counties(state_id, name) values(7, "Rush"); insert into counties(state_id, name) values(7, "Russell"); insert into counties(state_id, name) values(7, "Saline"); insert into counties(state_id, name) values(7, "Scott"); insert into counties(state_id, name) values(7, "Sedgwick"); insert into counties(state_id, name) values(7, "Seward"); insert into counties(state_id, name) values(7, "Shawnee"); insert into counties(state_id, name) values(7, "Sheridan"); insert into counties(state_id, name) values(7, "Sherman"); insert into counties(state_id, name) values(7, "Smith"); insert into counties(state_id, name) values(7, "Stafford"); insert into counties(state_id, name) values(7, "Stanton"); insert into counties(state_id, name) values(7, "Stevens"); insert into counties(state_id, name) values(7, "Sumner"); insert into counties(state_id, name) values(7, "Thomas"); insert into counties(state_id, name) values(7, "Trego"); insert into counties(state_id, name) values(7, "Wabaunsee"); insert into counties(state_id, name) values(7, "Wallace"); insert into counties(state_id, name) values(7, "Washington"); insert into counties(state_id, name) values(7, "Wichita"); insert into counties(state_id, name) values(7, "Wilson"); insert into counties(state_id, name) values(7, "Woodson"); insert into counties(state_id, name) values(7, "Wyandotte"); insert into states(id, name) values(8, "Nevada"); insert into counties(state_id, name) values(8, "Churchill"); insert into counties(state_id, name) values(8, "Clark"); insert into counties(state_id, name) values(8, "Douglas"); insert into counties(state_id, name) values(8, "Elko"); insert into counties(state_id, name) values(8, "Esmeralda"); insert into counties(state_id, name) values(8, "Eureka"); insert into counties(state_id, name) values(8, "Humboldt"); insert into counties(state_id, name) values(8, "Lander"); insert into counties(state_id, name) values(8, "Lincoln"); insert into counties(state_id, name) values(8, "Lyon"); insert into counties(state_id, name) values(8, "Mineral"); insert into counties(state_id, name) values(8, "Nye"); insert into counties(state_id, name) values(8, "Pershing"); insert into counties(state_id, name) values(8, "Storey"); insert into counties(state_id, name) values(8, "Washoe"); insert into counties(state_id, name) values(8, "White Pine"); insert into counties(state_id, name) values(8, "Carson City"); insert into states(id, name) values(9, "Alaska"); insert into counties(state_id, name) values(9, "Aleutians East"); insert into counties(state_id, name) values(9, "Anchorage"); insert into counties(state_id, name) values(9, "Bristol Bay"); insert into counties(state_id, name) values(9, "Denali"); insert into counties(state_id, name) values(9, "Fairbanks North Star"); insert into counties(state_id, name) values(9, "Haines"); insert into counties(state_id, name) values(9, "Juneau"); insert into counties(state_id, name) values(9, "Kenai Peninsula"); insert into counties(state_id, name) values(9, "Ketchikan Gateway"); insert into counties(state_id, name) values(9, "Kodiak Island"); insert into counties(state_id, name) values(9, "Lake and Peninsula"); insert into counties(state_id, name) values(9, "Matanuska-Susitna"); insert into counties(state_id, name) values(9, "North Slope"); insert into counties(state_id, name) values(9, "Northwest Arctic"); insert into counties(state_id, name) values(9, "Petersburg"); insert into counties(state_id, name) values(9, "Sitka"); insert into counties(state_id, name) values(9, "Skagway"); insert into counties(state_id, name) values(9, "Wrangell"); insert into counties(state_id, name) values(9, "Yakutat"); insert into counties(state_id, name) values(9, "Unorganized"); insert into counties(state_id, name) values(9, "Aleutians West"); insert into counties(state_id, name) values(9, "Bethel"); insert into counties(state_id, name) values(9, "Dillingham"); insert into counties(state_id, name) values(9, "Hoonah-Angoon"); insert into counties(state_id, name) values(9, "Kusilvak"); insert into counties(state_id, name) values(9, "Nome"); insert into counties(state_id, name) values(9, "Prince of Wales-Hyder"); insert into counties(state_id, name) values(9, "Southeast Fairbanks"); insert into counties(state_id, name) values(9, "Valdez-Cordova"); insert into counties(state_id, name) values(9, "Yukon-Koyukuk"); insert into states(id, name) values(10, "Hawaii"); insert into counties(state_id, name) values(10, "Hawaii"); insert into counties(state_id, name) values(10, "Honolulu"); insert into counties(state_id, name) values(10, "Kalawao"); insert into counties(state_id, name) values(10, "Kauai"); insert into counties(state_id, name) values(10, "Maui"); insert into states(id, name) values(11, "North Dakota"); insert into counties(state_id, name) values(11, "Adams"); insert into counties(state_id, name) values(11, "Barnes"); insert into counties(state_id, name) values(11, "Benson"); insert into counties(state_id, name) values(11, "Billings"); insert into counties(state_id, name) values(11, "Bottineau"); insert into counties(state_id, name) values(11, "Bowman"); insert into counties(state_id, name) values(11, "Burke"); insert into counties(state_id, name) values(11, "Burleigh"); insert into counties(state_id, name) values(11, "Cass"); insert into counties(state_id, name) values(11, "Cavalier"); insert into counties(state_id, name) values(11, "Dickey"); insert into counties(state_id, name) values(11, "Divide"); insert into counties(state_id, name) values(11, "Dunn"); insert into counties(state_id, name) values(11, "Eddy"); insert into counties(state_id, name) values(11, "Emmons"); insert into counties(state_id, name) values(11, "Foster"); insert into counties(state_id, name) values(11, "Golden Valley"); insert into counties(state_id, name) values(11, "<NAME>"); insert into counties(state_id, name) values(11, "Grant"); insert into counties(state_id, name) values(11, "Griggs"); insert into counties(state_id, name) values(11, "Hettinger"); insert into counties(state_id, name) values(11, "Kidder"); insert into counties(state_id, name) values(11, "LaMoure"); insert into counties(state_id, name) values(11, "Logan"); insert into counties(state_id, name) values(11, "McHenry"); insert into counties(state_id, name) values(11, "McIntosh"); insert into counties(state_id, name) values(11, "McKenzie"); insert into counties(state_id, name) values(11, "McLean"); insert into counties(state_id, name) values(11, "Mercer"); insert into counties(state_id, name) values(11, "Morton"); insert into counties(state_id, name) values(11, "Mountrail"); insert into counties(state_id, name) values(11, "Nelson"); insert into counties(state_id, name) values(11, "Oliver"); insert into counties(state_id, name) values(11, "Pembina"); insert into counties(state_id, name) values(11, "Pierce"); insert into counties(state_id, name) values(11, "Ramsey"); insert into counties(state_id, name) values(11, "Ransom"); insert into counties(state_id, name) values(11, "Renville"); insert into counties(state_id, name) values(11, "Richland"); insert into counties(state_id, name) values(11, "Rolette"); insert into counties(state_id, name) values(11, "Sargent"); insert into counties(state_id, name) values(11, "Sheridan"); insert into counties(state_id, name) values(11, "Sioux"); insert into counties(state_id, name) values(11, "Slope"); insert into counties(state_id, name) values(11, "Stark"); insert into counties(state_id, name) values(11, "Steele"); insert into counties(state_id, name) values(11, "Stutsman"); insert into counties(state_id, name) values(11, "Towner"); insert into counties(state_id, name) values(11, "Traill"); insert into counties(state_id, name) values(11, "Walsh"); insert into counties(state_id, name) values(11, "Ward"); insert into counties(state_id, name) values(11, "Wells"); insert into counties(state_id, name) values(11, "Williams"); insert into states(id, name) values(12, "South Dakota"); insert into counties(state_id, name) values(12, "Aurora"); insert into counties(state_id, name) values(12, "Beadle"); insert into counties(state_id, name) values(12, "Bennett"); insert into counties(state_id, name) values(12, "<NAME>"); insert into counties(state_id, name) values(12, "Brookings"); insert into counties(state_id, name) values(12, "Brown"); insert into counties(state_id, name) values(12, "Brule"); insert into counties(state_id, name) values(12, "Buffalo"); insert into counties(state_id, name) values(12, "Butte"); insert into counties(state_id, name) values(12, "Campbell"); insert into counties(state_id, name) values(12, "<NAME>"); insert into counties(state_id, name) values(12, "Clark"); insert into counties(state_id, name) values(12, "Clay"); insert into counties(state_id, name) values(12, "Codington"); insert into counties(state_id, name) values(12, "Corson"); insert into counties(state_id, name) values(12, "Custer"); insert into counties(state_id, name) values(12, "Davison"); insert into counties(state_id, name) values(12, "Day"); insert into counties(state_id, name) values(12, "Deuel"); insert into counties(state_id, name) values(12, "Dewey"); insert into counties(state_id, name) values(12, "Douglas"); insert into counties(state_id, name) values(12, "Edmunds"); insert into counties(state_id, name) values(12, "Fall River"); insert into counties(state_id, name) values(12, "Faulk"); insert into counties(state_id, name) values(12, "Grant"); insert into counties(state_id, name) values(12, "Gregory"); insert into counties(state_id, name) values(12, "Haakon"); insert into counties(state_id, name) values(12, "Hamlin"); insert into counties(state_id, name) values(12, "Hand"); insert into counties(state_id, name) values(12, "Hanson"); insert into counties(state_id, name) values(12, "Harding"); insert into counties(state_id, name) values(12, "Hughes"); insert into counties(state_id, name) values(12, "Hutchinson"); insert into counties(state_id, name) values(12, "Hyde"); insert into counties(state_id, name) values(12, "Jackson"); insert into counties(state_id, name) values(12, "Jerauld"); insert into counties(state_id, name) values(12, "Jones"); insert into counties(state_id, name) values(12, "Kingsbury"); insert into counties(state_id, name) values(12, "Lake"); insert into counties(state_id, name) values(12, "Lawrence"); insert into counties(state_id, name) values(12, "Lincoln"); insert into counties(state_id, name) values(12, "Lyman"); insert into counties(state_id, name) values(12, "McCook"); insert into counties(state_id, name) values(12, "McPherson"); insert into counties(state_id, name) values(12, "Marshall"); insert into counties(state_id, name) values(12, "Meade"); insert into counties(state_id, name) values(12, "Mellette"); insert into counties(state_id, name) values(12, "Miner"); insert into counties(state_id, name) values(12, "Minnehaha"); insert into counties(state_id, name) values(12, "Moody"); insert into counties(state_id, name) values(12, "<NAME>"); insert into counties(state_id, name) values(12, "Pennington"); insert into counties(state_id, name) values(12, "Perkins"); insert into counties(state_id, name) values(12, "Potter"); insert into counties(state_id, name) values(12, "Roberts"); insert into counties(state_id, name) values(12, "Sanborn"); insert into counties(state_id, name) values(12, "Spink"); insert into counties(state_id, name) values(12, "Stanley"); insert into counties(state_id, name) values(12, "Sully"); insert into counties(state_id, name) values(12, "Todd"); insert into counties(state_id, name) values(12, "Tripp"); insert into counties(state_id, name) values(12, "Turner"); insert into counties(state_id, name) values(12, "Union"); insert into counties(state_id, name) values(12, "Walworth"); insert into counties(state_id, name) values(12, "Yankton"); insert into counties(state_id, name) values(12, "Ziebach"); insert into states(id, name) values(13, "Alabama"); insert into counties(state_id, name) values(13, "Autauga"); insert into counties(state_id, name) values(13, "Baldwin"); insert into counties(state_id, name) values(13, "Barbour"); insert into counties(state_id, name) values(13, "Bibb"); insert into counties(state_id, name) values(13, "Blount"); insert into counties(state_id, name) values(13, "Bullock"); insert into counties(state_id, name) values(13, "Butler"); insert into counties(state_id, name) values(13, "Calhoun"); insert into counties(state_id, name) values(13, "Chambers"); insert into counties(state_id, name) values(13, "Cherokee"); insert into counties(state_id, name) values(13, "Chilton"); insert into counties(state_id, name) values(13, "Choctaw"); insert into counties(state_id, name) values(13, "Clarke"); insert into counties(state_id, name) values(13, "Clay"); insert into counties(state_id, name) values(13, "Cleburne"); insert into counties(state_id, name) values(13, "Coffee"); insert into counties(state_id, name) values(13, "Colbert"); insert into counties(state_id, name) values(13, "Conecuh"); insert into counties(state_id, name) values(13, "Coosa"); insert into counties(state_id, name) values(13, "Covington"); insert into counties(state_id, name) values(13, "Crenshaw"); insert into counties(state_id, name) values(13, "Cullman"); insert into counties(state_id, name) values(13, "Dale"); insert into counties(state_id, name) values(13, "Dallas"); insert into counties(state_id, name) values(13, "DeKalb"); insert into counties(state_id, name) values(13, "Elmore"); insert into counties(state_id, name) values(13, "Escambia"); insert into counties(state_id, name) values(13, "Etowah"); insert into counties(state_id, name) values(13, "Fayette"); insert into counties(state_id, name) values(13, "Franklin"); insert into counties(state_id, name) values(13, "Geneva"); insert into counties(state_id, name) values(13, "Greene"); insert into counties(state_id, name) values(13, "Hale"); insert into counties(state_id, name) values(13, "Henry"); insert into counties(state_id, name) values(13, "Houston"); insert into counties(state_id, name) values(13, "Jackson"); insert into counties(state_id, name) values(13, "Jefferson"); insert into counties(state_id, name) values(13, "Lamar"); insert into counties(state_id, name) values(13, "Lauderdale"); insert into counties(state_id, name) values(13, "Lawrence"); insert into counties(state_id, name) values(13, "Lee"); insert into counties(state_id, name) values(13, "Limestone"); insert into counties(state_id, name) values(13, "Lowndes"); insert into counties(state_id, name) values(13, "Macon"); insert into counties(state_id, name) values(13, "Madison"); insert into counties(state_id, name) values(13, "Marengo"); insert into counties(state_id, name) values(13, "Marion"); insert into counties(state_id, name) values(13, "Marshall"); insert into counties(state_id, name) values(13, "Mobile"); insert into counties(state_id, name) values(13, "Monroe"); insert into counties(state_id, name) values(13, "Montgomery"); insert into counties(state_id, name) values(13, "Morgan"); insert into counties(state_id, name) values(13, "Perry"); insert into counties(state_id, name) values(13, "Pickens"); insert into counties(state_id, name) values(13, "Pike"); insert into counties(state_id, name) values(13, "Randolph"); insert into counties(state_id, name) values(13, "Russell"); insert into counties(state_id, name) values(13, "St. Clair"); insert into counties(state_id, name) values(13, "Shelby"); insert into counties(state_id, name) values(13, "Sumter"); insert into counties(state_id, name) values(13, "Talladega"); insert into counties(state_id, name) values(13, "Tallapoosa"); insert into counties(state_id, name) values(13, "Tuscaloosa"); insert into counties(state_id, name) values(13, "Walker"); insert into counties(state_id, name) values(13, "Washington"); insert into counties(state_id, name) values(13, "Wilcox"); insert into counties(state_id, name) values(13, "Winston"); insert into states(id, name) values(14, "Arkansas"); insert into counties(state_id, name) values(14, "Arkansas"); insert into counties(state_id, name) values(14, "Ashley"); insert into counties(state_id, name) values(14, "Baxter"); insert into counties(state_id, name) values(14, "Benton"); insert into counties(state_id, name) values(14, "Boone"); insert into counties(state_id, name) values(14, "Bradley"); insert into counties(state_id, name) values(14, "Calhoun"); insert into counties(state_id, name) values(14, "Carroll"); insert into counties(state_id, name) values(14, "Chicot"); insert into counties(state_id, name) values(14, "Clark"); insert into counties(state_id, name) values(14, "Clay"); insert into counties(state_id, name) values(14, "Cleburne"); insert into counties(state_id, name) values(14, "Cleveland"); insert into counties(state_id, name) values(14, "Columbia"); insert into counties(state_id, name) values(14, "Conway"); insert into counties(state_id, name) values(14, "Craighead"); insert into counties(state_id, name) values(14, "Crawford"); insert into counties(state_id, name) values(14, "Crittenden"); insert into counties(state_id, name) values(14, "Cross"); insert into counties(state_id, name) values(14, "Dallas"); insert into counties(state_id, name) values(14, "Desha"); insert into counties(state_id, name) values(14, "Drew"); insert into counties(state_id, name) values(14, "Faulkner"); insert into counties(state_id, name) values(14, "Franklin"); insert into counties(state_id, name) values(14, "Fulton"); insert into counties(state_id, name) values(14, "Garland"); insert into counties(state_id, name) values(14, "Grant"); insert into counties(state_id, name) values(14, "Greene"); insert into counties(state_id, name) values(14, "Hempstead"); insert into counties(state_id, name) values(14, "Hot Spring"); insert into counties(state_id, name) values(14, "Howard"); insert into counties(state_id, name) values(14, "Independence"); insert into counties(state_id, name) values(14, "Izard"); insert into counties(state_id, name) values(14, "Jackson"); insert into counties(state_id, name) values(14, "Jefferson"); insert into counties(state_id, name) values(14, "Johnson"); insert into counties(state_id, name) values(14, "Lafayette"); insert into counties(state_id, name) values(14, "Lawrence"); insert into counties(state_id, name) values(14, "Lee"); insert into counties(state_id, name) values(14, "Lincoln"); insert into counties(state_id, name) values(14, "<NAME>"); insert into counties(state_id, name) values(14, "Logan"); insert into counties(state_id, name) values(14, "Lonoke"); insert into counties(state_id, name) values(14, "Madison"); insert into counties(state_id, name) values(14, "Marion"); insert into counties(state_id, name) values(14, "Miller"); insert into counties(state_id, name) values(14, "Mississippi"); insert into counties(state_id, name) values(14, "Monroe"); insert into counties(state_id, name) values(14, "Montgomery"); insert into counties(state_id, name) values(14, "Nevada"); insert into counties(state_id, name) values(14, "Newton"); insert into counties(state_id, name) values(14, "Ouachita"); insert into counties(state_id, name) values(14, "Perry"); insert into counties(state_id, name) values(14, "Phillips"); insert into counties(state_id, name) values(14, "Pike"); insert into counties(state_id, name) values(14, "Poinsett"); insert into counties(state_id, name) values(14, "Polk"); insert into counties(state_id, name) values(14, "Pope"); insert into counties(state_id, name) values(14, "Prairie"); insert into counties(state_id, name) values(14, "Pulaski"); insert into counties(state_id, name) values(14, "Randolph"); insert into counties(state_id, name) values(14, "<NAME>"); insert into counties(state_id, name) values(14, "Saline"); insert into counties(state_id, name) values(14, "Scott"); insert into counties(state_id, name) values(14, "Searcy"); insert into counties(state_id, name) values(14, "Sebastian"); insert into counties(state_id, name) values(14, "Sevier"); insert into counties(state_id, name) values(14, "Sharp"); insert into counties(state_id, name) values(14, "Stone"); insert into counties(state_id, name) values(14, "Union"); insert into counties(state_id, name) values(14, "<NAME>"); insert into counties(state_id, name) values(14, "Washington"); insert into counties(state_id, name) values(14, "White"); insert into counties(state_id, name) values(14, "Woodruff"); insert into counties(state_id, name) values(14, "Yell"); insert into states(id, name) values(15, "Montana"); insert into counties(state_id, name) values(15, "Beaverhead"); insert into counties(state_id, name) values(15, "Big Horn"); insert into counties(state_id, name) values(15, "Blaine"); insert into counties(state_id, name) values(15, "Broadwater"); insert into counties(state_id, name) values(15, "Carbon"); insert into counties(state_id, name) values(15, "Carter"); insert into counties(state_id, name) values(15, "Cascade"); insert into counties(state_id, name) values(15, "Chouteau"); insert into counties(state_id, name) values(15, "Custer"); insert into counties(state_id, name) values(15, "Daniels"); insert into counties(state_id, name) values(15, "Dawson"); insert into counties(state_id, name) values(15, "Deer Lodge"); insert into counties(state_id, name) values(15, "Fallon"); insert into counties(state_id, name) values(15, "Fergus"); insert into counties(state_id, name) values(15, "Flathead"); insert into counties(state_id, name) values(15, "Gallatin"); insert into counties(state_id, name) values(15, "Garfield"); insert into counties(state_id, name) values(15, "Glacier"); insert into counties(state_id, name) values(15, "Golden Valley"); insert into counties(state_id, name) values(15, "Granite"); insert into counties(state_id, name) values(15, "Hill"); insert into counties(state_id, name) values(15, "Jefferson"); insert into counties(state_id, name) values(15, "<NAME>"); insert into counties(state_id, name) values(15, "Lake"); insert into counties(state_id, name) values(15, "Lewis and Clark"); insert into counties(state_id, name) values(15, "Liberty"); insert into counties(state_id, name) values(15, "Lincoln"); insert into counties(state_id, name) values(15, "McCone"); insert into counties(state_id, name) values(15, "Madison"); insert into counties(state_id, name) values(15, "Meagher"); insert into counties(state_id, name) values(15, "Mineral"); insert into counties(state_id, name) values(15, "Missoula"); insert into counties(state_id, name) values(15, "Musselshell"); insert into counties(state_id, name) values(15, "Park"); insert into counties(state_id, name) values(15, "Petroleum"); insert into counties(state_id, name) values(15, "Phillips"); insert into counties(state_id, name) values(15, "Pondera"); insert into counties(state_id, name) values(15, "Powder River"); insert into counties(state_id, name) values(15, "Powell"); insert into counties(state_id, name) values(15, "Prairie"); insert into counties(state_id, name) values(15, "Ravalli"); insert into counties(state_id, name) values(15, "Richland"); insert into counties(state_id, name) values(15, "Roosevelt"); insert into counties(state_id, name) values(15, "Rosebud"); insert into counties(state_id, name) values(15, "Sanders"); insert into counties(state_id, name) values(15, "Sheridan"); insert into counties(state_id, name) values(15, "Silver Bow"); insert into counties(state_id, name) values(15, "Stillwater"); insert into counties(state_id, name) values(15, "Sweet Grass"); insert into counties(state_id, name) values(15, "Teton"); insert into counties(state_id, name) values(15, "Toole"); insert into counties(state_id, name) values(15, "Treasure"); insert into counties(state_id, name) values(15, "Valley"); insert into counties(state_id, name) values(15, "Wheatland"); insert into counties(state_id, name) values(15, "Wibaux"); insert into counties(state_id, name) values(15, "Yellowstone"); insert into states(id, name) values(16, "Iowa"); insert into counties(state_id, name) values(16, "Adair"); insert into counties(state_id, name) values(16, "Adams"); insert into counties(state_id, name) values(16, "Allamakee"); insert into counties(state_id, name) values(16, "Appanoose"); insert into counties(state_id, name) values(16, "Audubon"); insert into counties(state_id, name) values(16, "Benton"); insert into counties(state_id, name) values(16, "Black Hawk"); insert into counties(state_id, name) values(16, "Boone"); insert into counties(state_id, name) values(16, "Bremer"); insert into counties(state_id, name) values(16, "Buchanan"); insert into counties(state_id, name) values(16, "Buena Vista"); insert into counties(state_id, name) values(16, "Butler"); insert into counties(state_id, name) values(16, "Calhoun"); insert into counties(state_id, name) values(16, "Carroll"); insert into counties(state_id, name) values(16, "Cass"); insert into counties(state_id, name) values(16, "Cedar"); insert into counties(state_id, name) values(16, "<NAME>"); insert into counties(state_id, name) values(16, "Cherokee"); insert into counties(state_id, name) values(16, "Chickasaw"); insert into counties(state_id, name) values(16, "Clarke"); insert into counties(state_id, name) values(16, "Clay"); insert into counties(state_id, name) values(16, "Clayton"); insert into counties(state_id, name) values(16, "Clinton"); insert into counties(state_id, name) values(16, "Crawford"); insert into counties(state_id, name) values(16, "Dallas"); insert into counties(state_id, name) values(16, "Davis"); insert into counties(state_id, name) values(16, "Decatur"); insert into counties(state_id, name) values(16, "Delaware"); insert into counties(state_id, name) values(16, "<NAME>"); insert into counties(state_id, name) values(16, "Dickinson"); insert into counties(state_id, name) values(16, "Dubuque"); insert into counties(state_id, name) values(16, "Emmet"); insert into counties(state_id, name) values(16, "Fayette"); insert into counties(state_id, name) values(16, "Floyd"); insert into counties(state_id, name) values(16, "Franklin"); insert into counties(state_id, name) values(16, "Fremont"); insert into counties(state_id, name) values(16, "Greene"); insert into counties(state_id, name) values(16, "Grundy"); insert into counties(state_id, name) values(16, "Guthrie"); insert into counties(state_id, name) values(16, "Hamilton"); insert into counties(state_id, name) values(16, "Hancock"); insert into counties(state_id, name) values(16, "Hardin"); insert into counties(state_id, name) values(16, "Harrison"); insert into counties(state_id, name) values(16, "Henry"); insert into counties(state_id, name) values(16, "Howard"); insert into counties(state_id, name) values(16, "Humboldt"); insert into counties(state_id, name) values(16, "Ida"); insert into counties(state_id, name) values(16, "Iowa"); insert into counties(state_id, name) values(16, "Jackson"); insert into counties(state_id, name) values(16, "Jasper"); insert into counties(state_id, name) values(16, "Jefferson"); insert into counties(state_id, name) values(16, "Johnson"); insert into counties(state_id, name) values(16, "Jones"); insert into counties(state_id, name) values(16, "Keokuk"); insert into counties(state_id, name) values(16, "Kossuth"); insert into counties(state_id, name) values(16, "Lee"); insert into counties(state_id, name) values(16, "Linn"); insert into counties(state_id, name) values(16, "Louisa"); insert into counties(state_id, name) values(16, "Lucas"); insert into counties(state_id, name) values(16, "Lyon"); insert into counties(state_id, name) values(16, "Madison"); insert into counties(state_id, name) values(16, "Mahaska"); insert into counties(state_id, name) values(16, "Marion"); insert into counties(state_id, name) values(16, "Marshall"); insert into counties(state_id, name) values(16, "Mills"); insert into counties(state_id, name) values(16, "Mitchell"); insert into counties(state_id, name) values(16, "Monona"); insert into counties(state_id, name) values(16, "Monroe"); insert into counties(state_id, name) values(16, "Montgomery"); insert into counties(state_id, name) values(16, "Muscatine"); insert into counties(state_id, name) values(16, "O'Brien"); insert into counties(state_id, name) values(16, "Osceola"); insert into counties(state_id, name) values(16, "Page"); insert into counties(state_id, name) values(16, "Palo Alto"); insert into counties(state_id, name) values(16, "Plymouth"); insert into counties(state_id, name) values(16, "Pocahontas"); insert into counties(state_id, name) values(16, "Polk"); insert into counties(state_id, name) values(16, "Pottawattamie"); insert into counties(state_id, name) values(16, "Poweshiek"); insert into counties(state_id, name) values(16, "Ringgold"); insert into counties(state_id, name) values(16, "Sac"); insert into counties(state_id, name) values(16, "Scott"); insert into counties(state_id, name) values(16, "Shelby"); insert into counties(state_id, name) values(16, "Sioux"); insert into counties(state_id, name) values(16, "Story"); insert into counties(state_id, name) values(16, "Tama"); insert into counties(state_id, name) values(16, "Taylor"); insert into counties(state_id, name) values(16, "Union"); insert into counties(state_id, name) values(16, "<NAME>"); insert into counties(state_id, name) values(16, "Wapello"); insert into counties(state_id, name) values(16, "Warren"); insert into counties(state_id, name) values(16, "Washington"); insert into counties(state_id, name) values(16, "Wayne"); insert into counties(state_id, name) values(16, "Webster"); insert into counties(state_id, name) values(16, "Winnebago"); insert into counties(state_id, name) values(16, "Winneshiek"); insert into counties(state_id, name) values(16, "Woodbury"); insert into counties(state_id, name) values(16, "Worth"); insert into counties(state_id, name) values(16, "Wright"); insert into states(id, name) values(17, "Maine"); insert into counties(state_id, name) values(17, "Androscoggin"); insert into counties(state_id, name) values(17, "Aroostook"); insert into counties(state_id, name) values(17, "Cumberland"); insert into counties(state_id, name) values(17, "Franklin"); insert into counties(state_id, name) values(17, "Hancock"); insert into counties(state_id, name) values(17, "Kennebec"); insert into counties(state_id, name) values(17, "Knox"); insert into counties(state_id, name) values(17, "Lincoln"); insert into counties(state_id, name) values(17, "Oxford"); insert into counties(state_id, name) values(17, "Penobscot"); insert into counties(state_id, name) values(17, "Piscataquis"); insert into counties(state_id, name) values(17, "Sagadahoc"); insert into counties(state_id, name) values(17, "Somerset"); insert into counties(state_id, name) values(17, "Waldo"); insert into counties(state_id, name) values(17, "Washington"); insert into counties(state_id, name) values(17, "York"); insert into states(id, name) values(18, "Maryland"); insert into counties(state_id, name) values(18, "Allegany"); insert into counties(state_id, name) values(18, "<NAME>"); insert into counties(state_id, name) values(18, "Baltimore"); insert into counties(state_id, name) values(18, "Calvert"); insert into counties(state_id, name) values(18, "Caroline"); insert into counties(state_id, name) values(18, "Carroll"); insert into counties(state_id, name) values(18, "Cecil"); insert into counties(state_id, name) values(18, "Charles"); insert into counties(state_id, name) values(18, "Dorchester"); insert into counties(state_id, name) values(18, "Frederick"); insert into counties(state_id, name) values(18, "Garrett"); insert into counties(state_id, name) values(18, "Harford"); insert into counties(state_id, name) values(18, "Howard"); insert into counties(state_id, name) values(18, "Kent"); insert into counties(state_id, name) values(18, "Montgomery"); insert into counties(state_id, name) values(18, "<NAME>"); insert into counties(state_id, name) values(18, "<NAME>"); insert into counties(state_id, name) values(18, "St. Mary's"); insert into counties(state_id, name) values(18, "Somerset"); insert into counties(state_id, name) values(18, "Talbot"); insert into counties(state_id, name) values(18, "Washington"); insert into counties(state_id, name) values(18, "Wicomico"); insert into counties(state_id, name) values(18, "Worcester"); insert into counties(state_id, name) values(18, "Baltimore"); insert into states(id, name) values(19, "Mississippi"); insert into counties(state_id, name) values(19, "Adams"); insert into counties(state_id, name) values(19, "Alcorn"); insert into counties(state_id, name) values(19, "Amite"); insert into counties(state_id, name) values(19, "Attala"); insert into counties(state_id, name) values(19, "Benton"); insert into counties(state_id, name) values(19, "Bolivar"); insert into counties(state_id, name) values(19, "Calhoun"); insert into counties(state_id, name) values(19, "Carroll"); insert into counties(state_id, name) values(19, "Chickasaw"); insert into counties(state_id, name) values(19, "Choctaw"); insert into counties(state_id, name) values(19, "Claiborne"); insert into counties(state_id, name) values(19, "Clarke"); insert into counties(state_id, name) values(19, "Clay"); insert into counties(state_id, name) values(19, "Coahoma"); insert into counties(state_id, name) values(19, "Copiah"); insert into counties(state_id, name) values(19, "Covington"); insert into counties(state_id, name) values(19, "DeSoto"); insert into counties(state_id, name) values(19, "Forrest"); insert into counties(state_id, name) values(19, "Franklin"); insert into counties(state_id, name) values(19, "George"); insert into counties(state_id, name) values(19, "Greene"); insert into counties(state_id, name) values(19, "Grenada"); insert into counties(state_id, name) values(19, "Hancock"); insert into counties(state_id, name) values(19, "Harrison"); insert into counties(state_id, name) values(19, "Hinds"); insert into counties(state_id, name) values(19, "Holmes"); insert into counties(state_id, name) values(19, "Humphreys"); insert into counties(state_id, name) values(19, "Issaquena"); insert into counties(state_id, name) values(19, "Itawamba"); insert into counties(state_id, name) values(19, "Jackson"); insert into counties(state_id, name) values(19, "Jasper"); insert into counties(state_id, name) values(19, "Jefferson"); insert into counties(state_id, name) values(19, "<NAME>"); insert into counties(state_id, name) values(19, "Jones"); insert into counties(state_id, name) values(19, "Kemper"); insert into counties(state_id, name) values(19, "Lafayette"); insert into counties(state_id, name) values(19, "Lamar"); insert into counties(state_id, name) values(19, "Lauderdale"); insert into counties(state_id, name) values(19, "Lawrence"); insert into counties(state_id, name) values(19, "Leake"); insert into counties(state_id, name) values(19, "Lee"); insert into counties(state_id, name) values(19, "Leflore"); insert into counties(state_id, name) values(19, "Lincoln"); insert into counties(state_id, name) values(19, "Lowndes"); insert into counties(state_id, name) values(19, "Madison"); insert into counties(state_id, name) values(19, "Marion"); insert into counties(state_id, name) values(19, "Marshall"); insert into counties(state_id, name) values(19, "Monroe"); insert into counties(state_id, name) values(19, "Montgomery"); insert into counties(state_id, name) values(19, "Neshoba"); insert into counties(state_id, name) values(19, "Newton"); insert into counties(state_id, name) values(19, "Noxubee"); insert into counties(state_id, name) values(19, "Oktibbeha"); insert into counties(state_id, name) values(19, "Panola"); insert into counties(state_id, name) values(19, "<NAME>"); insert into counties(state_id, name) values(19, "Perry"); insert into counties(state_id, name) values(19, "Pike"); insert into counties(state_id, name) values(19, "Pontotoc"); insert into counties(state_id, name) values(19, "Prentiss"); insert into counties(state_id, name) values(19, "Quitman"); insert into counties(state_id, name) values(19, "Rankin"); insert into counties(state_id, name) values(19, "Scott"); insert into counties(state_id, name) values(19, "Sharkey"); insert into counties(state_id, name) values(19, "Simpson"); insert into counties(state_id, name) values(19, "Smith"); insert into counties(state_id, name) values(19, "Stone"); insert into counties(state_id, name) values(19, "Sunflower"); insert into counties(state_id, name) values(19, "Tallahatchie"); insert into counties(state_id, name) values(19, "Tate"); insert into counties(state_id, name) values(19, "Tippah"); insert into counties(state_id, name) values(19, "Tishomingo"); insert into counties(state_id, name) values(19, "Tunica"); insert into counties(state_id, name) values(19, "Union"); insert into counties(state_id, name) values(19, "Walthall"); insert into counties(state_id, name) values(19, "Warren"); insert into counties(state_id, name) values(19, "Washington"); insert into counties(state_id, name) values(19, "Wayne"); insert into counties(state_id, name) values(19, "Webster"); insert into counties(state_id, name) values(19, "Wilkinson"); insert into counties(state_id, name) values(19, "Winston"); insert into counties(state_id, name) values(19, "Yalobusha"); insert into counties(state_id, name) values(19, "Yazoo"); insert into states(id, name) values(20, "Washington"); insert into counties(state_id, name) values(20, "Adams"); insert into counties(state_id, name) values(20, "Asotin"); insert into counties(state_id, name) values(20, "Benton"); insert into counties(state_id, name) values(20, "Chelan"); insert into counties(state_id, name) values(20, "Clallam"); insert into counties(state_id, name) values(20, "Clark"); insert into counties(state_id, name) values(20, "Columbia"); insert into counties(state_id, name) values(20, "Cowlitz"); insert into counties(state_id, name) values(20, "Douglas"); insert into counties(state_id, name) values(20, "Ferry"); insert into counties(state_id, name) values(20, "Franklin"); insert into counties(state_id, name) values(20, "Garfield"); insert into counties(state_id, name) values(20, "Grant"); insert into counties(state_id, name) values(20, "<NAME>"); insert into counties(state_id, name) values(20, "Island"); insert into counties(state_id, name) values(20, "Jefferson"); insert into counties(state_id, name) values(20, "King"); insert into counties(state_id, name) values(20, "Kitsap"); insert into counties(state_id, name) values(20, "Kittitas"); insert into counties(state_id, name) values(20, "Klickitat"); insert into counties(state_id, name) values(20, "Lewis"); insert into counties(state_id, name) values(20, "Lincoln"); insert into counties(state_id, name) values(20, "Mason"); insert into counties(state_id, name) values(20, "Okanogan"); insert into counties(state_id, name) values(20, "Pacific"); insert into counties(state_id, name) values(20, "Pend Oreille"); insert into counties(state_id, name) values(20, "Pierce"); insert into counties(state_id, name) values(20, "<NAME>uan"); insert into counties(state_id, name) values(20, "Skagit"); insert into counties(state_id, name) values(20, "Skamania"); insert into counties(state_id, name) values(20, "Snohomish"); insert into counties(state_id, name) values(20, "Spokane"); insert into counties(state_id, name) values(20, "Stevens"); insert into counties(state_id, name) values(20, "Thurston"); insert into counties(state_id, name) values(20, "Wahkiakum"); insert into counties(state_id, name) values(20, "<NAME>"); insert into counties(state_id, name) values(20, "Whatcom"); insert into counties(state_id, name) values(20, "Whitman"); insert into counties(state_id, name) values(20, "Yakima"); insert into states(id, name) values(21, "Georgia"); insert into counties(state_id, name) values(21, "Appling"); insert into counties(state_id, name) values(21, "Atkinson"); insert into counties(state_id, name) values(21, "Bacon"); insert into counties(state_id, name) values(21, "Baker"); insert into counties(state_id, name) values(21, "Baldwin"); insert into counties(state_id, name) values(21, "Banks"); insert into counties(state_id, name) values(21, "Barrow"); insert into counties(state_id, name) values(21, "Bartow"); insert into counties(state_id, name) values(21, "<NAME>"); insert into counties(state_id, name) values(21, "Berrien"); insert into counties(state_id, name) values(21, "Bibb"); insert into counties(state_id, name) values(21, "Bleckley"); insert into counties(state_id, name) values(21, "Brantley"); insert into counties(state_id, name) values(21, "Brooks"); insert into counties(state_id, name) values(21, "Bryan"); insert into counties(state_id, name) values(21, "Bulloch"); insert into counties(state_id, name) values(21, "Burke"); insert into counties(state_id, name) values(21, "Butts"); insert into counties(state_id, name) values(21, "Calhoun"); insert into counties(state_id, name) values(21, "Camden"); insert into counties(state_id, name) values(21, "Candler"); insert into counties(state_id, name) values(21, "Carroll"); insert into counties(state_id, name) values(21, "Catoosa"); insert into counties(state_id, name) values(21, "Charlton"); insert into counties(state_id, name) values(21, "Chatham"); insert into counties(state_id, name) values(21, "Chattahoochee"); insert into counties(state_id, name) values(21, "Chattooga"); insert into counties(state_id, name) values(21, "Cherokee"); insert into counties(state_id, name) values(21, "Clarke"); insert into counties(state_id, name) values(21, "Clay"); insert into counties(state_id, name) values(21, "Clayton"); insert into counties(state_id, name) values(21, "Clinch"); insert into counties(state_id, name) values(21, "Cobb"); insert into counties(state_id, name) values(21, "Coffee"); insert into counties(state_id, name) values(21, "Colquitt"); insert into counties(state_id, name) values(21, "Columbia"); insert into counties(state_id, name) values(21, "Cook"); insert into counties(state_id, name) values(21, "Coweta"); insert into counties(state_id, name) values(21, "Crawford"); insert into counties(state_id, name) values(21, "Crisp"); insert into counties(state_id, name) values(21, "Dade"); insert into counties(state_id, name) values(21, "Dawson"); insert into counties(state_id, name) values(21, "Decatur"); insert into counties(state_id, name) values(21, "DeKalb"); insert into counties(state_id, name) values(21, "Dodge"); insert into counties(state_id, name) values(21, "Dooly"); insert into counties(state_id, name) values(21, "Dougherty"); insert into counties(state_id, name) values(21, "Douglas"); insert into counties(state_id, name) values(21, "Early"); insert into counties(state_id, name) values(21, "Echols"); insert into counties(state_id, name) values(21, "Effingham"); insert into counties(state_id, name) values(21, "Elbert"); insert into counties(state_id, name) values(21, "Emanuel"); insert into counties(state_id, name) values(21, "Evans"); insert into counties(state_id, name) values(21, "Fannin"); insert into counties(state_id, name) values(21, "Fayette"); insert into counties(state_id, name) values(21, "Floyd"); insert into counties(state_id, name) values(21, "Forsyth"); insert into counties(state_id, name) values(21, "Franklin"); insert into counties(state_id, name) values(21, "Fulton"); insert into counties(state_id, name) values(21, "Gilmer"); insert into counties(state_id, name) values(21, "Glascock"); insert into counties(state_id, name) values(21, "Glynn"); insert into counties(state_id, name) values(21, "Gordon"); insert into counties(state_id, name) values(21, "Grady"); insert into counties(state_id, name) values(21, "Greene"); insert into counties(state_id, name) values(21, "Gwinnett"); insert into counties(state_id, name) values(21, "Habersham"); insert into counties(state_id, name) values(21, "Hall"); insert into counties(state_id, name) values(21, "Hancock"); insert into counties(state_id, name) values(21, "Haralson"); insert into counties(state_id, name) values(21, "Harris"); insert into counties(state_id, name) values(21, "Hart"); insert into counties(state_id, name) values(21, "Heard"); insert into counties(state_id, name) values(21, "Henry"); insert into counties(state_id, name) values(21, "Houston"); insert into counties(state_id, name) values(21, "Irwin"); insert into counties(state_id, name) values(21, "Jackson"); insert into counties(state_id, name) values(21, "Jasper"); insert into counties(state_id, name) values(21, "<NAME>"); insert into counties(state_id, name) values(21, "Jefferson"); insert into counties(state_id, name) values(21, "Jenkins"); insert into counties(state_id, name) values(21, "Johnson"); insert into counties(state_id, name) values(21, "Jones"); insert into counties(state_id, name) values(21, "Lamar"); insert into counties(state_id, name) values(21, "Lanier"); insert into counties(state_id, name) values(21, "Laurens"); insert into counties(state_id, name) values(21, "Lee"); insert into counties(state_id, name) values(21, "Liberty"); insert into counties(state_id, name) values(21, "Lincoln"); insert into counties(state_id, name) values(21, "Long"); insert into counties(state_id, name) values(21, "Lowndes"); insert into counties(state_id, name) values(21, "Lumpkin"); insert into counties(state_id, name) values(21, "McDuffie"); insert into counties(state_id, name) values(21, "McIntosh"); insert into counties(state_id, name) values(21, "Macon"); insert into counties(state_id, name) values(21, "Madison"); insert into counties(state_id, name) values(21, "Marion"); insert into counties(state_id, name) values(21, "Meriwether"); insert into counties(state_id, name) values(21, "Miller"); insert into counties(state_id, name) values(21, "Mitchell"); insert into counties(state_id, name) values(21, "Monroe"); insert into counties(state_id, name) values(21, "Montgomery"); insert into counties(state_id, name) values(21, "Morgan"); insert into counties(state_id, name) values(21, "Murray"); insert into counties(state_id, name) values(21, "Muscogee"); insert into counties(state_id, name) values(21, "Newton"); insert into counties(state_id, name) values(21, "Oconee"); insert into counties(state_id, name) values(21, "Oglethorpe"); insert into counties(state_id, name) values(21, "Paulding"); insert into counties(state_id, name) values(21, "Peach"); insert into counties(state_id, name) values(21, "Pickens"); insert into counties(state_id, name) values(21, "Pierce"); insert into counties(state_id, name) values(21, "Pike"); insert into counties(state_id, name) values(21, "Polk"); insert into counties(state_id, name) values(21, "Pulaski"); insert into counties(state_id, name) values(21, "Putnam"); insert into counties(state_id, name) values(21, "Quitman"); insert into counties(state_id, name) values(21, "Rabun"); insert into counties(state_id, name) values(21, "Randolph"); insert into counties(state_id, name) values(21, "Richmond"); insert into counties(state_id, name) values(21, "Rockdale"); insert into counties(state_id, name) values(21, "Schley"); insert into counties(state_id, name) values(21, "Screven"); insert into counties(state_id, name) values(21, "Seminole"); insert into counties(state_id, name) values(21, "Spalding"); insert into counties(state_id, name) values(21, "Stephens"); insert into counties(state_id, name) values(21, "Stewart"); insert into counties(state_id, name) values(21, "Sumter"); insert into counties(state_id, name) values(21, "Talbot"); insert into counties(state_id, name) values(21, "Taliaferro"); insert into counties(state_id, name) values(21, "Tattnall"); insert into counties(state_id, name) values(21, "Taylor"); insert into counties(state_id, name) values(21, "Telfair"); insert into counties(state_id, name) values(21, "Terrell"); insert into counties(state_id, name) values(21, "Thomas"); insert into counties(state_id, name) values(21, "Tift"); insert into counties(state_id, name) values(21, "Toombs"); insert into counties(state_id, name) values(21, "Towns"); insert into counties(state_id, name) values(21, "Treutlen"); insert into counties(state_id, name) values(21, "Troup"); insert into counties(state_id, name) values(21, "Turner"); insert into counties(state_id, name) values(21, "Twiggs"); insert into counties(state_id, name) values(21, "Union"); insert into counties(state_id, name) values(21, "Upson"); insert into counties(state_id, name) values(21, "Walker"); insert into counties(state_id, name) values(21, "Walton"); insert into counties(state_id, name) values(21, "Ware"); insert into counties(state_id, name) values(21, "Warren"); insert into counties(state_id, name) values(21, "Washington"); insert into counties(state_id, name) values(21, "Wayne"); insert into counties(state_id, name) values(21, "Webster"); insert into counties(state_id, name) values(21, "Wheeler"); insert into counties(state_id, name) values(21, "White"); insert into counties(state_id, name) values(21, "Whitfield"); insert into counties(state_id, name) values(21, "Wilcox"); insert into counties(state_id, name) values(21, "Wilkes"); insert into counties(state_id, name) values(21, "Wilkinson"); insert into counties(state_id, name) values(21, "Worth"); insert into states(id, name) values(22, "Illinois"); insert into counties(state_id, name) values(22, "Adams"); insert into counties(state_id, name) values(22, "Alexander"); insert into counties(state_id, name) values(22, "Bond"); insert into counties(state_id, name) values(22, "Boone"); insert into counties(state_id, name) values(22, "Brown"); insert into counties(state_id, name) values(22, "Bureau"); insert into counties(state_id, name) values(22, "Calhoun"); insert into counties(state_id, name) values(22, "Carroll"); insert into counties(state_id, name) values(22, "Cass"); insert into counties(state_id, name) values(22, "Champaign"); insert into counties(state_id, name) values(22, "Christian"); insert into counties(state_id, name) values(22, "Clark"); insert into counties(state_id, name) values(22, "Clay"); insert into counties(state_id, name) values(22, "Clinton"); insert into counties(state_id, name) values(22, "Coles"); insert into counties(state_id, name) values(22, "Cook"); insert into counties(state_id, name) values(22, "Crawford"); insert into counties(state_id, name) values(22, "Cumberland"); insert into counties(state_id, name) values(22, "DeKalb"); insert into counties(state_id, name) values(22, "<NAME>"); insert into counties(state_id, name) values(22, "Douglas"); insert into counties(state_id, name) values(22, "DuPage"); insert into counties(state_id, name) values(22, "Edgar"); insert into counties(state_id, name) values(22, "Edwards"); insert into counties(state_id, name) values(22, "Effingham"); insert into counties(state_id, name) values(22, "Fayette"); insert into counties(state_id, name) values(22, "Ford"); insert into counties(state_id, name) values(22, "Franklin"); insert into counties(state_id, name) values(22, "Fulton"); insert into counties(state_id, name) values(22, "Gallatin"); insert into counties(state_id, name) values(22, "Greene"); insert into counties(state_id, name) values(22, "Grundy"); insert into counties(state_id, name) values(22, "Hamilton"); insert into counties(state_id, name) values(22, "Hancock"); insert into counties(state_id, name) values(22, "Hardin"); insert into counties(state_id, name) values(22, "Henderson"); insert into counties(state_id, name) values(22, "Henry"); insert into counties(state_id, name) values(22, "Iroquois"); insert into counties(state_id, name) values(22, "Jackson"); insert into counties(state_id, name) values(22, "Jasper"); insert into counties(state_id, name) values(22, "Jefferson"); insert into counties(state_id, name) values(22, "Jersey"); insert into counties(state_id, name) values(22, "<NAME>"); insert into counties(state_id, name) values(22, "Johnson"); insert into counties(state_id, name) values(22, "Kane"); insert into counties(state_id, name) values(22, "Kankakee"); insert into counties(state_id, name) values(22, "Kendall"); insert into counties(state_id, name) values(22, "Knox"); insert into counties(state_id, name) values(22, "Lake"); insert into counties(state_id, name) values(22, "LaSalle"); insert into counties(state_id, name) values(22, "Lawrence"); insert into counties(state_id, name) values(22, "Lee"); insert into counties(state_id, name) values(22, "Livingston"); insert into counties(state_id, name) values(22, "Logan"); insert into counties(state_id, name) values(22, "McDonough"); insert into counties(state_id, name) values(22, "McHenry"); insert into counties(state_id, name) values(22, "McLean"); insert into counties(state_id, name) values(22, "Macon"); insert into counties(state_id, name) values(22, "Macoupin"); insert into counties(state_id, name) values(22, "Madison"); insert into counties(state_id, name) values(22, "Marion"); insert into counties(state_id, name) values(22, "Marshall"); insert into counties(state_id, name) values(22, "Mason"); insert into counties(state_id, name) values(22, "Massac"); insert into counties(state_id, name) values(22, "Menard"); insert into counties(state_id, name) values(22, "Mercer"); insert into counties(state_id, name) values(22, "Monroe"); insert into counties(state_id, name) values(22, "Montgomery"); insert into counties(state_id, name) values(22, "Morgan"); insert into counties(state_id, name) values(22, "Moultrie"); insert into counties(state_id, name) values(22, "Ogle"); insert into counties(state_id, name) values(22, "Peoria"); insert into counties(state_id, name) values(22, "Perry"); insert into counties(state_id, name) values(22, "Piatt"); insert into counties(state_id, name) values(22, "Pike"); insert into counties(state_id, name) values(22, "Pope"); insert into counties(state_id, name) values(22, "Pulaski"); insert into counties(state_id, name) values(22, "Putnam"); insert into counties(state_id, name) values(22, "Randolph"); insert into counties(state_id, name) values(22, "Richland"); insert into counties(state_id, name) values(22, "<NAME>"); insert into counties(state_id, name) values(22, "St. Clair"); insert into counties(state_id, name) values(22, "Saline"); insert into counties(state_id, name) values(22, "Sangamon"); insert into counties(state_id, name) values(22, "Schuyler"); insert into counties(state_id, name) values(22, "Scott"); insert into counties(state_id, name) values(22, "Shelby"); insert into counties(state_id, name) values(22, "Stark"); insert into counties(state_id, name) values(22, "Stephenson"); insert into counties(state_id, name) values(22, "Tazewell"); insert into counties(state_id, name) values(22, "Union"); insert into counties(state_id, name) values(22, "Vermilion"); insert into counties(state_id, name) values(22, "Wabash"); insert into counties(state_id, name) values(22, "Warren"); insert into counties(state_id, name) values(22, "Washington"); insert into counties(state_id, name) values(22, "Wayne"); insert into counties(state_id, name) values(22, "White"); insert into counties(state_id, name) values(22, "Whiteside"); insert into counties(state_id, name) values(22, "Will"); insert into counties(state_id, name) values(22, "Williamson"); insert into counties(state_id, name) values(22, "Winnebago"); insert into counties(state_id, name) values(22, "Woodford"); insert into states(id, name) values(23, "Indiana"); insert into counties(state_id, name) values(23, "Adams"); insert into counties(state_id, name) values(23, "Allen"); insert into counties(state_id, name) values(23, "Bartholomew"); insert into counties(state_id, name) values(23, "Benton"); insert into counties(state_id, name) values(23, "Blackford"); insert into counties(state_id, name) values(23, "Boone"); insert into counties(state_id, name) values(23, "Brown"); insert into counties(state_id, name) values(23, "Carroll"); insert into counties(state_id, name) values(23, "Cass"); insert into counties(state_id, name) values(23, "Clark"); insert into counties(state_id, name) values(23, "Clay"); insert into counties(state_id, name) values(23, "Clinton"); insert into counties(state_id, name) values(23, "Crawford"); insert into counties(state_id, name) values(23, "Daviess"); insert into counties(state_id, name) values(23, "Dearborn"); insert into counties(state_id, name) values(23, "Decatur"); insert into counties(state_id, name) values(23, "DeKalb"); insert into counties(state_id, name) values(23, "Delaware"); insert into counties(state_id, name) values(23, "Dubois"); insert into counties(state_id, name) values(23, "Elkhart"); insert into counties(state_id, name) values(23, "Fayette"); insert into counties(state_id, name) values(23, "Floyd"); insert into counties(state_id, name) values(23, "Fountain"); insert into counties(state_id, name) values(23, "Franklin"); insert into counties(state_id, name) values(23, "Fulton"); insert into counties(state_id, name) values(23, "Gibson"); insert into counties(state_id, name) values(23, "Grant"); insert into counties(state_id, name) values(23, "Greene"); insert into counties(state_id, name) values(23, "Hamilton"); insert into counties(state_id, name) values(23, "Hancock"); insert into counties(state_id, name) values(23, "Harrison"); insert into counties(state_id, name) values(23, "Hendricks"); insert into counties(state_id, name) values(23, "Henry"); insert into counties(state_id, name) values(23, "Howard"); insert into counties(state_id, name) values(23, "Huntington"); insert into counties(state_id, name) values(23, "Jackson"); insert into counties(state_id, name) values(23, "Jasper"); insert into counties(state_id, name) values(23, "Jay"); insert into counties(state_id, name) values(23, "Jefferson"); insert into counties(state_id, name) values(23, "Jennings"); insert into counties(state_id, name) values(23, "Johnson"); insert into counties(state_id, name) values(23, "Knox"); insert into counties(state_id, name) values(23, "Kosciusko"); insert into counties(state_id, name) values(23, "LaGrange"); insert into counties(state_id, name) values(23, "Lake"); insert into counties(state_id, name) values(23, "LaPorte"); insert into counties(state_id, name) values(23, "Lawrence"); insert into counties(state_id, name) values(23, "Madison"); insert into counties(state_id, name) values(23, "Marion"); insert into counties(state_id, name) values(23, "Marshall"); insert into counties(state_id, name) values(23, "Martin"); insert into counties(state_id, name) values(23, "Miami"); insert into counties(state_id, name) values(23, "Monroe"); insert into counties(state_id, name) values(23, "Montgomery"); insert into counties(state_id, name) values(23, "Morgan"); insert into counties(state_id, name) values(23, "Newton"); insert into counties(state_id, name) values(23, "Noble"); insert into counties(state_id, name) values(23, "Ohio"); insert into counties(state_id, name) values(23, "Orange"); insert into counties(state_id, name) values(23, "Owen"); insert into counties(state_id, name) values(23, "Parke"); insert into counties(state_id, name) values(23, "Perry"); insert into counties(state_id, name) values(23, "Pike"); insert into counties(state_id, name) values(23, "Porter"); insert into counties(state_id, name) values(23, "Posey"); insert into counties(state_id, name) values(23, "Pulaski"); insert into counties(state_id, name) values(23, "Putnam"); insert into counties(state_id, name) values(23, "Randolph"); insert into counties(state_id, name) values(23, "Ripley"); insert into counties(state_id, name) values(23, "Rush"); insert into counties(state_id, name) values(23, "St. Joseph"); insert into counties(state_id, name) values(23, "Scott"); insert into counties(state_id, name) values(23, "Shelby"); insert into counties(state_id, name) values(23, "Spencer"); insert into counties(state_id, name) values(23, "Starke"); insert into counties(state_id, name) values(23, "Steuben"); insert into counties(state_id, name) values(23, "Sullivan"); insert into counties(state_id, name) values(23, "Switzerland"); insert into counties(state_id, name) values(23, "Tippecanoe"); insert into counties(state_id, name) values(23, "Tipton"); insert into counties(state_id, name) values(23, "Union"); insert into counties(state_id, name) values(23, "Vanderburgh"); insert into counties(state_id, name) values(23, "Vermillion"); insert into counties(state_id, name) values(23, "Vigo"); insert into counties(state_id, name) values(23, "Wabash"); insert into counties(state_id, name) values(23, "Warren"); insert into counties(state_id, name) values(23, "Warrick"); insert into counties(state_id, name) values(23, "Washington"); insert into counties(state_id, name) values(23, "Wayne"); insert into counties(state_id, name) values(23, "Wells"); insert into counties(state_id, name) values(23, "White"); insert into counties(state_id, name) values(23, "Whitley"); insert into states(id, name) values(24, "Wisconsin"); insert into counties(state_id, name) values(24, "Adams"); insert into counties(state_id, name) values(24, "Ashland"); insert into counties(state_id, name) values(24, "Barron"); insert into counties(state_id, name) values(24, "Bayfield"); insert into counties(state_id, name) values(24, "Brown"); insert into counties(state_id, name) values(24, "Buffalo"); insert into counties(state_id, name) values(24, "Burnett"); insert into counties(state_id, name) values(24, "Calumet"); insert into counties(state_id, name) values(24, "Chippewa"); insert into counties(state_id, name) values(24, "Clark"); insert into counties(state_id, name) values(24, "Columbia"); insert into counties(state_id, name) values(24, "Crawford"); insert into counties(state_id, name) values(24, "Dane"); insert into counties(state_id, name) values(24, "Dodge"); insert into counties(state_id, name) values(24, "Door"); insert into counties(state_id, name) values(24, "Douglas"); insert into counties(state_id, name) values(24, "Dunn"); insert into counties(state_id, name) values(24, "<NAME>"); insert into counties(state_id, name) values(24, "Florence"); insert into counties(state_id, name) values(24, "<NAME>"); insert into counties(state_id, name) values(24, "Forest"); insert into counties(state_id, name) values(24, "Grant"); insert into counties(state_id, name) values(24, "Green"); insert into counties(state_id, name) values(24, "Green Lake"); insert into counties(state_id, name) values(24, "Iowa"); insert into counties(state_id, name) values(24, "Iron"); insert into counties(state_id, name) values(24, "Jackson"); insert into counties(state_id, name) values(24, "Jefferson"); insert into counties(state_id, name) values(24, "Juneau"); insert into counties(state_id, name) values(24, "Kenosha"); insert into counties(state_id, name) values(24, "Kewaunee"); insert into counties(state_id, name) values(24, "La Crosse"); insert into counties(state_id, name) values(24, "Lafayette"); insert into counties(state_id, name) values(24, "Langlade"); insert into counties(state_id, name) values(24, "Lincoln"); insert into counties(state_id, name) values(24, "Manitowoc"); insert into counties(state_id, name) values(24, "Marathon"); insert into counties(state_id, name) values(24, "Marinette"); insert into counties(state_id, name) values(24, "Marquette"); insert into counties(state_id, name) values(24, "Menominee"); insert into counties(state_id, name) values(24, "Milwaukee"); insert into counties(state_id, name) values(24, "Monroe"); insert into counties(state_id, name) values(24, "Oconto"); insert into counties(state_id, name) values(24, "Oneida"); insert into counties(state_id, name) values(24, "Outagamie"); insert into counties(state_id, name) values(24, "Ozaukee"); insert into counties(state_id, name) values(24, "Pepin"); insert into counties(state_id, name) values(24, "Pierce"); insert into counties(state_id, name) values(24, "Polk"); insert into counties(state_id, name) values(24, "Portage"); insert into counties(state_id, name) values(24, "Price"); insert into counties(state_id, name) values(24, "Racine"); insert into counties(state_id, name) values(24, "Richland"); insert into counties(state_id, name) values(24, "Rock"); insert into counties(state_id, name) values(24, "Rusk"); insert into counties(state_id, name) values(24, "St. Croix"); insert into counties(state_id, name) values(24, "Sauk"); insert into counties(state_id, name) values(24, "Sawyer"); insert into counties(state_id, name) values(24, "Shawano"); insert into counties(state_id, name) values(24, "Sheboygan"); insert into counties(state_id, name) values(24, "Taylor"); insert into counties(state_id, name) values(24, "Trempealeau"); insert into counties(state_id, name) values(24, "Vernon"); insert into counties(state_id, name) values(24, "Vilas"); insert into counties(state_id, name) values(24, "Walworth"); insert into counties(state_id, name) values(24, "Washburn"); insert into counties(state_id, name) values(24, "Washington"); insert into counties(state_id, name) values(24, "Waukesha"); insert into counties(state_id, name) values(24, "Waupaca"); insert into counties(state_id, name) values(24, "Waushara"); insert into counties(state_id, name) values(24, "Winnebago"); insert into counties(state_id, name) values(24, "Wood"); insert into states(id, name) values(25, "North Carolina"); insert into counties(state_id, name) values(25, "Alamance"); insert into counties(state_id, name) values(25, "Alexander"); insert into counties(state_id, name) values(25, "Alleghany"); insert into counties(state_id, name) values(25, "Anson"); insert into counties(state_id, name) values(25, "Ashe"); insert into counties(state_id, name) values(25, "Avery"); insert into counties(state_id, name) values(25, "Beaufort"); insert into counties(state_id, name) values(25, "Bertie"); insert into counties(state_id, name) values(25, "Bladen"); insert into counties(state_id, name) values(25, "Brunswick"); insert into counties(state_id, name) values(25, "Buncombe"); insert into counties(state_id, name) values(25, "Burke"); insert into counties(state_id, name) values(25, "Cabarrus"); insert into counties(state_id, name) values(25, "Caldwell"); insert into counties(state_id, name) values(25, "Camden"); insert into counties(state_id, name) values(25, "Carteret"); insert into counties(state_id, name) values(25, "Caswell"); insert into counties(state_id, name) values(25, "Catawba"); insert into counties(state_id, name) values(25, "Chatham"); insert into counties(state_id, name) values(25, "Cherokee"); insert into counties(state_id, name) values(25, "Chowan"); insert into counties(state_id, name) values(25, "Clay"); insert into counties(state_id, name) values(25, "Cleveland"); insert into counties(state_id, name) values(25, "Columbus"); insert into counties(state_id, name) values(25, "Craven"); insert into counties(state_id, name) values(25, "Cumberland"); insert into counties(state_id, name) values(25, "Currituck"); insert into counties(state_id, name) values(25, "Dare"); insert into counties(state_id, name) values(25, "Davidson"); insert into counties(state_id, name) values(25, "Davie"); insert into counties(state_id, name) values(25, "Duplin"); insert into counties(state_id, name) values(25, "Durham"); insert into counties(state_id, name) values(25, "Edgecombe"); insert into counties(state_id, name) values(25, "Forsyth"); insert into counties(state_id, name) values(25, "Franklin"); insert into counties(state_id, name) values(25, "Gaston"); insert into counties(state_id, name) values(25, "Gates"); insert into counties(state_id, name) values(25, "Graham"); insert into counties(state_id, name) values(25, "Granville"); insert into counties(state_id, name) values(25, "Greene"); insert into counties(state_id, name) values(25, "Guilford"); insert into counties(state_id, name) values(25, "Halifax"); insert into counties(state_id, name) values(25, "Harnett"); insert into counties(state_id, name) values(25, "Haywood"); insert into counties(state_id, name) values(25, "Henderson"); insert into counties(state_id, name) values(25, "Hertford"); insert into counties(state_id, name) values(25, "Hoke"); insert into counties(state_id, name) values(25, "Hyde"); insert into counties(state_id, name) values(25, "Iredell"); insert into counties(state_id, name) values(25, "Jackson"); insert into counties(state_id, name) values(25, "Johnston"); insert into counties(state_id, name) values(25, "Jones"); insert into counties(state_id, name) values(25, "Lee"); insert into counties(state_id, name) values(25, "Lenoir"); insert into counties(state_id, name) values(25, "Lincoln"); insert into counties(state_id, name) values(25, "McDowell"); insert into counties(state_id, name) values(25, "Macon"); insert into counties(state_id, name) values(25, "Madison"); insert into counties(state_id, name) values(25, "Martin"); insert into counties(state_id, name) values(25, "Mecklenburg"); insert into counties(state_id, name) values(25, "Mitchell"); insert into counties(state_id, name) values(25, "Montgomery"); insert into counties(state_id, name) values(25, "Moore"); insert into counties(state_id, name) values(25, "Nash"); insert into counties(state_id, name) values(25, "New Hanover"); insert into counties(state_id, name) values(25, "Northampton"); insert into counties(state_id, name) values(25, "Onslow"); insert into counties(state_id, name) values(25, "Orange"); insert into counties(state_id, name) values(25, "Pamlico"); insert into counties(state_id, name) values(25, "Pasquotank"); insert into counties(state_id, name) values(25, "Pender"); insert into counties(state_id, name) values(25, "Perquimans"); insert into counties(state_id, name) values(25, "Person"); insert into counties(state_id, name) values(25, "Pitt"); insert into counties(state_id, name) values(25, "Polk"); insert into counties(state_id, name) values(25, "Randolph"); insert into counties(state_id, name) values(25, "Richmond"); insert into counties(state_id, name) values(25, "Robeson"); insert into counties(state_id, name) values(25, "Rockingham"); insert into counties(state_id, name) values(25, "Rowan"); insert into counties(state_id, name) values(25, "Rutherford"); insert into counties(state_id, name) values(25, "Sampson"); insert into counties(state_id, name) values(25, "Scotland"); insert into counties(state_id, name) values(25, "Stanly"); insert into counties(state_id, name) values(25, "Stokes"); insert into counties(state_id, name) values(25, "Surry"); insert into counties(state_id, name) values(25, "Swain"); insert into counties(state_id, name) values(25, "Transylvania"); insert into counties(state_id, name) values(25, "Tyrrell"); insert into counties(state_id, name) values(25, "Union"); insert into counties(state_id, name) values(25, "Vance"); insert into counties(state_id, name) values(25, "Wake"); insert into counties(state_id, name) values(25, "Warren"); insert into counties(state_id, name) values(25, "Washington"); insert into counties(state_id, name) values(25, "Watauga"); insert into counties(state_id, name) values(25, "Wayne"); insert into counties(state_id, name) values(25, "Wilkes"); insert into counties(state_id, name) values(25, "Wilson"); insert into counties(state_id, name) values(25, "Yadkin"); insert into counties(state_id, name) values(25, "Yancey"); insert into states(id, name) values(26, "Oklahoma"); insert into counties(state_id, name) values(26, "Adair"); insert into counties(state_id, name) values(26, "Alfalfa"); insert into counties(state_id, name) values(26, "Atoka"); insert into counties(state_id, name) values(26, "Beaver"); insert into counties(state_id, name) values(26, "Beckham"); insert into counties(state_id, name) values(26, "Blaine"); insert into counties(state_id, name) values(26, "Bryan"); insert into counties(state_id, name) values(26, "Caddo"); insert into counties(state_id, name) values(26, "Canadian"); insert into counties(state_id, name) values(26, "Carter"); insert into counties(state_id, name) values(26, "Cherokee"); insert into counties(state_id, name) values(26, "Choctaw"); insert into counties(state_id, name) values(26, "Cimarron"); insert into counties(state_id, name) values(26, "Cleveland"); insert into counties(state_id, name) values(26, "Coal"); insert into counties(state_id, name) values(26, "Comanche"); insert into counties(state_id, name) values(26, "Cotton"); insert into counties(state_id, name) values(26, "Craig"); insert into counties(state_id, name) values(26, "Creek"); insert into counties(state_id, name) values(26, "Custer"); insert into counties(state_id, name) values(26, "Delaware"); insert into counties(state_id, name) values(26, "Dewey"); insert into counties(state_id, name) values(26, "Ellis"); insert into counties(state_id, name) values(26, "Garfield"); insert into counties(state_id, name) values(26, "Garvin"); insert into counties(state_id, name) values(26, "Grady"); insert into counties(state_id, name) values(26, "Grant"); insert into counties(state_id, name) values(26, "Greer"); insert into counties(state_id, name) values(26, "Harmon"); insert into counties(state_id, name) values(26, "Harper"); insert into counties(state_id, name) values(26, "Haskell"); insert into counties(state_id, name) values(26, "Hughes"); insert into counties(state_id, name) values(26, "Jackson"); insert into counties(state_id, name) values(26, "Jefferson"); insert into counties(state_id, name) values(26, "Johnston"); insert into counties(state_id, name) values(26, "Kay"); insert into counties(state_id, name) values(26, "Kingfisher"); insert into counties(state_id, name) values(26, "Kiowa"); insert into counties(state_id, name) values(26, "Latimer"); insert into counties(state_id, name) values(26, "<NAME>"); insert into counties(state_id, name) values(26, "Lincoln"); insert into counties(state_id, name) values(26, "Logan"); insert into counties(state_id, name) values(26, "Love"); insert into counties(state_id, name) values(26, "McClain"); insert into counties(state_id, name) values(26, "McCurtain"); insert into counties(state_id, name) values(26, "McIntosh"); insert into counties(state_id, name) values(26, "Major"); insert into counties(state_id, name) values(26, "Marshall"); insert into counties(state_id, name) values(26, "Mayes"); insert into counties(state_id, name) values(26, "Murray"); insert into counties(state_id, name) values(26, "Muskogee"); insert into counties(state_id, name) values(26, "Noble"); insert into counties(state_id, name) values(26, "Nowata"); insert into counties(state_id, name) values(26, "Okfuskee"); insert into counties(state_id, name) values(26, "Oklahoma"); insert into counties(state_id, name) values(26, "Okmulgee"); insert into counties(state_id, name) values(26, "Osage"); insert into counties(state_id, name) values(26, "Ottawa"); insert into counties(state_id, name) values(26, "Pawnee"); insert into counties(state_id, name) values(26, "Payne"); insert into counties(state_id, name) values(26, "Pittsburg"); insert into counties(state_id, name) values(26, "Pontotoc"); insert into counties(state_id, name) values(26, "Pottawatomie"); insert into counties(state_id, name) values(26, "Pushmataha"); insert into counties(state_id, name) values(26, "Roger Mills"); insert into counties(state_id, name) values(26, "Rogers"); insert into counties(state_id, name) values(26, "Seminole"); insert into counties(state_id, name) values(26, "Sequoyah"); insert into counties(state_id, name) values(26, "Stephens"); insert into counties(state_id, name) values(26, "Texas"); insert into counties(state_id, name) values(26, "Tillman"); insert into counties(state_id, name) values(26, "Tulsa"); insert into counties(state_id, name) values(26, "Wagoner"); insert into counties(state_id, name) values(26, "Washington"); insert into counties(state_id, name) values(26, "Washita"); insert into counties(state_id, name) values(26, "Woods"); insert into counties(state_id, name) values(26, "Woodward"); insert into states(id, name) values(27, "Rhode Island"); insert into counties(state_id, name) values(27, "Bristol"); insert into counties(state_id, name) values(27, "Kent"); insert into counties(state_id, name) values(27, "Newport"); insert into counties(state_id, name) values(27, "Providence"); insert into counties(state_id, name) values(27, "Washington"); insert into states(id, name) values(28, "South Carolina"); insert into counties(state_id, name) values(28, "Abbeville"); insert into counties(state_id, name) values(28, "Aiken"); insert into counties(state_id, name) values(28, "Allendale"); insert into counties(state_id, name) values(28, "Anderson"); insert into counties(state_id, name) values(28, "Bamberg"); insert into counties(state_id, name) values(28, "Barnwell"); insert into counties(state_id, name) values(28, "Beaufort"); insert into counties(state_id, name) values(28, "Berkeley"); insert into counties(state_id, name) values(28, "Calhoun"); insert into counties(state_id, name) values(28, "Charleston"); insert into counties(state_id, name) values(28, "Cherokee"); insert into counties(state_id, name) values(28, "Chester"); insert into counties(state_id, name) values(28, "Chesterfield"); insert into counties(state_id, name) values(28, "Clarendon"); insert into counties(state_id, name) values(28, "Colleton"); insert into counties(state_id, name) values(28, "Darlington"); insert into counties(state_id, name) values(28, "Dillon"); insert into counties(state_id, name) values(28, "Dorchester"); insert into counties(state_id, name) values(28, "Edgefield"); insert into counties(state_id, name) values(28, "Fairfield"); insert into counties(state_id, name) values(28, "Florence"); insert into counties(state_id, name) values(28, "Georgetown"); insert into counties(state_id, name) values(28, "Greenville"); insert into counties(state_id, name) values(28, "Greenwood"); insert into counties(state_id, name) values(28, "Hampton"); insert into counties(state_id, name) values(28, "Horry"); insert into counties(state_id, name) values(28, "Jasper"); insert into counties(state_id, name) values(28, "Kershaw"); insert into counties(state_id, name) values(28, "Lancaster"); insert into counties(state_id, name) values(28, "Laurens"); insert into counties(state_id, name) values(28, "Lee"); insert into counties(state_id, name) values(28, "Lexington"); insert into counties(state_id, name) values(28, "McCormick"); insert into counties(state_id, name) values(28, "Marion"); insert into counties(state_id, name) values(28, "Marlboro"); insert into counties(state_id, name) values(28, "Newberry"); insert into counties(state_id, name) values(28, "Oconee"); insert into counties(state_id, name) values(28, "Orangeburg"); insert into counties(state_id, name) values(28, "Pickens"); insert into counties(state_id, name) values(28, "Richland"); insert into counties(state_id, name) values(28, "Saluda"); insert into counties(state_id, name) values(28, "Spartanburg"); insert into counties(state_id, name) values(28, "Sumter"); insert into counties(state_id, name) values(28, "Union"); insert into counties(state_id, name) values(28, "Williamsburg"); insert into counties(state_id, name) values(28, "York"); insert into states(id, name) values(29, "California"); insert into counties(state_id, name) values(29, "Alameda"); insert into counties(state_id, name) values(29, "Alpine"); insert into counties(state_id, name) values(29, "Amador"); insert into counties(state_id, name) values(29, "Butte"); insert into counties(state_id, name) values(29, "Calaveras"); insert into counties(state_id, name) values(29, "Colusa"); insert into counties(state_id, name) values(29, "Contra Costa"); insert into counties(state_id, name) values(29, "Del Norte"); insert into counties(state_id, name) values(29, "El Dorado"); insert into counties(state_id, name) values(29, "Fresno"); insert into counties(state_id, name) values(29, "Glenn"); insert into counties(state_id, name) values(29, "Humboldt"); insert into counties(state_id, name) values(29, "Imperial"); insert into counties(state_id, name) values(29, "Inyo"); insert into counties(state_id, name) values(29, "Kern"); insert into counties(state_id, name) values(29, "Kings"); insert into counties(state_id, name) values(29, "Lake"); insert into counties(state_id, name) values(29, "Lassen"); insert into counties(state_id, name) values(29, "Los Angeles"); insert into counties(state_id, name) values(29, "Madera"); insert into counties(state_id, name) values(29, "Marin"); insert into counties(state_id, name) values(29, "Mariposa"); insert into counties(state_id, name) values(29, "Mendocino"); insert into counties(state_id, name) values(29, "Merced"); insert into counties(state_id, name) values(29, "Modoc"); insert into counties(state_id, name) values(29, "Mono"); insert into counties(state_id, name) values(29, "Monterey"); insert into counties(state_id, name) values(29, "Napa"); insert into counties(state_id, name) values(29, "Nevada"); insert into counties(state_id, name) values(29, "Orange"); insert into counties(state_id, name) values(29, "Placer"); insert into counties(state_id, name) values(29, "Plumas"); insert into counties(state_id, name) values(29, "Riverside"); insert into counties(state_id, name) values(29, "Sacramento"); insert into counties(state_id, name) values(29, "San Benito"); insert into counties(state_id, name) values(29, "San Bernardino"); insert into counties(state_id, name) values(29, "San Diego"); insert into counties(state_id, name) values(29, "San Francisco"); insert into counties(state_id, name) values(29, "San Joaquin"); insert into counties(state_id, name) values(29, "San Luis Obispo"); insert into counties(state_id, name) values(29, "San Mateo"); insert into counties(state_id, name) values(29, "Santa Barbara"); insert into counties(state_id, name) values(29, "Santa Clara"); insert into counties(state_id, name) values(29, "Santa Cruz"); insert into counties(state_id, name) values(29, "Shasta"); insert into counties(state_id, name) values(29, "Sierra"); insert into counties(state_id, name) values(29, "Siskiyou"); insert into counties(state_id, name) values(29, "Solano"); insert into counties(state_id, name) values(29, "Sonoma"); insert into counties(state_id, name) values(29, "Stanislaus"); insert into counties(state_id, name) values(29, "Sutter"); insert into counties(state_id, name) values(29, "Tehama"); insert into counties(state_id, name) values(29, "Trinity"); insert into counties(state_id, name) values(29, "Tulare"); insert into counties(state_id, name) values(29, "Tuolumne"); insert into counties(state_id, name) values(29, "Ventura"); insert into counties(state_id, name) values(29, "Yolo"); insert into counties(state_id, name) values(29, "Yuba"); insert into states(id, name) values(30, "Delaware"); insert into counties(state_id, name) values(30, "Kent"); insert into counties(state_id, name) values(30, "New Castle"); insert into counties(state_id, name) values(30, "Sussex"); insert into states(id, name) values(31, "Florida"); insert into counties(state_id, name) values(31, "Alachua"); insert into counties(state_id, name) values(31, "Baker"); insert into counties(state_id, name) values(31, "Bay"); insert into counties(state_id, name) values(31, "Bradford"); insert into counties(state_id, name) values(31, "Brevard"); insert into counties(state_id, name) values(31, "Broward"); insert into counties(state_id, name) values(31, "Calhoun"); insert into counties(state_id, name) values(31, "Charlotte"); insert into counties(state_id, name) values(31, "Citrus"); insert into counties(state_id, name) values(31, "Clay"); insert into counties(state_id, name) values(31, "Collier"); insert into counties(state_id, name) values(31, "Columbia"); insert into counties(state_id, name) values(31, "DeSoto"); insert into counties(state_id, name) values(31, "Dixie"); insert into counties(state_id, name) values(31, "Duval"); insert into counties(state_id, name) values(31, "Escambia"); insert into counties(state_id, name) values(31, "Flagler"); insert into counties(state_id, name) values(31, "Franklin"); insert into counties(state_id, name) values(31, "Gadsden"); insert into counties(state_id, name) values(31, "Gilchrist"); insert into counties(state_id, name) values(31, "Glades"); insert into counties(state_id, name) values(31, "Gulf"); insert into counties(state_id, name) values(31, "Hamilton"); insert into counties(state_id, name) values(31, "Hardee"); insert into counties(state_id, name) values(31, "Hendry"); insert into counties(state_id, name) values(31, "Hernando"); insert into counties(state_id, name) values(31, "Highlands"); insert into counties(state_id, name) values(31, "Hillsborough"); insert into counties(state_id, name) values(31, "Holmes"); insert into counties(state_id, name) values(31, "Indian River"); insert into counties(state_id, name) values(31, "Jackson"); insert into counties(state_id, name) values(31, "Jefferson"); insert into counties(state_id, name) values(31, "Lafayette"); insert into counties(state_id, name) values(31, "Lake"); insert into counties(state_id, name) values(31, "Lee"); insert into counties(state_id, name) values(31, "Leon"); insert into counties(state_id, name) values(31, "Levy"); insert into counties(state_id, name) values(31, "Liberty"); insert into counties(state_id, name) values(31, "Madison"); insert into counties(state_id, name) values(31, "Manatee"); insert into counties(state_id, name) values(31, "Marion"); insert into counties(state_id, name) values(31, "Martin"); insert into counties(state_id, name) values(31, "Miami-Dade"); insert into counties(state_id, name) values(31, "Monroe"); insert into counties(state_id, name) values(31, "Nassau"); insert into counties(state_id, name) values(31, "Okaloosa"); insert into counties(state_id, name) values(31, "Okeechobee"); insert into counties(state_id, name) values(31, "Orange"); insert into counties(state_id, name) values(31, "Osceola"); insert into counties(state_id, name) values(31, "Palm Beach"); insert into counties(state_id, name) values(31, "Pasco"); insert into counties(state_id, name) values(31, "Pinellas"); insert into counties(state_id, name) values(31, "Polk"); insert into counties(state_id, name) values(31, "Putnam"); insert into counties(state_id, name) values(31, "St. Johns"); insert into counties(state_id, name) values(31, "St. Lucie"); insert into counties(state_id, name) values(31, "Santa Rosa"); insert into counties(state_id, name) values(31, "Sarasota"); insert into counties(state_id, name) values(31, "Seminole"); insert into counties(state_id, name) values(31, "Sumter"); insert into counties(state_id, name) values(31, "Suwannee"); insert into counties(state_id, name) values(31, "Taylor"); insert into counties(state_id, name) values(31, "Union"); insert into counties(state_id, name) values(31, "Volusia"); insert into counties(state_id, name) values(31, "Wakulla"); insert into counties(state_id, name) values(31, "Walton"); insert into counties(state_id, name) values(31, "Washington"); insert into states(id, name) values(32, "New York"); insert into counties(state_id, name) values(32, "Albany"); insert into counties(state_id, name) values(32, "Allegany"); insert into counties(state_id, name) values(32, "Bronx"); insert into counties(state_id, name) values(32, "Broome"); insert into counties(state_id, name) values(32, "Cattaraugus"); insert into counties(state_id, name) values(32, "Cayuga"); insert into counties(state_id, name) values(32, "Chautauqua"); insert into counties(state_id, name) values(32, "Chemung"); insert into counties(state_id, name) values(32, "Chenango"); insert into counties(state_id, name) values(32, "Clinton"); insert into counties(state_id, name) values(32, "Columbia"); insert into counties(state_id, name) values(32, "Cortland"); insert into counties(state_id, name) values(32, "Delaware"); insert into counties(state_id, name) values(32, "Dutchess"); insert into counties(state_id, name) values(32, "Erie"); insert into counties(state_id, name) values(32, "Essex"); insert into counties(state_id, name) values(32, "Franklin"); insert into counties(state_id, name) values(32, "Fulton"); insert into counties(state_id, name) values(32, "Genesee"); insert into counties(state_id, name) values(32, "Greene"); insert into counties(state_id, name) values(32, "Hamilton"); insert into counties(state_id, name) values(32, "Herkimer"); insert into counties(state_id, name) values(32, "Jefferson"); insert into counties(state_id, name) values(32, "Kings"); insert into counties(state_id, name) values(32, "Lewis"); insert into counties(state_id, name) values(32, "Livingston"); insert into counties(state_id, name) values(32, "Madison"); insert into counties(state_id, name) values(32, "Monroe"); insert into counties(state_id, name) values(32, "Montgomery"); insert into counties(state_id, name) values(32, "Nassau"); insert into counties(state_id, name) values(32, "New York"); insert into counties(state_id, name) values(32, "Niagara"); insert into counties(state_id, name) values(32, "Oneida"); insert into counties(state_id, name) values(32, "Onondaga"); insert into counties(state_id, name) values(32, "Ontario"); insert into counties(state_id, name) values(32, "Orange"); insert into counties(state_id, name) values(32, "Orleans"); insert into counties(state_id, name) values(32, "Oswego"); insert into counties(state_id, name) values(32, "Otsego"); insert into counties(state_id, name) values(32, "Putnam"); insert into counties(state_id, name) values(32, "Queens"); insert into counties(state_id, name) values(32, "Rensselaer"); insert into counties(state_id, name) values(32, "Richmond"); insert into counties(state_id, name) values(32, "Rockland"); insert into counties(state_id, name) values(32, "St. Lawrence"); insert into counties(state_id, name) values(32, "Saratoga"); insert into counties(state_id, name) values(32, "Schenectady"); insert into counties(state_id, name) values(32, "Schoharie"); insert into counties(state_id, name) values(32, "Schuyler"); insert into counties(state_id, name) values(32, "Seneca"); insert into counties(state_id, name) values(32, "Steuben"); insert into counties(state_id, name) values(32, "Suffolk"); insert into counties(state_id, name) values(32, "Sullivan"); insert into counties(state_id, name) values(32, "Tioga"); insert into counties(state_id, name) values(32, "Tompkins"); insert into counties(state_id, name) values(32, "Ulster"); insert into counties(state_id, name) values(32, "Warren"); insert into counties(state_id, name) values(32, "Washington"); insert into counties(state_id, name) values(32, "Wayne"); insert into counties(state_id, name) values(32, "Westchester"); insert into counties(state_id, name) values(32, "Wyoming"); insert into counties(state_id, name) values(32, "Yates"); insert into states(id, name) values(33, "Ohio"); insert into counties(state_id, name) values(33, "Adams"); insert into counties(state_id, name) values(33, "Allen"); insert into counties(state_id, name) values(33, "Ashland"); insert into counties(state_id, name) values(33, "Ashtabula"); insert into counties(state_id, name) values(33, "Athens"); insert into counties(state_id, name) values(33, "Auglaize"); insert into counties(state_id, name) values(33, "Belmont"); insert into counties(state_id, name) values(33, "Brown"); insert into counties(state_id, name) values(33, "Butler"); insert into counties(state_id, name) values(33, "Carroll"); insert into counties(state_id, name) values(33, "Champaign"); insert into counties(state_id, name) values(33, "Clark"); insert into counties(state_id, name) values(33, "Clermont"); insert into counties(state_id, name) values(33, "Clinton"); insert into counties(state_id, name) values(33, "Columbiana"); insert into counties(state_id, name) values(33, "Coshocton"); insert into counties(state_id, name) values(33, "Crawford"); insert into counties(state_id, name) values(33, "Cuyahoga"); insert into counties(state_id, name) values(33, "Darke"); insert into counties(state_id, name) values(33, "Defiance"); insert into counties(state_id, name) values(33, "Delaware"); insert into counties(state_id, name) values(33, "Erie"); insert into counties(state_id, name) values(33, "Fairfield"); insert into counties(state_id, name) values(33, "Fayette"); insert into counties(state_id, name) values(33, "Franklin"); insert into counties(state_id, name) values(33, "Fulton"); insert into counties(state_id, name) values(33, "Gallia"); insert into counties(state_id, name) values(33, "Geauga"); insert into counties(state_id, name) values(33, "Greene"); insert into counties(state_id, name) values(33, "Guernsey"); insert into counties(state_id, name) values(33, "Hamilton"); insert into counties(state_id, name) values(33, "Hancock"); insert into counties(state_id, name) values(33, "Hardin"); insert into counties(state_id, name) values(33, "Harrison"); insert into counties(state_id, name) values(33, "Henry"); insert into counties(state_id, name) values(33, "Highland"); insert into counties(state_id, name) values(33, "Hocking"); insert into counties(state_id, name) values(33, "Holmes"); insert into counties(state_id, name) values(33, "Huron"); insert into counties(state_id, name) values(33, "Jackson"); insert into counties(state_id, name) values(33, "Jefferson"); insert into counties(state_id, name) values(33, "Knox"); insert into counties(state_id, name) values(33, "Lake"); insert into counties(state_id, name) values(33, "Lawrence"); insert into counties(state_id, name) values(33, "Licking"); insert into counties(state_id, name) values(33, "Logan"); insert into counties(state_id, name) values(33, "Lorain"); insert into counties(state_id, name) values(33, "Lucas"); insert into counties(state_id, name) values(33, "Madison"); insert into counties(state_id, name) values(33, "Mahoning"); insert into counties(state_id, name) values(33, "Marion"); insert into counties(state_id, name) values(33, "Medina"); insert into counties(state_id, name) values(33, "Meigs"); insert into counties(state_id, name) values(33, "Mercer"); insert into counties(state_id, name) values(33, "Miami"); insert into counties(state_id, name) values(33, "Monroe"); insert into counties(state_id, name) values(33, "Montgomery"); insert into counties(state_id, name) values(33, "Morgan"); insert into counties(state_id, name) values(33, "Morrow"); insert into counties(state_id, name) values(33, "Muskingum"); insert into counties(state_id, name) values(33, "Noble"); insert into counties(state_id, name) values(33, "Ottawa"); insert into counties(state_id, name) values(33, "Paulding"); insert into counties(state_id, name) values(33, "Perry"); insert into counties(state_id, name) values(33, "Pickaway"); insert into counties(state_id, name) values(33, "Pike"); insert into counties(state_id, name) values(33, "Portage"); insert into counties(state_id, name) values(33, "Preble"); insert into counties(state_id, name) values(33, "Putnam"); insert into counties(state_id, name) values(33, "Richland"); insert into counties(state_id, name) values(33, "Ross"); insert into counties(state_id, name) values(33, "Sandusky"); insert into counties(state_id, name) values(33, "Scioto"); insert into counties(state_id, name) values(33, "Seneca"); insert into counties(state_id, name) values(33, "Shelby"); insert into counties(state_id, name) values(33, "Stark"); insert into counties(state_id, name) values(33, "Summit"); insert into counties(state_id, name) values(33, "Trumbull"); insert into counties(state_id, name) values(33, "Tuscarawas"); insert into counties(state_id, name) values(33, "Union"); insert into counties(state_id, name) values(33, "<NAME>"); insert into counties(state_id, name) values(33, "Vinton"); insert into counties(state_id, name) values(33, "Warren"); insert into counties(state_id, name) values(33, "Washington"); insert into counties(state_id, name) values(33, "Wayne"); insert into counties(state_id, name) values(33, "Williams"); insert into counties(state_id, name) values(33, "Wood"); insert into counties(state_id, name) values(33, "Wyandot"); insert into states(id, name) values(34, "Vermont"); insert into counties(state_id, name) values(34, "Addison"); insert into counties(state_id, name) values(34, "Bennington"); insert into counties(state_id, name) values(34, "Caledonia"); insert into counties(state_id, name) values(34, "Chittenden"); insert into counties(state_id, name) values(34, "Essex"); insert into counties(state_id, name) values(34, "Franklin"); insert into counties(state_id, name) values(34, "Grand Isle"); insert into counties(state_id, name) values(34, "Lamoille"); insert into counties(state_id, name) values(34, "Orange"); insert into counties(state_id, name) values(34, "Orleans"); insert into counties(state_id, name) values(34, "Rutland"); insert into counties(state_id, name) values(34, "Washington"); insert into counties(state_id, name) values(34, "Windham"); insert into counties(state_id, name) values(34, "Windsor"); insert into states(id, name) values(35, "Connecticut"); insert into counties(state_id, name) values(35, "Fairfield"); insert into counties(state_id, name) values(35, "Hartford"); insert into counties(state_id, name) values(35, "Litchfield"); insert into counties(state_id, name) values(35, "Middlesex"); insert into counties(state_id, name) values(35, "New Haven"); insert into counties(state_id, name) values(35, "New London"); insert into counties(state_id, name) values(35, "Tolland"); insert into counties(state_id, name) values(35, "Windham"); insert into states(id, name) values(36, "Kentucky"); insert into counties(state_id, name) values(36, "Adair"); insert into counties(state_id, name) values(36, "Allen"); insert into counties(state_id, name) values(36, "Anderson"); insert into counties(state_id, name) values(36, "Ballard"); insert into counties(state_id, name) values(36, "Barren"); insert into counties(state_id, name) values(36, "Bath"); insert into counties(state_id, name) values(36, "Bell"); insert into counties(state_id, name) values(36, "Boone"); insert into counties(state_id, name) values(36, "Bourbon"); insert into counties(state_id, name) values(36, "Boyd"); insert into counties(state_id, name) values(36, "Boyle"); insert into counties(state_id, name) values(36, "Bracken"); insert into counties(state_id, name) values(36, "Breathitt"); insert into counties(state_id, name) values(36, "Breckinridge"); insert into counties(state_id, name) values(36, "Bullitt"); insert into counties(state_id, name) values(36, "Butler"); insert into counties(state_id, name) values(36, "Caldwell"); insert into counties(state_id, name) values(36, "Calloway"); insert into counties(state_id, name) values(36, "Campbell"); insert into counties(state_id, name) values(36, "Carlisle"); insert into counties(state_id, name) values(36, "Carroll"); insert into counties(state_id, name) values(36, "Carter"); insert into counties(state_id, name) values(36, "Casey"); insert into counties(state_id, name) values(36, "Christian"); insert into counties(state_id, name) values(36, "Clark"); insert into counties(state_id, name) values(36, "Clay"); insert into counties(state_id, name) values(36, "Clinton"); insert into counties(state_id, name) values(36, "Crittenden"); insert into counties(state_id, name) values(36, "Cumberland"); insert into counties(state_id, name) values(36, "Daviess"); insert into counties(state_id, name) values(36, "Edmonson"); insert into counties(state_id, name) values(36, "Elliott"); insert into counties(state_id, name) values(36, "Estill"); insert into counties(state_id, name) values(36, "Fayette"); insert into counties(state_id, name) values(36, "Fleming"); insert into counties(state_id, name) values(36, "Floyd"); insert into counties(state_id, name) values(36, "Franklin"); insert into counties(state_id, name) values(36, "Fulton"); insert into counties(state_id, name) values(36, "Gallatin"); insert into counties(state_id, name) values(36, "Garrard"); insert into counties(state_id, name) values(36, "Grant"); insert into counties(state_id, name) values(36, "Graves"); insert into counties(state_id, name) values(36, "Grayson"); insert into counties(state_id, name) values(36, "Green"); insert into counties(state_id, name) values(36, "Greenup"); insert into counties(state_id, name) values(36, "Hancock"); insert into counties(state_id, name) values(36, "Hardin"); insert into counties(state_id, name) values(36, "Harlan"); insert into counties(state_id, name) values(36, "Harrison"); insert into counties(state_id, name) values(36, "Hart"); insert into counties(state_id, name) values(36, "Henderson"); insert into counties(state_id, name) values(36, "Henry"); insert into counties(state_id, name) values(36, "Hickman"); insert into counties(state_id, name) values(36, "Hopkins"); insert into counties(state_id, name) values(36, "Jackson"); insert into counties(state_id, name) values(36, "Jefferson"); insert into counties(state_id, name) values(36, "Jessamine"); insert into counties(state_id, name) values(36, "Johnson"); insert into counties(state_id, name) values(36, "Kenton"); insert into counties(state_id, name) values(36, "Knott"); insert into counties(state_id, name) values(36, "Knox"); insert into counties(state_id, name) values(36, "LaRue"); insert into counties(state_id, name) values(36, "Laurel"); insert into counties(state_id, name) values(36, "Lawrence"); insert into counties(state_id, name) values(36, "Lee"); insert into counties(state_id, name) values(36, "Leslie"); insert into counties(state_id, name) values(36, "Letcher"); insert into counties(state_id, name) values(36, "Lewis"); insert into counties(state_id, name) values(36, "Lincoln"); insert into counties(state_id, name) values(36, "Livingston"); insert into counties(state_id, name) values(36, "Logan"); insert into counties(state_id, name) values(36, "Lyon"); insert into counties(state_id, name) values(36, "McCracken"); insert into counties(state_id, name) values(36, "McCreary"); insert into counties(state_id, name) values(36, "McLean"); insert into counties(state_id, name) values(36, "Madison"); insert into counties(state_id, name) values(36, "Magoffin"); insert into counties(state_id, name) values(36, "Marion"); insert into counties(state_id, name) values(36, "Marshall"); insert into counties(state_id, name) values(36, "Martin"); insert into counties(state_id, name) values(36, "Mason"); insert into counties(state_id, name) values(36, "Meade"); insert into counties(state_id, name) values(36, "Menifee"); insert into counties(state_id, name) values(36, "Mercer"); insert into counties(state_id, name) values(36, "Metcalfe"); insert into counties(state_id, name) values(36, "Monroe"); insert into counties(state_id, name) values(36, "Montgomery"); insert into counties(state_id, name) values(36, "Morgan"); insert into counties(state_id, name) values(36, "Muhlenberg"); insert into counties(state_id, name) values(36, "Nelson"); insert into counties(state_id, name) values(36, "Nicholas"); insert into counties(state_id, name) values(36, "Ohio"); insert into counties(state_id, name) values(36, "Oldham"); insert into counties(state_id, name) values(36, "Owen"); insert into counties(state_id, name) values(36, "Owsley"); insert into counties(state_id, name) values(36, "Pendleton"); insert into counties(state_id, name) values(36, "Perry"); insert into counties(state_id, name) values(36, "Pike"); insert into counties(state_id, name) values(36, "Powell"); insert into counties(state_id, name) values(36, "Pulaski"); insert into counties(state_id, name) values(36, "Robertson"); insert into counties(state_id, name) values(36, "Rockcastle"); insert into counties(state_id, name) values(36, "Rowan"); insert into counties(state_id, name) values(36, "Russell"); insert into counties(state_id, name) values(36, "Scott"); insert into counties(state_id, name) values(36, "Shelby"); insert into counties(state_id, name) values(36, "Simpson"); insert into counties(state_id, name) values(36, "Spencer"); insert into counties(state_id, name) values(36, "Taylor"); insert into counties(state_id, name) values(36, "Todd"); insert into counties(state_id, name) values(36, "Trigg"); insert into counties(state_id, name) values(36, "Trimble"); insert into counties(state_id, name) values(36, "Union"); insert into counties(state_id, name) values(36, "Warren"); insert into counties(state_id, name) values(36, "Washington"); insert into counties(state_id, name) values(36, "Wayne"); insert into counties(state_id, name) values(36, "Webster"); insert into counties(state_id, name) values(36, "Whitley"); insert into counties(state_id, name) values(36, "Wolfe"); insert into counties(state_id, name) values(36, "Woodford"); insert into states(id, name) values(37, "Minnesota"); insert into counties(state_id, name) values(37, "Aitkin"); insert into counties(state_id, name) values(37, "Anoka"); insert into counties(state_id, name) values(37, "Becker"); insert into counties(state_id, name) values(37, "Beltrami"); insert into counties(state_id, name) values(37, "Benton"); insert into counties(state_id, name) values(37, "Big Stone"); insert into counties(state_id, name) values(37, "Blue Earth"); insert into counties(state_id, name) values(37, "Brown"); insert into counties(state_id, name) values(37, "Carlton"); insert into counties(state_id, name) values(37, "Carver"); insert into counties(state_id, name) values(37, "Cass"); insert into counties(state_id, name) values(37, "Chippewa"); insert into counties(state_id, name) values(37, "Chisago"); insert into counties(state_id, name) values(37, "Clay"); insert into counties(state_id, name) values(37, "Clearwater"); insert into counties(state_id, name) values(37, "Cook"); insert into counties(state_id, name) values(37, "Cottonwood"); insert into counties(state_id, name) values(37, "Crow Wing"); insert into counties(state_id, name) values(37, "Dakota"); insert into counties(state_id, name) values(37, "Dodge"); insert into counties(state_id, name) values(37, "Douglas"); insert into counties(state_id, name) values(37, "Faribault"); insert into counties(state_id, name) values(37, "Fillmore"); insert into counties(state_id, name) values(37, "Freeborn"); insert into counties(state_id, name) values(37, "Goodhue"); insert into counties(state_id, name) values(37, "Grant"); insert into counties(state_id, name) values(37, "Hennepin"); insert into counties(state_id, name) values(37, "Houston"); insert into counties(state_id, name) values(37, "Hubbard"); insert into counties(state_id, name) values(37, "Isanti"); insert into counties(state_id, name) values(37, "Itasca"); insert into counties(state_id, name) values(37, "Jackson"); insert into counties(state_id, name) values(37, "Kanabec"); insert into counties(state_id, name) values(37, "Kandiyohi"); insert into counties(state_id, name) values(37, "Kittson"); insert into counties(state_id, name) values(37, "Koochiching"); insert into counties(state_id, name) values(37, "<NAME>"); insert into counties(state_id, name) values(37, "Lake"); insert into counties(state_id, name) values(37, "Lake of the Woods"); insert into counties(state_id, name) values(37, "Le Sueur"); insert into counties(state_id, name) values(37, "Lincoln"); insert into counties(state_id, name) values(37, "Lyon"); insert into counties(state_id, name) values(37, "McLeod"); insert into counties(state_id, name) values(37, "Mahnomen"); insert into counties(state_id, name) values(37, "Marshall"); insert into counties(state_id, name) values(37, "Martin"); insert into counties(state_id, name) values(37, "Meeker"); insert into counties(state_id, name) values(37, "<NAME>"); insert into counties(state_id, name) values(37, "Morrison"); insert into counties(state_id, name) values(37, "Mower"); insert into counties(state_id, name) values(37, "Murray"); insert into counties(state_id, name) values(37, "Nicollet"); insert into counties(state_id, name) values(37, "Nobles"); insert into counties(state_id, name) values(37, "Norman"); insert into counties(state_id, name) values(37, "Olmsted"); insert into counties(state_id, name) values(37, "<NAME>"); insert into counties(state_id, name) values(37, "Pennington"); insert into counties(state_id, name) values(37, "Pine"); insert into counties(state_id, name) values(37, "Pipestone"); insert into counties(state_id, name) values(37, "Polk"); insert into counties(state_id, name) values(37, "Pope"); insert into counties(state_id, name) values(37, "Ramsey"); insert into counties(state_id, name) values(37, "Red Lake"); insert into counties(state_id, name) values(37, "Redwood"); insert into counties(state_id, name) values(37, "Renville"); insert into counties(state_id, name) values(37, "Rice"); insert into counties(state_id, name) values(37, "Rock"); insert into counties(state_id, name) values(37, "Roseau"); insert into counties(state_id, name) values(37, "St. Louis"); insert into counties(state_id, name) values(37, "Scott"); insert into counties(state_id, name) values(37, "Sherburne"); insert into counties(state_id, name) values(37, "Sibley"); insert into counties(state_id, name) values(37, "Stearns"); insert into counties(state_id, name) values(37, "Steele"); insert into counties(state_id, name) values(37, "Stevens"); insert into counties(state_id, name) values(37, "Swift"); insert into counties(state_id, name) values(37, "Todd"); insert into counties(state_id, name) values(37, "Traverse"); insert into counties(state_id, name) values(37, "Wabasha"); insert into counties(state_id, name) values(37, "Wadena"); insert into counties(state_id, name) values(37, "Waseca"); insert into counties(state_id, name) values(37, "Washington"); insert into counties(state_id, name) values(37, "Watonwan"); insert into counties(state_id, name) values(37, "Wilkin"); insert into counties(state_id, name) values(37, "Winona"); insert into counties(state_id, name) values(37, "Wright"); insert into counties(state_id, name) values(37, "Yellow Medicine"); insert into states(id, name) values(38, "Nebraska"); insert into counties(state_id, name) values(38, "Adams"); insert into counties(state_id, name) values(38, "Antelope"); insert into counties(state_id, name) values(38, "Arthur"); insert into counties(state_id, name) values(38, "Banner"); insert into counties(state_id, name) values(38, "Blaine"); insert into counties(state_id, name) values(38, "Boone"); insert into counties(state_id, name) values(38, "Box Butte"); insert into counties(state_id, name) values(38, "Boyd"); insert into counties(state_id, name) values(38, "Brown"); insert into counties(state_id, name) values(38, "Buffalo"); insert into counties(state_id, name) values(38, "Burt"); insert into counties(state_id, name) values(38, "Butler"); insert into counties(state_id, name) values(38, "Cass"); insert into counties(state_id, name) values(38, "Cedar"); insert into counties(state_id, name) values(38, "Chase"); insert into counties(state_id, name) values(38, "Cherry"); insert into counties(state_id, name) values(38, "Cheyenne"); insert into counties(state_id, name) values(38, "Clay"); insert into counties(state_id, name) values(38, "Colfax"); insert into counties(state_id, name) values(38, "Cuming"); insert into counties(state_id, name) values(38, "Custer"); insert into counties(state_id, name) values(38, "Dakota"); insert into counties(state_id, name) values(38, "Dawes"); insert into counties(state_id, name) values(38, "Dawson"); insert into counties(state_id, name) values(38, "Deuel"); insert into counties(state_id, name) values(38, "Dixon"); insert into counties(state_id, name) values(38, "Dodge"); insert into counties(state_id, name) values(38, "Douglas"); insert into counties(state_id, name) values(38, "Dundy"); insert into counties(state_id, name) values(38, "Fillmore"); insert into counties(state_id, name) values(38, "Franklin"); insert into counties(state_id, name) values(38, "Frontier"); insert into counties(state_id, name) values(38, "Furnas"); insert into counties(state_id, name) values(38, "Gage"); insert into counties(state_id, name) values(38, "Garden"); insert into counties(state_id, name) values(38, "Garfield"); insert into counties(state_id, name) values(38, "Gosper"); insert into counties(state_id, name) values(38, "Grant"); insert into counties(state_id, name) values(38, "Greeley"); insert into counties(state_id, name) values(38, "Hall"); insert into counties(state_id, name) values(38, "Hamilton"); insert into counties(state_id, name) values(38, "Harlan"); insert into counties(state_id, name) values(38, "Hayes"); insert into counties(state_id, name) values(38, "Hitchcock"); insert into counties(state_id, name) values(38, "Holt"); insert into counties(state_id, name) values(38, "Hooker"); insert into counties(state_id, name) values(38, "Howard"); insert into counties(state_id, name) values(38, "Jefferson"); insert into counties(state_id, name) values(38, "Johnson"); insert into counties(state_id, name) values(38, "Kearney"); insert into counties(state_id, name) values(38, "Keith"); insert into counties(state_id, name) values(38, "<NAME>"); insert into counties(state_id, name) values(38, "Kimball"); insert into counties(state_id, name) values(38, "Knox"); insert into counties(state_id, name) values(38, "Lancaster"); insert into counties(state_id, name) values(38, "Lincoln"); insert into counties(state_id, name) values(38, "Logan"); insert into counties(state_id, name) values(38, "Loup"); insert into counties(state_id, name) values(38, "McPherson"); insert into counties(state_id, name) values(38, "Madison"); insert into counties(state_id, name) values(38, "Merrick"); insert into counties(state_id, name) values(38, "Morrill"); insert into counties(state_id, name) values(38, "Nance"); insert into counties(state_id, name) values(38, "Nemaha"); insert into counties(state_id, name) values(38, "Nuckolls"); insert into counties(state_id, name) values(38, "Otoe"); insert into counties(state_id, name) values(38, "Pawnee"); insert into counties(state_id, name) values(38, "Perkins"); insert into counties(state_id, name) values(38, "Phelps"); insert into counties(state_id, name) values(38, "Pierce"); insert into counties(state_id, name) values(38, "Platte"); insert into counties(state_id, name) values(38, "Polk"); insert into counties(state_id, name) values(38, "<NAME>"); insert into counties(state_id, name) values(38, "Richardson"); insert into counties(state_id, name) values(38, "Rock"); insert into counties(state_id, name) values(38, "Saline"); insert into counties(state_id, name) values(38, "Sarpy"); insert into counties(state_id, name) values(38, "Saunders"); insert into counties(state_id, name) values(38, "<NAME>"); insert into counties(state_id, name) values(38, "Seward"); insert into counties(state_id, name) values(38, "Sheridan"); insert into counties(state_id, name) values(38, "Sherman"); insert into counties(state_id, name) values(38, "Sioux"); insert into counties(state_id, name) values(38, "Stanton"); insert into counties(state_id, name) values(38, "Thayer"); insert into counties(state_id, name) values(38, "Thomas"); insert into counties(state_id, name) values(38, "Thurston"); insert into counties(state_id, name) values(38, "Valley"); insert into counties(state_id, name) values(38, "Washington"); insert into counties(state_id, name) values(38, "Wayne"); insert into counties(state_id, name) values(38, "Webster"); insert into counties(state_id, name) values(38, "Wheeler"); insert into counties(state_id, name) values(38, "York"); insert into states(id, name) values(39, "New Hampshire"); insert into counties(state_id, name) values(39, "Belknap"); insert into counties(state_id, name) values(39, "Carroll"); insert into counties(state_id, name) values(39, "Cheshire"); insert into counties(state_id, name) values(39, "Coos"); insert into counties(state_id, name) values(39, "Grafton"); insert into counties(state_id, name) values(39, "Hillsborough"); insert into counties(state_id, name) values(39, "Merrimack"); insert into counties(state_id, name) values(39, "Rockingham"); insert into counties(state_id, name) values(39, "Strafford"); insert into counties(state_id, name) values(39, "Sullivan"); insert into states(id, name) values(40, "New Jersey"); insert into counties(state_id, name) values(40, "Atlantic"); insert into counties(state_id, name) values(40, "Bergen"); insert into counties(state_id, name) values(40, "Burlington"); insert into counties(state_id, name) values(40, "Camden"); insert into counties(state_id, name) values(40, "Cape May"); insert into counties(state_id, name) values(40, "Cumberland"); insert into counties(state_id, name) values(40, "Essex"); insert into counties(state_id, name) values(40, "Gloucester"); insert into counties(state_id, name) values(40, "Hudson"); insert into counties(state_id, name) values(40, "Hunterdon"); insert into counties(state_id, name) values(40, "Mercer"); insert into counties(state_id, name) values(40, "Middlesex"); insert into counties(state_id, name) values(40, "Monmouth"); insert into counties(state_id, name) values(40, "Morris"); insert into counties(state_id, name) values(40, "Ocean"); insert into counties(state_id, name) values(40, "Passaic"); insert into counties(state_id, name) values(40, "Salem"); insert into counties(state_id, name) values(40, "Somerset"); insert into counties(state_id, name) values(40, "Sussex"); insert into counties(state_id, name) values(40, "Union"); insert into counties(state_id, name) values(40, "Warren"); insert into states(id, name) values(41, "Tennessee"); insert into counties(state_id, name) values(41, "Anderson"); insert into counties(state_id, name) values(41, "Bedford"); insert into counties(state_id, name) values(41, "Benton"); insert into counties(state_id, name) values(41, "Bledsoe"); insert into counties(state_id, name) values(41, "Blount"); insert into counties(state_id, name) values(41, "Bradley"); insert into counties(state_id, name) values(41, "Campbell"); insert into counties(state_id, name) values(41, "Cannon"); insert into counties(state_id, name) values(41, "Carroll"); insert into counties(state_id, name) values(41, "Carter"); insert into counties(state_id, name) values(41, "Cheatham"); insert into counties(state_id, name) values(41, "Chester"); insert into counties(state_id, name) values(41, "Claiborne"); insert into counties(state_id, name) values(41, "Clay"); insert into counties(state_id, name) values(41, "Cocke"); insert into counties(state_id, name) values(41, "Coffee"); insert into counties(state_id, name) values(41, "Crockett"); insert into counties(state_id, name) values(41, "Cumberland"); insert into counties(state_id, name) values(41, "Davidson"); insert into counties(state_id, name) values(41, "Decatur"); insert into counties(state_id, name) values(41, "DeKalb"); insert into counties(state_id, name) values(41, "Dickson"); insert into counties(state_id, name) values(41, "Dyer"); insert into counties(state_id, name) values(41, "Fayette"); insert into counties(state_id, name) values(41, "Fentress"); insert into counties(state_id, name) values(41, "Franklin"); insert into counties(state_id, name) values(41, "Gibson"); insert into counties(state_id, name) values(41, "Giles"); insert into counties(state_id, name) values(41, "Grainger"); insert into counties(state_id, name) values(41, "Greene"); insert into counties(state_id, name) values(41, "Grundy"); insert into counties(state_id, name) values(41, "Hamblen"); insert into counties(state_id, name) values(41, "Hamilton"); insert into counties(state_id, name) values(41, "Hancock"); insert into counties(state_id, name) values(41, "Hardeman"); insert into counties(state_id, name) values(41, "Hardin"); insert into counties(state_id, name) values(41, "Hawkins"); insert into counties(state_id, name) values(41, "Haywood"); insert into counties(state_id, name) values(41, "Henderson"); insert into counties(state_id, name) values(41, "Henry"); insert into counties(state_id, name) values(41, "Hickman"); insert into counties(state_id, name) values(41, "Houston"); insert into counties(state_id, name) values(41, "Humphreys"); insert into counties(state_id, name) values(41, "Jackson"); insert into counties(state_id, name) values(41, "Jefferson"); insert into counties(state_id, name) values(41, "Johnson"); insert into counties(state_id, name) values(41, "Knox"); insert into counties(state_id, name) values(41, "Lake"); insert into counties(state_id, name) values(41, "Lauderdale"); insert into counties(state_id, name) values(41, "Lawrence"); insert into counties(state_id, name) values(41, "Lewis"); insert into counties(state_id, name) values(41, "Lincoln"); insert into counties(state_id, name) values(41, "Loudon"); insert into counties(state_id, name) values(41, "McMinn"); insert into counties(state_id, name) values(41, "McNairy"); insert into counties(state_id, name) values(41, "Macon"); insert into counties(state_id, name) values(41, "Madison"); insert into counties(state_id, name) values(41, "Marion"); insert into counties(state_id, name) values(41, "Marshall"); insert into counties(state_id, name) values(41, "Maury"); insert into counties(state_id, name) values(41, "Meigs"); insert into counties(state_id, name) values(41, "Monroe"); insert into counties(state_id, name) values(41, "Montgomery"); insert into counties(state_id, name) values(41, "Moore"); insert into counties(state_id, name) values(41, "Morgan"); insert into counties(state_id, name) values(41, "Obion"); insert into counties(state_id, name) values(41, "Overton"); insert into counties(state_id, name) values(41, "Perry"); insert into counties(state_id, name) values(41, "Pickett"); insert into counties(state_id, name) values(41, "Polk"); insert into counties(state_id, name) values(41, "Putnam"); insert into counties(state_id, name) values(41, "Rhea"); insert into counties(state_id, name) values(41, "Roane"); insert into counties(state_id, name) values(41, "Robertson"); insert into counties(state_id, name) values(41, "Rutherford"); insert into counties(state_id, name) values(41, "Scott"); insert into counties(state_id, name) values(41, "Sequatchie"); insert into counties(state_id, name) values(41, "Sevier"); insert into counties(state_id, name) values(41, "Shelby"); insert into counties(state_id, name) values(41, "Smith"); insert into counties(state_id, name) values(41, "Stewart"); insert into counties(state_id, name) values(41, "Sullivan"); insert into counties(state_id, name) values(41, "Sumner"); insert into counties(state_id, name) values(41, "Tipton"); insert into counties(state_id, name) values(41, "Trousdale"); insert into counties(state_id, name) values(41, "Unicoi"); insert into counties(state_id, name) values(41, "Union"); insert into counties(state_id, name) values(41, "<NAME>"); insert into counties(state_id, name) values(41, "Warren"); insert into counties(state_id, name) values(41, "Washington"); insert into counties(state_id, name) values(41, "Wayne"); insert into counties(state_id, name) values(41, "Weakley"); insert into counties(state_id, name) values(41, "White"); insert into counties(state_id, name) values(41, "Williamson"); insert into counties(state_id, name) values(41, "Wilson"); insert into states(id, name) values(42, "Texas"); insert into counties(state_id, name) values(42, "Anderson"); insert into counties(state_id, name) values(42, "Andrews"); insert into counties(state_id, name) values(42, "Angelina"); insert into counties(state_id, name) values(42, "Aransas"); insert into counties(state_id, name) values(42, "Archer"); insert into counties(state_id, name) values(42, "Armstrong"); insert into counties(state_id, name) values(42, "Atascosa"); insert into counties(state_id, name) values(42, "Austin"); insert into counties(state_id, name) values(42, "Bailey"); insert into counties(state_id, name) values(42, "Bandera"); insert into counties(state_id, name) values(42, "Bastrop"); insert into counties(state_id, name) values(42, "Baylor"); insert into counties(state_id, name) values(42, "Bee"); insert into counties(state_id, name) values(42, "Bell"); insert into counties(state_id, name) values(42, "Bexar"); insert into counties(state_id, name) values(42, "Blanco"); insert into counties(state_id, name) values(42, "Borden"); insert into counties(state_id, name) values(42, "Bosque"); insert into counties(state_id, name) values(42, "Bowie"); insert into counties(state_id, name) values(42, "Brazoria"); insert into counties(state_id, name) values(42, "Brazos"); insert into counties(state_id, name) values(42, "Brewster"); insert into counties(state_id, name) values(42, "Briscoe"); insert into counties(state_id, name) values(42, "Brooks"); insert into counties(state_id, name) values(42, "Brown"); insert into counties(state_id, name) values(42, "Burleson"); insert into counties(state_id, name) values(42, "Burnet"); insert into counties(state_id, name) values(42, "Caldwell"); insert into counties(state_id, name) values(42, "Calhoun"); insert into counties(state_id, name) values(42, "Callahan"); insert into counties(state_id, name) values(42, "Cameron"); insert into counties(state_id, name) values(42, "Camp"); insert into counties(state_id, name) values(42, "Carson"); insert into counties(state_id, name) values(42, "Cass"); insert into counties(state_id, name) values(42, "Castro"); insert into counties(state_id, name) values(42, "Chambers"); insert into counties(state_id, name) values(42, "Cherokee"); insert into counties(state_id, name) values(42, "Childress"); insert into counties(state_id, name) values(42, "Clay"); insert into counties(state_id, name) values(42, "Cochran"); insert into counties(state_id, name) values(42, "Coke"); insert into counties(state_id, name) values(42, "Coleman"); insert into counties(state_id, name) values(42, "Collin"); insert into counties(state_id, name) values(42, "Collingsworth"); insert into counties(state_id, name) values(42, "Colorado"); insert into counties(state_id, name) values(42, "Comal"); insert into counties(state_id, name) values(42, "Comanche"); insert into counties(state_id, name) values(42, "Concho"); insert into counties(state_id, name) values(42, "Cooke"); insert into counties(state_id, name) values(42, "Coryell"); insert into counties(state_id, name) values(42, "Cottle"); insert into counties(state_id, name) values(42, "Crane"); insert into counties(state_id, name) values(42, "Crockett"); insert into counties(state_id, name) values(42, "Crosby"); insert into counties(state_id, name) values(42, "Culberson"); insert into counties(state_id, name) values(42, "Dallam"); insert into counties(state_id, name) values(42, "Dallas"); insert into counties(state_id, name) values(42, "Dawson"); insert into counties(state_id, name) values(42, "<NAME>"); insert into counties(state_id, name) values(42, "Delta"); insert into counties(state_id, name) values(42, "Denton"); insert into counties(state_id, name) values(42, "DeWitt"); insert into counties(state_id, name) values(42, "Dickens"); insert into counties(state_id, name) values(42, "Dimmit"); insert into counties(state_id, name) values(42, "Donley"); insert into counties(state_id, name) values(42, "Duval"); insert into counties(state_id, name) values(42, "Eastland"); insert into counties(state_id, name) values(42, "Ector"); insert into counties(state_id, name) values(42, "Edwards"); insert into counties(state_id, name) values(42, "Ellis"); insert into counties(state_id, name) values(42, "<NAME>"); insert into counties(state_id, name) values(42, "Erath"); insert into counties(state_id, name) values(42, "Falls"); insert into counties(state_id, name) values(42, "Fannin"); insert into counties(state_id, name) values(42, "Fayette"); insert into counties(state_id, name) values(42, "Fisher"); insert into counties(state_id, name) values(42, "Floyd"); insert into counties(state_id, name) values(42, "Foard"); insert into counties(state_id, name) values(42, "<NAME>"); insert into counties(state_id, name) values(42, "Franklin"); insert into counties(state_id, name) values(42, "Freestone"); insert into counties(state_id, name) values(42, "Frio"); insert into counties(state_id, name) values(42, "Gaines"); insert into counties(state_id, name) values(42, "Galveston"); insert into counties(state_id, name) values(42, "Garza"); insert into counties(state_id, name) values(42, "Gillespie"); insert into counties(state_id, name) values(42, "Glasscock"); insert into counties(state_id, name) values(42, "Goliad"); insert into counties(state_id, name) values(42, "Gonzales"); insert into counties(state_id, name) values(42, "Gray"); insert into counties(state_id, name) values(42, "Grayson"); insert into counties(state_id, name) values(42, "Gregg"); insert into counties(state_id, name) values(42, "Grimes"); insert into counties(state_id, name) values(42, "Guadalupe"); insert into counties(state_id, name) values(42, "Hale"); insert into counties(state_id, name) values(42, "Hall"); insert into counties(state_id, name) values(42, "Hamilton"); insert into counties(state_id, name) values(42, "Hansford"); insert into counties(state_id, name) values(42, "Hardeman"); insert into counties(state_id, name) values(42, "Hardin"); insert into counties(state_id, name) values(42, "Harris"); insert into counties(state_id, name) values(42, "Harrison"); insert into counties(state_id, name) values(42, "Hartley"); insert into counties(state_id, name) values(42, "Haskell"); insert into counties(state_id, name) values(42, "Hays"); insert into counties(state_id, name) values(42, "Hemphill"); insert into counties(state_id, name) values(42, "Henderson"); insert into counties(state_id, name) values(42, "Hidalgo"); insert into counties(state_id, name) values(42, "Hill"); insert into counties(state_id, name) values(42, "Hockley"); insert into counties(state_id, name) values(42, "Hood"); insert into counties(state_id, name) values(42, "Hopkins"); insert into counties(state_id, name) values(42, "Houston"); insert into counties(state_id, name) values(42, "Howard"); insert into counties(state_id, name) values(42, "Hudspeth"); insert into counties(state_id, name) values(42, "Hunt"); insert into counties(state_id, name) values(42, "Hutchinson"); insert into counties(state_id, name) values(42, "Irion"); insert into counties(state_id, name) values(42, "Jack"); insert into counties(state_id, name) values(42, "Jackson"); insert into counties(state_id, name) values(42, "Jasper"); insert into counties(state_id, name) values(42, "<NAME>"); insert into counties(state_id, name) values(42, "Jefferson"); insert into counties(state_id, name) values(42, "<NAME>"); insert into counties(state_id, name) values(42, "<NAME>"); insert into counties(state_id, name) values(42, "Johnson"); insert into counties(state_id, name) values(42, "Jones"); insert into counties(state_id, name) values(42, "Karnes"); insert into counties(state_id, name) values(42, "Kaufman"); insert into counties(state_id, name) values(42, "Kendall"); insert into counties(state_id, name) values(42, "Kenedy"); insert into counties(state_id, name) values(42, "Kent"); insert into counties(state_id, name) values(42, "Kerr"); insert into counties(state_id, name) values(42, "Kimble"); insert into counties(state_id, name) values(42, "King"); insert into counties(state_id, name) values(42, "Kinney"); insert into counties(state_id, name) values(42, "Kleberg"); insert into counties(state_id, name) values(42, "Knox"); insert into counties(state_id, name) values(42, "Lamar"); insert into counties(state_id, name) values(42, "Lamb"); insert into counties(state_id, name) values(42, "Lampasas"); insert into counties(state_id, name) values(42, "La Salle"); insert into counties(state_id, name) values(42, "Lavaca"); insert into counties(state_id, name) values(42, "Lee"); insert into counties(state_id, name) values(42, "Leon"); insert into counties(state_id, name) values(42, "Liberty"); insert into counties(state_id, name) values(42, "Limestone"); insert into counties(state_id, name) values(42, "Lipscomb"); insert into counties(state_id, name) values(42, "Live Oak"); insert into counties(state_id, name) values(42, "Llano"); insert into counties(state_id, name) values(42, "Loving"); insert into counties(state_id, name) values(42, "Lubbock"); insert into counties(state_id, name) values(42, "Lynn"); insert into counties(state_id, name) values(42, "McCulloch"); insert into counties(state_id, name) values(42, "McLennan"); insert into counties(state_id, name) values(42, "McMullen"); insert into counties(state_id, name) values(42, "Madison"); insert into counties(state_id, name) values(42, "Marion"); insert into counties(state_id, name) values(42, "Martin"); insert into counties(state_id, name) values(42, "Mason"); insert into counties(state_id, name) values(42, "Matagorda"); insert into counties(state_id, name) values(42, "Maverick"); insert into counties(state_id, name) values(42, "Medina"); insert into counties(state_id, name) values(42, "Menard"); insert into counties(state_id, name) values(42, "Midland"); insert into counties(state_id, name) values(42, "Milam"); insert into counties(state_id, name) values(42, "Mills"); insert into counties(state_id, name) values(42, "Mitchell"); insert into counties(state_id, name) values(42, "Montague"); insert into counties(state_id, name) values(42, "Montgomery"); insert into counties(state_id, name) values(42, "Moore"); insert into counties(state_id, name) values(42, "Morris"); insert into counties(state_id, name) values(42, "Motley"); insert into counties(state_id, name) values(42, "Nacogdoches"); insert into counties(state_id, name) values(42, "Navarro"); insert into counties(state_id, name) values(42, "Newton"); insert into counties(state_id, name) values(42, "Nolan"); insert into counties(state_id, name) values(42, "Nueces"); insert into counties(state_id, name) values(42, "Ochiltree"); insert into counties(state_id, name) values(42, "Oldham"); insert into counties(state_id, name) values(42, "Orange"); insert into counties(state_id, name) values(42, "Palo Pinto"); insert into counties(state_id, name) values(42, "Panola"); insert into counties(state_id, name) values(42, "Parker"); insert into counties(state_id, name) values(42, "Parmer"); insert into counties(state_id, name) values(42, "Pecos"); insert into counties(state_id, name) values(42, "Polk"); insert into counties(state_id, name) values(42, "Potter"); insert into counties(state_id, name) values(42, "Presidio"); insert into counties(state_id, name) values(42, "Rains"); insert into counties(state_id, name) values(42, "Randall"); insert into counties(state_id, name) values(42, "Reagan"); insert into counties(state_id, name) values(42, "Real"); insert into counties(state_id, name) values(42, "Red River"); insert into counties(state_id, name) values(42, "Reeves"); insert into counties(state_id, name) values(42, "Refugio"); insert into counties(state_id, name) values(42, "Roberts"); insert into counties(state_id, name) values(42, "Robertson"); insert into counties(state_id, name) values(42, "Rockwall"); insert into counties(state_id, name) values(42, "Runnels"); insert into counties(state_id, name) values(42, "Rusk"); insert into counties(state_id, name) values(42, "Sabine"); insert into counties(state_id, name) values(42, "<NAME>"); insert into counties(state_id, name) values(42, "<NAME>"); insert into counties(state_id, name) values(42, "<NAME>"); insert into counties(state_id, name) values(42, "<NAME>"); insert into counties(state_id, name) values(42, "Schleicher"); insert into counties(state_id, name) values(42, "Scurry"); insert into counties(state_id, name) values(42, "Shackelford"); insert into counties(state_id, name) values(42, "Shelby"); insert into counties(state_id, name) values(42, "Sherman"); insert into counties(state_id, name) values(42, "Smith"); insert into counties(state_id, name) values(42, "Somervell"); insert into counties(state_id, name) values(42, "Starr"); insert into counties(state_id, name) values(42, "Stephens"); insert into counties(state_id, name) values(42, "Sterling"); insert into counties(state_id, name) values(42, "Stonewall"); insert into counties(state_id, name) values(42, "Sutton"); insert into counties(state_id, name) values(42, "Swisher"); insert into counties(state_id, name) values(42, "Tarrant"); insert into counties(state_id, name) values(42, "Taylor"); insert into counties(state_id, name) values(42, "Terrell"); insert into counties(state_id, name) values(42, "Terry"); insert into counties(state_id, name) values(42, "Throckmorton"); insert into counties(state_id, name) values(42, "Titus"); insert into counties(state_id, name) values(42, "<NAME>"); insert into counties(state_id, name) values(42, "Travis"); insert into counties(state_id, name) values(42, "Trinity"); insert into counties(state_id, name) values(42, "Tyler"); insert into counties(state_id, name) values(42, "Upshur"); insert into counties(state_id, name) values(42, "Upton"); insert into counties(state_id, name) values(42, "Uvalde"); insert into counties(state_id, name) values(42, "<NAME>"); insert into counties(state_id, name) values(42, "<NAME>"); insert into counties(state_id, name) values(42, "Victoria"); insert into counties(state_id, name) values(42, "Walker"); insert into counties(state_id, name) values(42, "Waller"); insert into counties(state_id, name) values(42, "Ward"); insert into counties(state_id, name) values(42, "Washington"); insert into counties(state_id, name) values(42, "Webb"); insert into counties(state_id, name) values(42, "Wharton"); insert into counties(state_id, name) values(42, "Wheeler"); insert into counties(state_id, name) values(42, "Wichita"); insert into counties(state_id, name) values(42, "Wilbarger"); insert into counties(state_id, name) values(42, "Willacy"); insert into counties(state_id, name) values(42, "Williamson"); insert into counties(state_id, name) values(42, "Wilson"); insert into counties(state_id, name) values(42, "Winkler"); insert into counties(state_id, name) values(42, "Wise"); insert into counties(state_id, name) values(42, "Wood"); insert into counties(state_id, name) values(42, "Yoakum"); insert into counties(state_id, name) values(42, "Young"); insert into counties(state_id, name) values(42, "Zapata"); insert into counties(state_id, name) values(42, "Zavala"); insert into states(id, name) values(43, "Louisiana"); insert into counties(state_id, name) values(43, "Acadia Parish"); insert into counties(state_id, name) values(43, "Allen Parish"); insert into counties(state_id, name) values(43, "Ascension Parish"); insert into counties(state_id, name) values(43, "Assumption Parish"); insert into counties(state_id, name) values(43, "Avoyelles Parish"); insert into counties(state_id, name) values(43, "Beauregard Parish"); insert into counties(state_id, name) values(43, "Bienville Parish"); insert into counties(state_id, name) values(43, "Bossier Parish"); insert into counties(state_id, name) values(43, "Caddo Parish"); insert into counties(state_id, name) values(43, "Calcasieu Parish"); insert into counties(state_id, name) values(43, "Caldwell Parish"); insert into counties(state_id, name) values(43, "Cameron Parish"); insert into counties(state_id, name) values(43, "Catahoula Parish"); insert into counties(state_id, name) values(43, "Claiborne Parish"); insert into counties(state_id, name) values(43, "Concordia Parish"); insert into counties(state_id, name) values(43, "De Soto Parish"); insert into counties(state_id, name) values(43, "East Baton Rouge Parish"); insert into counties(state_id, name) values(43, "East Carroll Parish"); insert into counties(state_id, name) values(43, "East Feliciana Parish"); insert into counties(state_id, name) values(43, "Evangeline Parish"); insert into counties(state_id, name) values(43, "Franklin Parish"); insert into counties(state_id, name) values(43, "Grant Parish"); insert into counties(state_id, name) values(43, "Iberia Parish"); insert into counties(state_id, name) values(43, "Iberville Parish"); insert into counties(state_id, name) values(43, "Jackson Parish"); insert into counties(state_id, name) values(43, "Jefferson Parish"); insert into counties(state_id, name) values(43, "<NAME> Parish"); insert into counties(state_id, name) values(43, "Lafayette Parish"); insert into counties(state_id, name) values(43, "Lafourche Parish"); insert into counties(state_id, name) values(43, "La Salle Parish"); insert into counties(state_id, name) values(43, "Lincoln Parish"); insert into counties(state_id, name) values(43, "Livingston Parish"); insert into counties(state_id, name) values(43, "Madison Parish"); insert into counties(state_id, name) values(43, "Morehouse Parish"); insert into counties(state_id, name) values(43, "Natchitoches Parish"); insert into counties(state_id, name) values(43, "Orleans Parish"); insert into counties(state_id, name) values(43, "Ouachita Parish"); insert into counties(state_id, name) values(43, "Plaquemines Parish"); insert into counties(state_id, name) values(43, "Pointe Coupee Parish"); insert into counties(state_id, name) values(43, "Rapides Parish"); insert into counties(state_id, name) values(43, "Red River Parish"); insert into counties(state_id, name) values(43, "Richland Parish"); insert into counties(state_id, name) values(43, "Sabine Parish"); insert into counties(state_id, name) values(43, "St. Bernard Parish"); insert into counties(state_id, name) values(43, "St. Charles Parish"); insert into counties(state_id, name) values(43, "St. Helena Parish"); insert into counties(state_id, name) values(43, "St. James Parish"); insert into counties(state_id, name) values(43, "St. John the Baptist Parish"); insert into counties(state_id, name) values(43, "St. Landry Parish"); insert into counties(state_id, name) values(43, "St. Martin Parish"); insert into counties(state_id, name) values(43, "St. Mary Parish"); insert into counties(state_id, name) values(43, "St. Tammany Parish"); insert into counties(state_id, name) values(43, "Tangipahoa Parish"); insert into counties(state_id, name) values(43, "Tensas Parish"); insert into counties(state_id, name) values(43, "Terrebonne Parish"); insert into counties(state_id, name) values(43, "Union Parish"); insert into counties(state_id, name) values(43, "Vermilion Parish"); insert into counties(state_id, name) values(43, "Vernon Parish"); insert into counties(state_id, name) values(43, "Washington Parish"); insert into counties(state_id, name) values(43, "Webster Parish"); insert into counties(state_id, name) values(43, "West Baton Rouge Parish"); insert into counties(state_id, name) values(43, "West Carroll Parish"); insert into counties(state_id, name) values(43, "West Feliciana Parish"); insert into counties(state_id, name) values(43, "Winn Parish"); insert into states(id, name) values(44, "Massachusetts"); insert into counties(state_id, name) values(44, "Barnstable"); insert into counties(state_id, name) values(44, "Berkshire"); insert into counties(state_id, name) values(44, "Bristol"); insert into counties(state_id, name) values(44, "Dukes"); insert into counties(state_id, name) values(44, "Essex"); insert into counties(state_id, name) values(44, "Franklin"); insert into counties(state_id, name) values(44, "Hampden"); insert into counties(state_id, name) values(44, "Hampshire"); insert into counties(state_id, name) values(44, "Middlesex"); insert into counties(state_id, name) values(44, "Nantucket"); insert into counties(state_id, name) values(44, "Norfolk"); insert into counties(state_id, name) values(44, "Plymouth"); insert into counties(state_id, name) values(44, "Suffolk"); insert into counties(state_id, name) values(44, "Worcester"); insert into states(id, name) values(45, "Missouri"); insert into counties(state_id, name) values(45, "Adair"); insert into counties(state_id, name) values(45, "Andrew"); insert into counties(state_id, name) values(45, "Atchison"); insert into counties(state_id, name) values(45, "Audrain"); insert into counties(state_id, name) values(45, "Barry"); insert into counties(state_id, name) values(45, "Barton"); insert into counties(state_id, name) values(45, "Bates"); insert into counties(state_id, name) values(45, "Benton"); insert into counties(state_id, name) values(45, "Bollinger"); insert into counties(state_id, name) values(45, "Boone"); insert into counties(state_id, name) values(45, "Buchanan"); insert into counties(state_id, name) values(45, "Butler"); insert into counties(state_id, name) values(45, "Caldwell"); insert into counties(state_id, name) values(45, "Callaway"); insert into counties(state_id, name) values(45, "Camden"); insert into counties(state_id, name) values(45, "<NAME>"); insert into counties(state_id, name) values(45, "Carroll"); insert into counties(state_id, name) values(45, "Carter"); insert into counties(state_id, name) values(45, "Cass"); insert into counties(state_id, name) values(45, "Cedar"); insert into counties(state_id, name) values(45, "Chariton"); insert into counties(state_id, name) values(45, "Christian"); insert into counties(state_id, name) values(45, "Clark"); insert into counties(state_id, name) values(45, "Clay"); insert into counties(state_id, name) values(45, "Clinton"); insert into counties(state_id, name) values(45, "Cole"); insert into counties(state_id, name) values(45, "Cooper"); insert into counties(state_id, name) values(45, "Crawford"); insert into counties(state_id, name) values(45, "Dade"); insert into counties(state_id, name) values(45, "Dallas"); insert into counties(state_id, name) values(45, "Daviess"); insert into counties(state_id, name) values(45, "DeKalb"); insert into counties(state_id, name) values(45, "Dent"); insert into counties(state_id, name) values(45, "Douglas"); insert into counties(state_id, name) values(45, "Dunklin"); insert into counties(state_id, name) values(45, "Franklin"); insert into counties(state_id, name) values(45, "Gasconade"); insert into counties(state_id, name) values(45, "Gentry"); insert into counties(state_id, name) values(45, "Greene"); insert into counties(state_id, name) values(45, "Grundy"); insert into counties(state_id, name) values(45, "Harrison"); insert into counties(state_id, name) values(45, "Henry"); insert into counties(state_id, name) values(45, "Hickory"); insert into counties(state_id, name) values(45, "Holt"); insert into counties(state_id, name) values(45, "Howard"); insert into counties(state_id, name) values(45, "Howell"); insert into counties(state_id, name) values(45, "Iron"); insert into counties(state_id, name) values(45, "Jackson"); insert into counties(state_id, name) values(45, "Jasper"); insert into counties(state_id, name) values(45, "Jefferson"); insert into counties(state_id, name) values(45, "Johnson"); insert into counties(state_id, name) values(45, "Knox"); insert into counties(state_id, name) values(45, "Laclede"); insert into counties(state_id, name) values(45, "Lafayette"); insert into counties(state_id, name) values(45, "Lawrence"); insert into counties(state_id, name) values(45, "Lewis"); insert into counties(state_id, name) values(45, "Lincoln"); insert into counties(state_id, name) values(45, "Linn"); insert into counties(state_id, name) values(45, "Livingston"); insert into counties(state_id, name) values(45, "McDonald"); insert into counties(state_id, name) values(45, "Macon"); insert into counties(state_id, name) values(45, "Madison"); insert into counties(state_id, name) values(45, "Maries"); insert into counties(state_id, name) values(45, "Marion"); insert into counties(state_id, name) values(45, "Mercer"); insert into counties(state_id, name) values(45, "Miller"); insert into counties(state_id, name) values(45, "Mississippi"); insert into counties(state_id, name) values(45, "Moniteau"); insert into counties(state_id, name) values(45, "Monroe"); insert into counties(state_id, name) values(45, "Montgomery"); insert into counties(state_id, name) values(45, "Morgan"); insert into counties(state_id, name) values(45, "New Madrid"); insert into counties(state_id, name) values(45, "Newton"); insert into counties(state_id, name) values(45, "Nodaway"); insert into counties(state_id, name) values(45, "Oregon"); insert into counties(state_id, name) values(45, "Osage"); insert into counties(state_id, name) values(45, "Ozark"); insert into counties(state_id, name) values(45, "Pemiscot"); insert into counties(state_id, name) values(45, "Perry"); insert into counties(state_id, name) values(45, "Pettis"); insert into counties(state_id, name) values(45, "Phelps"); insert into counties(state_id, name) values(45, "Pike"); insert into counties(state_id, name) values(45, "Platte"); insert into counties(state_id, name) values(45, "Polk"); insert into counties(state_id, name) values(45, "Pulaski"); insert into counties(state_id, name) values(45, "Putnam"); insert into counties(state_id, name) values(45, "Ralls"); insert into counties(state_id, name) values(45, "Randolph"); insert into counties(state_id, name) values(45, "Ray"); insert into counties(state_id, name) values(45, "Reynolds"); insert into counties(state_id, name) values(45, "Ripley"); insert into counties(state_id, name) values(45, "St. Charles"); insert into counties(state_id, name) values(45, "St. Clair"); insert into counties(state_id, name) values(45, "<NAME>"); insert into counties(state_id, name) values(45, "St. Francois"); insert into counties(state_id, name) values(45, "St. Louis"); insert into counties(state_id, name) values(45, "Saline"); insert into counties(state_id, name) values(45, "Schuyler"); insert into counties(state_id, name) values(45, "Scotland"); insert into counties(state_id, name) values(45, "Scott"); insert into counties(state_id, name) values(45, "Shannon"); insert into counties(state_id, name) values(45, "Shelby"); insert into counties(state_id, name) values(45, "Stoddard"); insert into counties(state_id, name) values(45, "Stone"); insert into counties(state_id, name) values(45, "Sullivan"); insert into counties(state_id, name) values(45, "Taney"); insert into counties(state_id, name) values(45, "Texas"); insert into counties(state_id, name) values(45, "Vernon"); insert into counties(state_id, name) values(45, "Warren"); insert into counties(state_id, name) values(45, "Washington"); insert into counties(state_id, name) values(45, "Wayne"); insert into counties(state_id, name) values(45, "Webster"); insert into counties(state_id, name) values(45, "Worth"); insert into counties(state_id, name) values(45, "Wright"); insert into counties(state_id, name) values(45, "St. Louis"); insert into states(id, name) values(46, "Virginia"); insert into counties(state_id, name) values(46, "Accomack"); insert into counties(state_id, name) values(46, "Albemarle"); insert into counties(state_id, name) values(46, "Alleghany"); insert into counties(state_id, name) values(46, "Amelia"); insert into counties(state_id, name) values(46, "Amherst"); insert into counties(state_id, name) values(46, "Appomattox"); insert into counties(state_id, name) values(46, "Arlington"); insert into counties(state_id, name) values(46, "Augusta"); insert into counties(state_id, name) values(46, "Bath"); insert into counties(state_id, name) values(46, "Bedford"); insert into counties(state_id, name) values(46, "Bland"); insert into counties(state_id, name) values(46, "Botetourt"); insert into counties(state_id, name) values(46, "Brunswick"); insert into counties(state_id, name) values(46, "Buchanan"); insert into counties(state_id, name) values(46, "Buckingham"); insert into counties(state_id, name) values(46, "Campbell"); insert into counties(state_id, name) values(46, "Caroline"); insert into counties(state_id, name) values(46, "Carroll"); insert into counties(state_id, name) values(46, "Charles City"); insert into counties(state_id, name) values(46, "Charlotte"); insert into counties(state_id, name) values(46, "Chesterfield"); insert into counties(state_id, name) values(46, "Clarke"); insert into counties(state_id, name) values(46, "Craig"); insert into counties(state_id, name) values(46, "Culpeper"); insert into counties(state_id, name) values(46, "Cumberland"); insert into counties(state_id, name) values(46, "Dickenson"); insert into counties(state_id, name) values(46, "Dinwiddie"); insert into counties(state_id, name) values(46, "Essex"); insert into counties(state_id, name) values(46, "Fairfax"); insert into counties(state_id, name) values(46, "Fauquier"); insert into counties(state_id, name) values(46, "Floyd"); insert into counties(state_id, name) values(46, "Fluvanna"); insert into counties(state_id, name) values(46, "Franklin"); insert into counties(state_id, name) values(46, "Frederick"); insert into counties(state_id, name) values(46, "Giles"); insert into counties(state_id, name) values(46, "Gloucester"); insert into counties(state_id, name) values(46, "Goochland"); insert into counties(state_id, name) values(46, "Grayson"); insert into counties(state_id, name) values(46, "Greene"); insert into counties(state_id, name) values(46, "Greensville"); insert into counties(state_id, name) values(46, "Halifax"); insert into counties(state_id, name) values(46, "Hanover"); insert into counties(state_id, name) values(46, "Henrico"); insert into counties(state_id, name) values(46, "Henry"); insert into counties(state_id, name) values(46, "Highland"); insert into counties(state_id, name) values(46, "Isle of Wight"); insert into counties(state_id, name) values(46, "James City"); insert into counties(state_id, name) values(46, "King and Queen"); insert into counties(state_id, name) values(46, "King George"); insert into counties(state_id, name) values(46, "King William"); insert into counties(state_id, name) values(46, "Lancaster"); insert into counties(state_id, name) values(46, "Lee"); insert into counties(state_id, name) values(46, "Loudoun"); insert into counties(state_id, name) values(46, "Louisa"); insert into counties(state_id, name) values(46, "Lunenburg"); insert into counties(state_id, name) values(46, "Madison"); insert into counties(state_id, name) values(46, "Mathews"); insert into counties(state_id, name) values(46, "Mecklenburg"); insert into counties(state_id, name) values(46, "Middlesex"); insert into counties(state_id, name) values(46, "Montgomery"); insert into counties(state_id, name) values(46, "Nelson"); insert into counties(state_id, name) values(46, "New Kent"); insert into counties(state_id, name) values(46, "Northampton"); insert into counties(state_id, name) values(46, "Northumberland"); insert into counties(state_id, name) values(46, "Nottoway"); insert into counties(state_id, name) values(46, "Orange"); insert into counties(state_id, name) values(46, "Page"); insert into counties(state_id, name) values(46, "Patrick"); insert into counties(state_id, name) values(46, "Pittsylvania"); insert into counties(state_id, name) values(46, "Powhatan"); insert into counties(state_id, name) values(46, "<NAME>"); insert into counties(state_id, name) values(46, "<NAME>"); insert into counties(state_id, name) values(46, "<NAME>"); insert into counties(state_id, name) values(46, "Pulaski"); insert into counties(state_id, name) values(46, "Rappahannock"); insert into counties(state_id, name) values(46, "Richmond"); insert into counties(state_id, name) values(46, "Roanoke"); insert into counties(state_id, name) values(46, "Rockbridge"); insert into counties(state_id, name) values(46, "Rockingham"); insert into counties(state_id, name) values(46, "Russell"); insert into counties(state_id, name) values(46, "Scott"); insert into counties(state_id, name) values(46, "Shenandoah"); insert into counties(state_id, name) values(46, "Smyth"); insert into counties(state_id, name) values(46, "Southampton"); insert into counties(state_id, name) values(46, "Spotsylvania"); insert into counties(state_id, name) values(46, "Stafford"); insert into counties(state_id, name) values(46, "Surry"); insert into counties(state_id, name) values(46, "Sussex"); insert into counties(state_id, name) values(46, "Tazewell"); insert into counties(state_id, name) values(46, "Warren"); insert into counties(state_id, name) values(46, "Washington"); insert into counties(state_id, name) values(46, "Westmoreland"); insert into counties(state_id, name) values(46, "Wise"); insert into counties(state_id, name) values(46, "Wythe"); insert into counties(state_id, name) values(46, "York"); insert into counties(state_id, name) values(46, "Alexandria"); insert into counties(state_id, name) values(46, "Bristol"); insert into counties(state_id, name) values(46, "Buena Vista"); insert into counties(state_id, name) values(46, "Charlottesville"); insert into counties(state_id, name) values(46, "Chesapeake"); insert into counties(state_id, name) values(46, "Colonial Heights"); insert into counties(state_id, name) values(46, "Covington"); insert into counties(state_id, name) values(46, "Danville"); insert into counties(state_id, name) values(46, "Emporia"); insert into counties(state_id, name) values(46, "Fairfax"); insert into counties(state_id, name) values(46, "Falls Church"); insert into counties(state_id, name) values(46, "Franklin"); insert into counties(state_id, name) values(46, "Fredericksburg"); insert into counties(state_id, name) values(46, "Galax"); insert into counties(state_id, name) values(46, "Hampton"); insert into counties(state_id, name) values(46, "Harrisonburg"); insert into counties(state_id, name) values(46, "Hopewell"); insert into counties(state_id, name) values(46, "Lexington"); insert into counties(state_id, name) values(46, "Lynchburg"); insert into counties(state_id, name) values(46, "Manassas"); insert into counties(state_id, name) values(46, "Manassas Park"); insert into counties(state_id, name) values(46, "Martinsville"); insert into counties(state_id, name) values(46, "Newport News"); insert into counties(state_id, name) values(46, "Norfolk"); insert into counties(state_id, name) values(46, "Norton"); insert into counties(state_id, name) values(46, "Petersburg"); insert into counties(state_id, name) values(46, "Poquoson"); insert into counties(state_id, name) values(46, "Portsmouth"); insert into counties(state_id, name) values(46, "Radford"); insert into counties(state_id, name) values(46, "Richmond"); insert into counties(state_id, name) values(46, "Roanoke"); insert into counties(state_id, name) values(46, "Salem"); insert into counties(state_id, name) values(46, "Staunton"); insert into counties(state_id, name) values(46, "Suffolk"); insert into counties(state_id, name) values(46, "Virginia Beach"); insert into counties(state_id, name) values(46, "Waynesboro"); insert into counties(state_id, name) values(46, "Williamsburg"); insert into counties(state_id, name) values(46, "Winchester"); insert into states(id, name) values(47, "Pennsylvania"); insert into counties(state_id, name) values(47, "Adams"); insert into counties(state_id, name) values(47, "Allegheny"); insert into counties(state_id, name) values(47, "Armstrong"); insert into counties(state_id, name) values(47, "Beaver"); insert into counties(state_id, name) values(47, "Bedford"); insert into counties(state_id, name) values(47, "Berks"); insert into counties(state_id, name) values(47, "Blair"); insert into counties(state_id, name) values(47, "Bradford"); insert into counties(state_id, name) values(47, "Bucks"); insert into counties(state_id, name) values(47, "Butler"); insert into counties(state_id, name) values(47, "Cambria"); insert into counties(state_id, name) values(47, "Cameron"); insert into counties(state_id, name) values(47, "Carbon"); insert into counties(state_id, name) values(47, "Centre"); insert into counties(state_id, name) values(47, "Chester"); insert into counties(state_id, name) values(47, "Clarion"); insert into counties(state_id, name) values(47, "Clearfield"); insert into counties(state_id, name) values(47, "Clinton"); insert into counties(state_id, name) values(47, "Columbia"); insert into counties(state_id, name) values(47, "Crawford"); insert into counties(state_id, name) values(47, "Cumberland"); insert into counties(state_id, name) values(47, "Dauphin"); insert into counties(state_id, name) values(47, "Delaware"); insert into counties(state_id, name) values(47, "Elk"); insert into counties(state_id, name) values(47, "Erie"); insert into counties(state_id, name) values(47, "Fayette"); insert into counties(state_id, name) values(47, "Forest"); insert into counties(state_id, name) values(47, "Franklin"); insert into counties(state_id, name) values(47, "Fulton"); insert into counties(state_id, name) values(47, "Greene"); insert into counties(state_id, name) values(47, "Huntingdon"); insert into counties(state_id, name) values(47, "Indiana"); insert into counties(state_id, name) values(47, "Jefferson"); insert into counties(state_id, name) values(47, "Juniata"); insert into counties(state_id, name) values(47, "Lackawanna"); insert into counties(state_id, name) values(47, "Lancaster"); insert into counties(state_id, name) values(47, "Lawrence"); insert into counties(state_id, name) values(47, "Lebanon"); insert into counties(state_id, name) values(47, "Lehigh"); insert into counties(state_id, name) values(47, "Luzerne"); insert into counties(state_id, name) values(47, "Lycoming"); insert into counties(state_id, name) values(47, "McKean"); insert into counties(state_id, name) values(47, "Mercer"); insert into counties(state_id, name) values(47, "Mifflin"); insert into counties(state_id, name) values(47, "Monroe"); insert into counties(state_id, name) values(47, "Montgomery"); insert into counties(state_id, name) values(47, "Montour"); insert into counties(state_id, name) values(47, "Northampton"); insert into counties(state_id, name) values(47, "Northumberland"); insert into counties(state_id, name) values(47, "Perry"); insert into counties(state_id, name) values(47, "Philadelphia"); insert into counties(state_id, name) values(47, "Pike"); insert into counties(state_id, name) values(47, "Potter"); insert into counties(state_id, name) values(47, "Schuylkill"); insert into counties(state_id, name) values(47, "Snyder"); insert into counties(state_id, name) values(47, "Somerset"); insert into counties(state_id, name) values(47, "Sullivan"); insert into counties(state_id, name) values(47, "Susquehanna"); insert into counties(state_id, name) values(47, "Tioga"); insert into counties(state_id, name) values(47, "Union"); insert into counties(state_id, name) values(47, "Venango"); insert into counties(state_id, name) values(47, "Warren"); insert into counties(state_id, name) values(47, "Washington"); insert into counties(state_id, name) values(47, "Wayne"); insert into counties(state_id, name) values(47, "Westmoreland"); insert into counties(state_id, name) values(47, "Wyoming"); insert into counties(state_id, name) values(47, "York"); insert into states(id, name) values(48, "Arizona"); insert into counties(state_id, name) values(48, "Apache"); insert into counties(state_id, name) values(48, "Cochise"); insert into counties(state_id, name) values(48, "Coconino"); insert into counties(state_id, name) values(48, "Gila"); insert into counties(state_id, name) values(48, "Graham"); insert into counties(state_id, name) values(48, "Greenlee"); insert into counties(state_id, name) values(48, "<NAME>"); insert into counties(state_id, name) values(48, "Maricopa"); insert into counties(state_id, name) values(48, "Mohave"); insert into counties(state_id, name) values(48, "Navajo"); insert into counties(state_id, name) values(48, "Pima"); insert into counties(state_id, name) values(48, "Pinal"); insert into counties(state_id, name) values(48, "<NAME>"); insert into counties(state_id, name) values(48, "Yavapai"); insert into counties(state_id, name) values(48, "Yuma"); insert into states(id, name) values(49, "Idaho"); insert into counties(state_id, name) values(49, "Ada"); insert into counties(state_id, name) values(49, "Adams"); insert into counties(state_id, name) values(49, "Bannock"); insert into counties(state_id, name) values(49, "Bear Lake"); insert into counties(state_id, name) values(49, "Benewah"); insert into counties(state_id, name) values(49, "Bingham"); insert into counties(state_id, name) values(49, "Blaine"); insert into counties(state_id, name) values(49, "Boise"); insert into counties(state_id, name) values(49, "Bonner"); insert into counties(state_id, name) values(49, "Bonneville"); insert into counties(state_id, name) values(49, "Boundary"); insert into counties(state_id, name) values(49, "Butte"); insert into counties(state_id, name) values(49, "Camas"); insert into counties(state_id, name) values(49, "Canyon"); insert into counties(state_id, name) values(49, "Caribou"); insert into counties(state_id, name) values(49, "Cassia"); insert into counties(state_id, name) values(49, "Clark"); insert into counties(state_id, name) values(49, "Clearwater"); insert into counties(state_id, name) values(49, "Custer"); insert into counties(state_id, name) values(49, "Elmore"); insert into counties(state_id, name) values(49, "Franklin"); insert into counties(state_id, name) values(49, "Fremont"); insert into counties(state_id, name) values(49, "Gem"); insert into counties(state_id, name) values(49, "Gooding"); insert into counties(state_id, name) values(49, "Idaho"); insert into counties(state_id, name) values(49, "Jefferson"); insert into counties(state_id, name) values(49, "Jerome"); insert into counties(state_id, name) values(49, "Kootenai"); insert into counties(state_id, name) values(49, "Latah"); insert into counties(state_id, name) values(49, "Lemhi"); insert into counties(state_id, name) values(49, "Lewis"); insert into counties(state_id, name) values(49, "Lincoln"); insert into counties(state_id, name) values(49, "Madison"); insert into counties(state_id, name) values(49, "Minidoka"); insert into counties(state_id, name) values(49, "<NAME>"); insert into counties(state_id, name) values(49, "Oneida"); insert into counties(state_id, name) values(49, "Owyhee"); insert into counties(state_id, name) values(49, "Payette"); insert into counties(state_id, name) values(49, "Power"); insert into counties(state_id, name) values(49, "Shoshone"); insert into counties(state_id, name) values(49, "Teton"); insert into counties(state_id, name) values(49, "<NAME>"); insert into counties(state_id, name) values(49, "Valley"); insert into counties(state_id, name) values(49, "Washington"); insert into states(id, name) values(50, "Michigan"); insert into counties(state_id, name) values(50, "Alcona"); insert into counties(state_id, name) values(50, "Alger"); insert into counties(state_id, name) values(50, "Allegan"); insert into counties(state_id, name) values(50, "Alpena"); insert into counties(state_id, name) values(50, "Antrim"); insert into counties(state_id, name) values(50, "Arenac"); insert into counties(state_id, name) values(50, "Baraga"); insert into counties(state_id, name) values(50, "Barry"); insert into counties(state_id, name) values(50, "Bay"); insert into counties(state_id, name) values(50, "Benzie"); insert into counties(state_id, name) values(50, "Berrien"); insert into counties(state_id, name) values(50, "Branch"); insert into counties(state_id, name) values(50, "Calhoun"); insert into counties(state_id, name) values(50, "Cass"); insert into counties(state_id, name) values(50, "Charlevoix"); insert into counties(state_id, name) values(50, "Cheboygan"); insert into counties(state_id, name) values(50, "Chippewa"); insert into counties(state_id, name) values(50, "Clare"); insert into counties(state_id, name) values(50, "Clinton"); insert into counties(state_id, name) values(50, "Crawford"); insert into counties(state_id, name) values(50, "Delta"); insert into counties(state_id, name) values(50, "Dickinson"); insert into counties(state_id, name) values(50, "Eaton"); insert into counties(state_id, name) values(50, "Emmet"); insert into counties(state_id, name) values(50, "Genesee"); insert into counties(state_id, name) values(50, "Gladwin"); insert into counties(state_id, name) values(50, "Gogebic"); insert into counties(state_id, name) values(50, "Grand Traverse"); insert into counties(state_id, name) values(50, "Gratiot"); insert into counties(state_id, name) values(50, "Hillsdale"); insert into counties(state_id, name) values(50, "Houghton"); insert into counties(state_id, name) values(50, "Huron"); insert into counties(state_id, name) values(50, "Ingham"); insert into counties(state_id, name) values(50, "Ionia"); insert into counties(state_id, name) values(50, "Iosco"); insert into counties(state_id, name) values(50, "Iron"); insert into counties(state_id, name) values(50, "Isabella"); insert into counties(state_id, name) values(50, "Jackson"); insert into counties(state_id, name) values(50, "Kalamazoo"); insert into counties(state_id, name) values(50, "Kalkaska"); insert into counties(state_id, name) values(50, "Kent"); insert into counties(state_id, name) values(50, "Keweenaw"); insert into counties(state_id, name) values(50, "Lake"); insert into counties(state_id, name) values(50, "Lapeer"); insert into counties(state_id, name) values(50, "Leelanau"); insert into counties(state_id, name) values(50, "Lenawee"); insert into counties(state_id, name) values(50, "Livingston"); insert into counties(state_id, name) values(50, "Luce"); insert into counties(state_id, name) values(50, "Mackinac"); insert into counties(state_id, name) values(50, "Macomb"); insert into counties(state_id, name) values(50, "Manistee"); insert into counties(state_id, name) values(50, "Marquette"); insert into counties(state_id, name) values(50, "Mason"); insert into counties(state_id, name) values(50, "Mecosta"); insert into counties(state_id, name) values(50, "Menominee"); insert into counties(state_id, name) values(50, "Midland"); insert into counties(state_id, name) values(50, "Missaukee"); insert into counties(state_id, name) values(50, "Monroe"); insert into counties(state_id, name) values(50, "Montcalm"); insert into counties(state_id, name) values(50, "Montmorency"); insert into counties(state_id, name) values(50, "Muskegon"); insert into counties(state_id, name) values(50, "Newaygo"); insert into counties(state_id, name) values(50, "Oakland"); insert into counties(state_id, name) values(50, "Oceana"); insert into counties(state_id, name) values(50, "Ogemaw"); insert into counties(state_id, name) values(50, "Ontonagon"); insert into counties(state_id, name) values(50, "Osceola"); insert into counties(state_id, name) values(50, "Oscoda"); insert into counties(state_id, name) values(50, "Otsego"); insert into counties(state_id, name) values(50, "Ottawa"); insert into counties(state_id, name) values(50, "Presque Isle"); insert into counties(state_id, name) values(50, "Roscommon"); insert into counties(state_id, name) values(50, "Saginaw"); insert into counties(state_id, name) values(50, "St. Clair"); insert into counties(state_id, name) values(50, "St. Joseph"); insert into counties(state_id, name) values(50, "Sanilac"); insert into counties(state_id, name) values(50, "Schoolcraft"); insert into counties(state_id, name) values(50, "Shiawassee"); insert into counties(state_id, name) values(50, "Tuscola"); insert into counties(state_id, name) values(50, "<NAME>"); insert into counties(state_id, name) values(50, "Washtenaw"); insert into counties(state_id, name) values(50, "Wayne"); insert into counties(state_id, name) values(50, "Wexford");
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 05 Jan 2022 pada 06.51 -- Versi server: 10.4.22-MariaDB -- Versi PHP: 8.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `eks_mlng` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `draft_naskah_kerjasama` -- CREATE TABLE `draft_naskah_kerjasama` ( `id_dnk` int(11) NOT NULL, `nama_dnk` enum('Rencana Kerjasama','Kesepakatan Bersama/MOU','Perjanjian Kerjasama EKS','') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `draft_naskah_kerjasama` -- INSERT INTO `draft_naskah_kerjasama` (`id_dnk`, `nama_dnk`) VALUES (1, 'Rencana Kerjasama'), (2, 'Kesepakatan Bersama/MOU'), (3, 'Perjanjian Kerjasama EKS'); -- -------------------------------------------------------- -- -- Struktur dari tabel `kategori_surat` -- CREATE TABLE `kategori_surat` ( `id_kategori` int(11) NOT NULL, `nama_kategori` enum('Dalam Negeri','Luar Negeri') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `kategori_surat` -- INSERT INTO `kategori_surat` (`id_kategori`, `nama_kategori`) VALUES (1, 'Dalam Negeri'), (2, 'Luar Negeri'); -- -------------------------------------------------------- -- -- Struktur dari tabel `status_kerjasama` -- CREATE TABLE `status_kerjasama` ( `id_status_kerjasama` int(11) NOT NULL, `nama_status_kerjasama` enum('Baru','Perpanjang') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `status_kerjasama` -- INSERT INTO `status_kerjasama` (`id_status_kerjasama`, `nama_status_kerjasama`) VALUES (1, 'Baru'), (2, 'Perpanjang'); -- -------------------------------------------------------- -- -- Struktur dari tabel `status_surat` -- CREATE TABLE `status_surat` ( `id_status` int(11) NOT NULL, `status` enum('diterima','ditolak','ditinjau') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `status_surat` -- INSERT INTO `status_surat` (`id_status`, `status`) VALUES (1, 'diterima'), (2, 'ditolak'), (3, 'ditinjau'); -- -------------------------------------------------------- -- -- Struktur dari tabel `surat` -- CREATE TABLE `surat` ( `id_surat` int(11) NOT NULL, `id_user` int(11) NOT NULL, `isi_surat` varchar(255) NOT NULL, `file_surat` varchar(255) NOT NULL, `draft_naskah` varchar(255) NOT NULL, `id_status` int(11) NOT NULL, `id_status_kerjasama` int(11) NOT NULL, `id_kategori` int(11) NOT NULL, `id_dnk` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `surat` -- INSERT INTO `surat` (`id_surat`, `id_user`, `isi_surat`, `file_surat`, `draft_naskah`, `id_status`, `id_status_kerjasama`, `id_kategori`, `id_dnk`, `created_at`, `updated_at`) VALUES (195, 36, 'COBA SAJA', '1641302142_6<PASSWORD>.pdf', '1641302142_bfda<PASSWORD>.docx', 1, 1, 1, 1, '2022-01-04 13:15:42', '2022-01-04 13:15:42'); -- -------------------------------------------------------- -- -- Struktur dari tabel `users` -- CREATE TABLE `users` ( `id` int(11) NOT NULL, `name` varchar(120) DEFAULT NULL, `username` varchar(120) DEFAULT NULL, `phone_no` varchar(120) DEFAULT NULL, `role` enum('admin','user','superadmin','analis_nk','analis_sk') NOT NULL, `password` varchar(120) DEFAULT NULL, `email` varchar(255) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `users` -- INSERT INTO `users` (`id`, `name`, `username`, `phone_no`, `role`, `password`, `email`, `created_at`) VALUES (1, 'Super Admin', 'superadmin', '081907861308', 'superadmin', '$2a$04$r3HM7AZd3Zm4eviCJg4mPetZGQS1FvPlj7wZpcUMG9.wCm1rk336G', '<EMAIL>', '2021-12-03 18:45:55'), (35, 'naskah kerjasama', 'nkuser', '098765456787', 'analis_nk', '$2y$10$0sPcoMA2bZkiRH1oVNo4MOGTHw4ATijYvYd3r59zmcFexdhUGb47a', '<EMAIL>', '2022-01-04 13:04:52'), (36, 'penggunasurat', 'pengguna', '057686554534', 'user', '$2y$10$BEE.3.MfQ7nj9nTeD2HxJ.XzU0D1wzKidsgLFRSoLNtOdhGm1cE7S', '<EMAIL>', '2022-01-04 13:14:45'), (37, 'surat kerjasama', 'skuser', '086756776473', 'analis_sk', '$2y$10$68zWHafNDIWQg.M8jkJ.MudQ9zPwAsD2xyGDPITWW5jOM.081VH0a', '<EMAIL>', '2022-01-05 05:45:56'); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `draft_naskah_kerjasama` -- ALTER TABLE `draft_naskah_kerjasama` ADD PRIMARY KEY (`id_dnk`); -- -- Indeks untuk tabel `kategori_surat` -- ALTER TABLE `kategori_surat` ADD PRIMARY KEY (`id_kategori`); -- -- Indeks untuk tabel `status_kerjasama` -- ALTER TABLE `status_kerjasama` ADD PRIMARY KEY (`id_status_kerjasama`); -- -- Indeks untuk tabel `status_surat` -- ALTER TABLE `status_surat` ADD PRIMARY KEY (`id_status`); -- -- Indeks untuk tabel `surat` -- ALTER TABLE `surat` ADD PRIMARY KEY (`id_surat`), ADD KEY `id_user` (`id_user`), ADD KEY `id_status` (`id_status`), ADD KEY `id_kategori` (`id_kategori`), ADD KEY `id_status_kerjasama` (`id_status_kerjasama`), ADD KEY `id_dnk` (`id_dnk`); -- -- Indeks untuk tabel `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `draft_naskah_kerjasama` -- ALTER TABLE `draft_naskah_kerjasama` MODIFY `id_dnk` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT untuk tabel `kategori_surat` -- ALTER TABLE `kategori_surat` MODIFY `id_kategori` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT untuk tabel `status_kerjasama` -- ALTER TABLE `status_kerjasama` MODIFY `id_status_kerjasama` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT untuk tabel `surat` -- ALTER TABLE `surat` MODIFY `id_surat` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=196; -- -- AUTO_INCREMENT untuk tabel `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38; -- -- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables) -- -- -- Ketidakleluasaan untuk tabel `surat` -- ALTER TABLE `surat` ADD CONSTRAINT `surat_ibfk_1` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`), ADD CONSTRAINT `surat_ibfk_2` FOREIGN KEY (`id_status`) REFERENCES `status_surat` (`id_status`), ADD CONSTRAINT `surat_ibfk_3` FOREIGN KEY (`id_kategori`) REFERENCES `kategori_surat` (`id_kategori`), ADD CONSTRAINT `surat_ibfk_4` FOREIGN KEY (`id_status_kerjasama`) REFERENCES `status_kerjasama` (`id_status_kerjasama`), ADD CONSTRAINT `surat_ibfk_5` FOREIGN KEY (`id_dnk`) REFERENCES `draft_naskah_kerjasama` (`id_dnk`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
CREATE TABLE IF NOT EXISTS `postal_locations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `postal_code` varchar(8) NOT NULL, `latitude` decimal(18,15) NOT NULL, `longitude` decimal(18,15) NOT NULL, PRIMARY KEY (`id`), UNIQUE (`postal_code`) ) AUTO_INCREMENT=1; CREATE TABLE IF NOT EXISTS `distance_requests` ( `id` int(11) NOT NULL AUTO_INCREMENT, `initial_postal_code` varchar(8) NOT NULL, `final_postal_code` varchar(8) NOT NULL, `request_time` timestamp NOT NULL, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) AUTO_INCREMENT=1;
<reponame>tikaakusumaa/moviestation -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Apr 11, 2017 at 10:28 AM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `logingoogle` -- -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(11) NOT NULL, `oauth_provider` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `oauth_uid` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `first_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `last_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `gender` varchar(10) COLLATE utf8_unicode_ci NOT NULL, `locale` varchar(10) COLLATE utf8_unicode_ci NOT NULL, `picture_url` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `profile_url` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created` datetime NOT NULL, `modified` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `oauth_provider`, `oauth_uid`, `first_name`, `last_name`, `email`, `gender`, `locale`, `picture_url`, `profile_url`, `created`, `modified`) VALUES (1, 'google', '103594736457296581338', 'Chusmita', 'Adi', '<EMAIL>', 'male', 'in', 'https://lh6.googleusercontent.com/-eTN9I0tzWIY/AAAAAAAAAAI/AAAAAAAAABk/MAImoBnbSCU/photo.jpg', 'https://plus.google.com/103594736457296581338', '2017-04-10 12:39:32', '2017-04-10 13:05:24'); -- -- Indexes for dumped tables -- -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
 IF OBJECT_ID('[Report].[PFRTrailblazerApprenticeshipsOccupancyReport_PSDM_FAM_HelperView]') IS NOT NULL BEGIN DROP VIEW [Report].[PFRTrailblazerApprenticeshipsOccupancyReport_PSDM_FAM_HelperView] END GO CREATE VIEW [Report].[PFRTrailblazerApprenticeshipsOccupancyReport_PSDM_FAM_HelperView] AS SELECT [LDD].[LearnRefNumber], [LDD].[AimSeqNumber], [LDD].[ProvSpecDelMon_A], [LDD].[ProvSpecDelMon_B], [LDD].[ProvSpecDelMon_C], [LDD].[ProvSpecDelMon_D], [LDFAM_SOF].[LearnDelFAMCode] AS [LrnDelFAM_SOF], [LDFAM_EEF].[LearnDelFAMCode] AS [LrnDelFAM_EEF], [LDFAM_RES].[LearnDelFAMCode] AS [LrnDelFAM_RES], [LDD].[LDM1], [LDD].[LDM2], [LDD].[LDM3], [LDD].[LDM4] FROM [Valid].[LearningDeliveryDenorm] AS [LDD] LEFT JOIN [Valid].[LearningDeliveryFAM] AS [LDFAM_SOF] ON [LDD].[LearnRefNumber] = [LDFAM_SOF].[LearnRefNumber] AND [LDD].[AimSeqNumber] = [LDFAM_SOF].[AimSeqNumber] AND [LDFAM_SOF].[LearnDelFAMType] = 'SOF' LEFT JOIN [Valid].[LearningDeliveryFAM] AS [LDFAM_EEF] ON [LDD].[LearnRefNumber] = [LDFAM_EEF].[LearnRefNumber] AND [LDD].[AimSeqNumber] = [LDFAM_EEF].[AimSeqNumber] AND [LDFAM_EEF].[LearnDelFAMType] = 'EEF' LEFT JOIN [Valid].[LearningDeliveryFAM] AS [LDFAM_RES] ON [LDD].[LearnRefNumber] = [LDFAM_RES].[LearnRefNumber] AND [LDD].[AimSeqNumber] = [LDFAM_RES].[AimSeqNumber] AND [LDFAM_RES].[LearnDelFAMType] = 'RES'
<gh_stars>0 -- AlterTable ALTER TABLE "Books" ADD COLUMN "authorId" INTEGER; -- CreateTable CREATE TABLE "Author" ( "id" SERIAL NOT NULL, "name" TEXT NOT NULL, CONSTRAINT "Author_pkey" PRIMARY KEY ("id") ); -- AddForeignKey ALTER TABLE "Books" ADD CONSTRAINT "Books_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "Author"("id") ON DELETE SET NULL ON UPDATE CASCADE;
CREATE PROCEDURE dbo.twoDataSets AS SET NOCOUNT ON; SELECT one = 1, two = '2'; SELECT ReturnCode = 1 GO
<filename>schema.sql SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for api-keys -- ---------------------------- DROP TABLE IF EXISTS `api-keys`; CREATE TABLE `api-keys` ( `apiKey` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, `secretKey` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, `organizationId` int(12) NOT NULL, `ipRestrictions` text COLLATE utf8mb4_bin, `referrerRestrictions` text COLLATE utf8mb4_bin, `apiRestrictions` text COLLATE utf8mb4_bin, `createdAt` datetime NOT NULL, `updatedAt` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`apiKey`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- ---------------------------- -- Table structure for approved-locations -- ---------------------------- DROP TABLE IF EXISTS `approved-locations`; CREATE TABLE `approved-locations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) NOT NULL, `subnet` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, `createdAt` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -- ---------------------------- -- Table structure for backup-codes -- ---------------------------- DROP TABLE IF EXISTS `backup-codes`; CREATE TABLE `backup-codes` ( `code` int(6) NOT NULL, `userId` int(11) NOT NULL, `used` int(1) NOT NULL DEFAULT '0', `createdAt` datetime NOT NULL, `updatedAt` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`code`), KEY `id` (`userId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -- ---------------------------- -- Table structure for emails -- ---------------------------- DROP TABLE IF EXISTS `emails`; CREATE TABLE `emails` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL, `userId` int(11) NOT NULL, `isVerified` int(1) NOT NULL DEFAULT '0', `createdAt` datetime NOT NULL, `updatedAt` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `userId` (`userId`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -- ---------------------------- -- Table structure for events -- ---------------------------- DROP TABLE IF EXISTS `events`; CREATE TABLE `events` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) DEFAULT NULL, `organizationId` int(11) DEFAULT NULL, `type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, `data` text, `ipAddress` varchar(255) DEFAULT NULL, `userAgent` text, `createdAt` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=148 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -- ---------------------------- -- Table structure for memberships -- ---------------------------- DROP TABLE IF EXISTS `memberships`; CREATE TABLE `memberships` ( `id` int(11) NOT NULL AUTO_INCREMENT, `organizationId` int(11) NOT NULL, `userId` int(11) NOT NULL, `role` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'member', `createdAt` datetime NOT NULL, `updatedAt` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `org` (`organizationId`), KEY `user` (`userId`) ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -- ---------------------------- -- Table structure for notifications -- ---------------------------- DROP TABLE IF EXISTS `notifications`; CREATE TABLE `notifications` ( `id` int(12) NOT NULL AUTO_INCREMENT, `userId` int(12) NOT NULL, `category` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, `text` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, `link` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL, `read` int(1) NOT NULL DEFAULT '0', `createdAt` datetime NOT NULL, `updatedAt` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- ---------------------------- -- Table structure for organizations -- ---------------------------- DROP TABLE IF EXISTS `organizations`; CREATE TABLE `organizations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `username` varchar(255) NOT NULL, `invitationDomain` varchar(255) DEFAULT NULL, `stripeCustomerId` varchar(255) DEFAULT NULL, `ipRestrictions` text, `forceTwoFactor` int(1) NOT NULL DEFAULT '0', `createdAt` datetime NOT NULL, `updatedAt` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; -- ---------------------------- -- Table structure for users -- ---------------------------- DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(12) NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, `username` varchar(255) NOT NULL, `nickname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, `primaryEmail` int(12) DEFAULT NULL, `password` varchar(255) DEFAULT NULL, `twoFactorEnabled` int(1) NOT NULL DEFAULT '0', `twoFactorSecret` varchar(255) DEFAULT NULL, `countryCode` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT 'us', `timezone` varchar(255) NOT NULL DEFAULT 'Europe/Amsterdam', `notificationEmails` int(1) NOT NULL DEFAULT '1', `preferredLanguage` varchar(5) NOT NULL DEFAULT 'en-us', `prefersReducedMotion` int(1) NOT NULL DEFAULT '0', `prefersColorSchemeDark` int(1) NOT NULL DEFAULT '0', `role` int(1) NOT NULL DEFAULT '1', `gender` varchar(1) NOT NULL DEFAULT 'x', `profilePicture` varchar(255) NOT NULL, `createdAt` datetime NOT NULL, `updatedAt` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; SET FOREIGN_KEY_CHECKS = 1;
<reponame>nkelliny1/covid-response<gh_stars>0 --DROPS THE exchange IF IT EXISTS CURRENTLY-- DROP DATABASE IF EXISTS exchange; --CREATES THE 'exchange' DATABASE -- CREATE DATABASE exchange;
-- Input to CILamp API DECLARE @Color VARCHAR(10) = '#0000FF' -- RRGGBB DECLARE @MyId VARCHAR(400) = 'my-system-id' -- system id 1-80 long; letters, digits, underscore and minus sign allowed -- Temporary variables DECLARE @Object AS INT DECLARE @ResponseText AS VARCHAR(8000) DECLARE @Status INT DECLARE @Url VARCHAR(4000) DECLARE @Body AS VARCHAR(8000) = 'color=' + @Color SELECT @Url = 'https://api.cilamp.se/v1/' + @MyId EXEC Sp_oacreate 'MSXML2.ServerXMLHTTP', @Object OUT EXEC Sp_oamethod @Object, 'open', NULL, 'post', @Url, 'false' EXEC Sp_oamethod @Object, 'setRequestHeader', NULL, 'Content-Type', 'application/x-www-form-urlencoded' EXEC Sp_oamethod @Object, 'send', NULL, @body EXEC Sp_oagetproperty @Object, 'status', @Status OUT EXEC Sp_oamethod @Object, 'responseText', @ResponseText output -- Return of routine is full URL, HTTP status code and content of response SELECT @Status SELECT @ResponseText -- Clean up EXEC Sp_oadestroy @Object
alter table "public"."comment" alter column "id" set default gen_random_uuid(); alter table "public"."comment" alter column "id" drop not null; alter table "public"."comment" add column "id" uuid;
CREATE OR REPLACE FUNCTION ts.updatechroncontrolagetype(_chroncontrolid integer, _agetypeid integer) RETURNS void LANGUAGE sql AS $function$ UPDATE ndb.chroncontrols SET agetypeid = _agetypeid WHERE chroncontrolid = _chroncontrolid $function$
<reponame>jlu-ilr-hydro/odmf -- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = public, pg_catalog; SET default_tablespace = ''; SET default_with_oids = false; -- -- Name: installation; Type: TABLE; Schema: public; Owner: schwingbach-user; Tablespace: -- CREATE TABLE installation ( datasource_id integer NOT NULL, site_id integer NOT NULL, installation_id integer NOT NULL, installdate timestamp without time zone, removedate timestamp without time zone, comment character varying ); ALTER TABLE public.installation OWNER TO "schwingbach-user"; -- -- Name: TABLE installation; Type: COMMENT; Schema: public; Owner: schwingbach-user -- COMMENT ON TABLE installation IS 'The installation of an instrument (datasource) at a site. Has a set up and remove time'; -- -- Name: installation_installation_id_seq; Type: SEQUENCE; Schema: public; Owner: schwingbach-user -- CREATE SEQUENCE installation_installation_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.installation_installation_id_seq OWNER TO "schwingbach-user"; -- -- Name: installation_installation_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: schwingbach-user -- ALTER SEQUENCE installation_installation_id_seq OWNED BY installation.installation_id; -- -- Name: installation_id; Type: DEFAULT; Schema: public; Owner: schwingbach-user -- ALTER TABLE ONLY installation ALTER COLUMN installation_id SET DEFAULT nextval('installation_installation_id_seq'::regclass); -- -- Name: installation_pkey; Type: CONSTRAINT; Schema: public; Owner: schwingbach-user; Tablespace: -- ALTER TABLE ONLY installation ADD CONSTRAINT installation_pkey PRIMARY KEY (datasource_id, site_id, installation_id); -- -- Name: installation_datasource_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: schwingbach-user -- ALTER TABLE ONLY installation ADD CONSTRAINT installation_datasource_id_fkey FOREIGN KEY (datasource_id) REFERENCES datasource(id); -- -- Name: installation_site_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: schwingbach-user -- ALTER TABLE ONLY installation ADD CONSTRAINT installation_site_id_fkey FOREIGN KEY (site_id) REFERENCES site(id); -- -- PostgreSQL database dump complete --
<reponame>Shuttl-Tech/antlr_psql -- file:publication.sql ln:131 expect:true ALTER PUBLICATION testpub_foo RENAME TO testpub_default
use payroll execute p_add_time_entry @employee_id=64, @entry_date='2019-04-19 00:00:00', @hours_worked=6 execute p_add_time_entry @employee_id=32, @entry_date='2019-04-19 00:00:00', @hours_worked=3 execute p_add_time_entry @employee_id=37, @entry_date='2019-04-19 00:00:00', @hours_worked=3 execute p_add_time_entry @employee_id=63, @entry_date='2019-04-19 00:00:00', @hours_worked=4 execute p_add_time_entry @employee_id=22, @entry_date='2019-04-19 00:00:00', @hours_worked=5 execute p_add_time_entry @employee_id=62, @entry_date='2019-04-19 00:00:00', @hours_worked=5 execute p_add_time_entry @employee_id=31, @entry_date='2019-04-19 00:00:00', @hours_worked=3 execute p_add_time_entry @employee_id=47, @entry_date='2019-04-19 00:00:00', @hours_worked=6 execute p_add_time_entry @employee_id=26, @entry_date='2019-04-19 00:00:00', @hours_worked=4 execute p_add_time_entry @employee_id=43, @entry_date='2019-04-19 00:00:00', @hours_worked=6 execute p_add_time_entry @employee_id=21, @entry_date='2019-04-19 00:00:00', @hours_worked=5 execute p_add_time_entry @employee_id=50, @entry_date='2019-04-19 00:00:00', @hours_worked=6 execute p_add_time_entry @employee_id=35, @entry_date='2019-04-19 00:00:00', @hours_worked=7 execute p_add_time_entry @employee_id=39, @entry_date='2019-04-19 00:00:00', @hours_worked=4 execute p_add_time_entry @employee_id=48, @entry_date='2019-04-19 00:00:00', @hours_worked=5 execute p_add_time_entry @employee_id=18, @entry_date='2019-04-19 00:00:00', @hours_worked=4 execute p_add_time_entry @employee_id=59, @entry_date='2019-04-19 00:00:00', @hours_worked=6 execute p_add_time_entry @employee_id=33, @entry_date='2019-04-19 00:00:00', @hours_worked=6 execute p_add_time_entry @employee_id=40, @entry_date='2019-04-19 00:00:00', @hours_worked=4 execute p_add_time_entry @employee_id=11, @entry_date='2019-04-19 00:00:00', @hours_worked=5 execute p_add_time_entry @employee_id=51, @entry_date='2019-04-19 00:00:00', @hours_worked=4 execute p_add_time_entry @employee_id=12, @entry_date='2019-04-19 00:00:00', @hours_worked=4 execute p_add_time_entry @employee_id=19, @entry_date='2019-04-19 00:00:00', @hours_worked=4 execute p_add_time_entry @employee_id=16, @entry_date='2019-04-19 00:00:00', @hours_worked=5 execute p_add_time_entry @employee_id=17, @entry_date='2019-04-19 00:00:00', @hours_worked=3 execute p_add_time_entry @employee_id=34, @entry_date='2019-04-19 00:00:00', @hours_worked=4
ALTER TABLE db_version CHANGE COLUMN required_12113_01_mangos_spell_template required_12148_01_mangos_areatrigger_teleport bit; ALTER TABLE areatrigger_teleport DROP COLUMN required_failed_text;
<filename>escreening/src/test/sql/11_veteran_assessments.sql /* Add an assessment with each state value */ INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (1, 1, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (2, 2, 5, 8, 1, 10, 50, 2, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (3, 3, 5, 9, 1, 10, 50, 3, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (4, 1, 5, 7, 0, 150, 100, 4, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (5, 2, 5, 8, 0, 300, 100, 5, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (6, 3, 5, 9, 0, 30, 100, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (7, 1, 5, 7, 0, 40, 100, 2, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (8, 2, 5, 8, 0, 50, 100, 3, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id, signed_by_user_id) VALUES (9, 3, 5, 9, 0, 60, 100, 4, 1, 1); /* These are associated with a clinician who is not associated with the same clinics at above */ INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (10, 4, 5, 1, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (11, 5, 5, 2, 1, 10, 50, 2, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (12, 6, 5, 3, 1, 300, 100, 4, 1); /* Minimal vets used */ INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (13, 14, 6, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (14, 15, 5, 1, 0, 0, 0, 1, 1); /* Add Surveys to Assessments */ INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (1, 1); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (1, 2); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (1, 3); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (2, 1); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (2, 2); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (2, 3); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (3, 1); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (3, 2); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (13, 1); /* bulk assessment create for Veterans */ INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (15, 15, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id, battery_id, note_title_id) VALUES (16, 16, 5, 17, 0, 0, 0, 1, 1, 5, 8); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id, battery_id, note_title_id) VALUES (17, 17, 5, 17, 0, 0, 0, 1, 1, 5, 8); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id, battery_id, note_title_id) VALUES (18, 18, 5, 17, 0, 0, 100, 2, 1, 5, 8); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (19, 19, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (20, 20, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (21, 21, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (22, 22, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (23, 23, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (24, 24, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (25, 25, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (26, 26, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (27, 27, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (28, 28, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (29, 29, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (30, 30, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (31, 31, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (32, 32, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (33, 33, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (34, 34, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (35, 35, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (36, 36, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (37, 37, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (38, 38, 5, 7, 0, 0, 0, 2, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (39, 39, 5, 7, 0, 0, 0, 2, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (40, 40, 5, 7, 0, 0, 0, 2, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (41, 41, 5, 7, 0, 0, 0, 2, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (42, 42, 5, 7, 0, 0, 0, 2, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (43, 43, 5, 7, 0, 0, 0, 2, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (44, 44, 5, 7, 0, 0, 0, 2, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (45, 45, 5, 7, 0, 0, 0, 2, 1); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (46, 46, 5, 7, 0, 0, 0, 2, 2); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (47, 47, 5, 7, 0, 0, 0, 2, 2); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (48, 48, 5, 7, 0, 0, 0, 2, 1); INSERT INTO `veteran_assessment` (`veteran_assessment_id`,`veteran_id`,`clinician_id`,`clinic_id`,`program_id`,`assessment_status_id`,`note_title_id`,`battery_id`,`access_mode`,`duration`,`percent_complete`,`created_by_user_id`,`signed_by_user_id`,`date_completed`,`date_updated`,`date_created`,`date_archived`) VALUES (56,16,5,17,4,3,8,5,NULL,0,100,4,NULL,'2015-05-23 12:36:48','2015-05-23 12:36:48','2015-05-23 12:34:22',NULL); INSERT INTO `veteran_assessment` (`veteran_assessment_id`,`veteran_id`,`clinician_id`,`clinic_id`,`program_id`,`assessment_status_id`,`note_title_id`,`battery_id`,`access_mode`,`duration`,`percent_complete`,`created_by_user_id`,`signed_by_user_id`,`date_completed`,`date_updated`,`date_created`,`date_archived`) VALUES (57,16,5,18,4,3,7,5,NULL,0,100,4,NULL,'2015-08-23 12:51:17','2015-08-23 12:51:17','2015-08-23 12:38:59',NULL); /* insert veteran assessment audit log example data */ INSERT INTO veteran_assessment_audit_log (veteran_assessment_audit_log_id, veteran_assessment_id, person_id, person_last_name, person_type_id, assessment_status_id, veteran_assessment_event_id) VALUES (1, 1, 100, 'Clinician', 1, 1, 1); INSERT INTO veteran_assessment_audit_log (veteran_assessment_audit_log_id, veteran_assessment_id, person_id, person_last_name, person_type_id, assessment_status_id, veteran_assessment_event_id) VALUES (2, 1, 100, 'Clinician', 1, 1, 2); INSERT INTO veteran_assessment_audit_log (veteran_assessment_audit_log_id, veteran_assessment_id, person_id, person_last_name, person_first_name, person_type_id, assessment_status_id, veteran_assessment_event_id) VALUES (3, 1, 200, 'One', 'Veteran', 2, 2, 3); INSERT INTO veteran_assessment_audit_log (veteran_assessment_audit_log_id, veteran_assessment_id, person_id, person_last_name, person_first_name, person_type_id, assessment_status_id, veteran_assessment_event_id) VALUES (4, 1, 200, 'One', 'Veteran', 2, 2, 3); INSERT INTO veteran_assessment_audit_log (veteran_assessment_audit_log_id, veteran_assessment_id, person_id, person_last_name, person_first_name, person_type_id, assessment_status_id, veteran_assessment_event_id) VALUES (5, 1, 200, 'One', 'Veteran', 2, 2, 3); INSERT INTO veteran_assessment_audit_log (veteran_assessment_audit_log_id, veteran_assessment_id, person_id, person_last_name, person_first_name, person_type_id, assessment_status_id, veteran_assessment_event_id) VALUES (6, 1, 200, 'One', 'Veteran', 2, 4,4); INSERT INTO veteran_assessment_audit_log (veteran_assessment_audit_log_id, veteran_assessment_id, person_id, person_last_name, person_type_id, assessment_status_id, veteran_assessment_event_id) VALUES (7, 1, 100, 'Clinician', 1, 5, 5); /*Simple setup for quick testing of OOO */ /* Add full OOO assessment for veteran 18 (set each one to 100% complete because the next file will fill it up with responses. */ INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (11,18,1,3,3,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (12,18,2,9,9,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (13,18,3,7,7,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (14,18,4,7,7,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (15,18,5,4,4,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (16,18,6,1,1,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (17,18,7,1,1,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (18,18,8,1,1,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (19,18,9,3,3,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (20,18,10,4,4,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (21,18,11,2,2,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (22,18,12,1,1,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (23,18,13,3,3,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (24,18,14,5,5,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (25,18,15,2,2,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (26,18,16,1,1,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (27,18,17,1,1,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (28,18,18,4,4,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (29,18,19,4,4,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (30,18,20,2,2,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (31,18,21,1,1,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (32,18,22,2,2,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (33,18,23,8,8,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (34,18,24,1,1,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (35,18,25,1,1,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (36,18,26,3,3,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (37,18,27,1,1,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (38,18,28,1,1,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (39,18,29,1,1,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (40,18,30,2,2,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (41,18,31,5,5,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (42,18,32,2,2,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (43,18,33,2,2,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (44,18,34,1,1,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (45,18,35,1,1,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (46,18,36,5,5,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (47,18,37,1,1,NULL,'2014-08-06 14:09:18'); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_survey_id`,`veteran_assessment_id`,`survey_id`,`total_question_count`,`total_response_count`,`mha_result`,`date_created`) VALUES (48,18,38,1,1,NULL,'2014-08-06 14:09:18'); /* Add a short OOO assessment for veteran 16 */ INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (16, 1); /* Add full OOO assessment for veteran 17 which will have not responses set for it */ INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 1); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 2); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 3); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 4); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 5); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 6); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 7); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 8); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 9); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 10); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 11); -- table type question INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 12); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 13); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 14); -- select one matrix INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 15); -- select multi matrix INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 16); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 17); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 18); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 19); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 20); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 21); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 22); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 23); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 24); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 25); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 26); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 27); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 28); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 29); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 30); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 31); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 32); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 33); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 34); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 35); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 36); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 37); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (17, 38); /* test data for clinical note template */ INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (49, 49, 5, 7, 0, 0, 0, 2, 4); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 1); /* INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 2); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 3); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 3); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 5); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 6); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 7); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 8); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 9); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 10); */ INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 11); -- table type question /* INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 12); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 13); */ INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 14); -- select one matrix INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 15); -- select multi matrix /* INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 16); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 17); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 18); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 19); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 20); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 21); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 22); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 23); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 24); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 25); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 26); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 27); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 28); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 29); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 30); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 31); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 32); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 33); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 34); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 35); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 36); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 37); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (49, 38); */ INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id,clinician_id,clinic_id,access_mode,duration,percent_complete,assessment_status_id, created_by_user_id) VALUES (50, 49, 5, 7, 0, 0, 0, 2, 4); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (50, 1); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (50, 11); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id, clinician_id, clinic_id, access_mode, duration, percent_complete, assessment_status_id, created_by_user_id) VALUES (51, 10, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (51, 1); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (51, 2); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (51, 3); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id, clinician_id, clinic_id, access_mode, duration, percent_complete, assessment_status_id, created_by_user_id) VALUES (52, 11, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (52, 1); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (52, 2); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (52, 3); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id, clinician_id, clinic_id, access_mode, duration, percent_complete, assessment_status_id, created_by_user_id) VALUES (53, 12, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (53, 1); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (53, 2); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (53, 3); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id, clinician_id, clinic_id, access_mode, duration, percent_complete, assessment_status_id, created_by_user_id) VALUES (54, 13, 5, 7, 0, 0, 0, 1, 1); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (54, 1); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (54, 2); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (54, 3); INSERT INTO veteran_assessment (veteran_assessment_id, veteran_id, clinician_id, clinic_id, access_mode, duration, percent_complete, assessment_status_id, created_by_user_id) VALUES (55, 44, 5, 7, 0, 0, 0, 3, 1); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (55, 1); INSERT INTO veteran_assessment_survey (veteran_assessment_id, survey_id) VALUES (55, 32); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_id`,`survey_id`) VALUES (16, 30); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_id`,`survey_id`) VALUES (56, 30); INSERT INTO `veteran_assessment_survey` (`veteran_assessment_id`,`survey_id`) VALUES (57, 30); -- Update the pgoram_id field to be the clinic's UPDATE veteran_assessment va INNER JOIN clinic_program cp ON va.clinic_id = cp.clinic_id SET va.program_id = cp.program_id WHERE va.program_id IS NULL; -- Update the note_title_id field (we might have to fix this if some note titles don't make sense for an assessment) UPDATE veteran_assessment va SET va.note_title_id = 3 WHERE va.note_title_id IS NULL; INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (1, 1); INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (1, 2); INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (1, 3); INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (1, 4); INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (1, 5); INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (1, 6); INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (55, 1); INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (55, 2); -- data for alerts graph -- veteran_assessment_dashboard_alert should have pointer to veteran_assessment_id which is in Incomplete State (assessment_status_id=2) INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (38, 1); INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (39, 2); INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (40, 3); INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (41, 4); INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (42, 5); INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (43, 6); INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (46, 1); INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (47, 2); INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (48, 3); INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (2, 4); INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (7, 5); INSERT INTO veteran_assessment_dashboard_alert (veteran_assessment_id, dashboard_alert_id) VALUES (11, 6);
select int64_4 from nulls where int64_4 < -46000000000 -47000000000
<gh_stars>10-100 -- index on study.external_reference ALTER TABLE study add index external_reference_idx(external_reference); INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'patch', 'patch_85_86_c.sql|add index on study.external_reference');
<filename>modules/driver-jdbc/src/test/resources/executor_test_files/jdbc/sql_simple_insert.sql CREATE TABLE IF NOT EXISTS crystalDevs ( firstName VARCHAR(12) NOT NULL ); INSERT INTO crystalDevs VALUES ('Elise'), ('Tom');
<filename>sql/_08_javasp/cases/411-11.sql autocommit off; CREATE Procedure ptestint1(i inout int) as language java name 'SpTest5.ptestint1(int) '; select '10' into x from db_root; call ptestint1(x); call ptestint1('10'); call ptestint1('xx'); call ptestint1(null); $varchar,$10; call ptestint1(?) ; drop procedure ptestint1; CREATE Procedure ptestint2(i inout int) as language java name 'SpTest5.ptestint2(int[]) '; select '10' into x from db_root; call ptestint2(x); select x from db_root; call ptestint2('10'); call ptestint2('xx'); call ptestint2(null); $varchar,$10; call ptestint2(?) ; drop procedure ptestint2; --&&&&&&&&&&���� ���� �?7�? *************** CREATE Procedure ptestint4(i in date) as language java name 'SpTest5.ptestint4(int[]) '; select 1 into x from db_root; call ptestint4(x); select x from db_root; drop procedure ptestint4; CREATE Procedure ptestdate1(i date) as language java name 'SpTest5.ptestdate1(java.sql.Date) '; select date'5/5/2008' into x from db_root; call ptestdate1(x); select x from db_root; drop procedure ptestdate1; CREATE Procedure ptestdate1(i in date) as language java name 'SpTest5.ptestdate1(java.sql.Date) '; select date'5/5/2008' into x from db_root; call ptestdate1(x); select x from db_root; drop procedure ptestdate1; CREATE Procedure ptestdate1(i out date) as language java name 'SpTest5.ptestdate1(java.sql.Date) '; select date'5/5/2008' into x from db_root; call ptestdate1(x); call ptestdate1(date'5/5/2008'); select x from db_root; drop procedure ptestdate1; CREATE Procedure ptestdate1(i inout date) as language java name 'SpTest5.ptestdate1(java.sql.Date) '; select date'5/5/2008' into x from db_root; call ptestdate1(x); select x from db_root; drop procedure ptestdate1; CREATE Procedure ptestdate1(i date) as language java name 'SpTest5.ptestdate1(java.util.Date) '; select date'5/5/2008' into x from db_root; call ptestdate1(x); select x from db_root; drop procedure ptestdate1; CREATE Procedure ptestdate1(i in date) as language java name 'SpTest5.ptestdate1(java.util.Date) '; select date'5/5/2008' into x from db_root; call ptestdate1(x); select x from db_root; drop procedure ptestdate1; CREATE Procedure ptestdate1(i out date) as language java name 'SpTest5.ptestdate1(java.util.Date) '; select date'5/5/2008' into x from db_root; call ptestdate1(x); select x from db_root; drop procedure ptestdate1; CREATE Procedure ptestdate1(i inout date) as language java name 'SpTest5.ptestdate1(java.util.Date) '; select date'5/5/2008' into x from db_root; call ptestdate1(x); select x from db_root; drop procedure ptestdate1; CREATE Procedure ptestdate2(i date) as language java name 'SpTest5.ptestdate2(java.sql.Date[]) '; select date'5/5/2008' into x from db_root; call ptestdate2(x); select x from db_root; drop procedure ptestdate2; CREATE Procedure ptestdate2(i in date) as language java name 'SpTest5.ptestdate2(java.sql.Date[]) '; select date'5/5/2008' into x from db_root; call ptestdate2(x); select x from db_root; drop procedure ptestdate2; CREATE Procedure ptestdate2(i out date) as language java name 'SpTest5.ptestdate2(java.sql.Date[]) '; select date'5/5/2008' into x from db_root; call ptestdate2(x); select x from db_root; drop procedure ptestdate2; CREATE Procedure ptestdate2(i inout date) as language java name 'SpTest5.ptestdate2(java.sql.Date[]) '; select date'5/5/2008' into x from db_root; call ptestdate2(x); select x from db_root; drop procedure ptestdate2; CREATE Procedure ptesttime2(i inout time) as language java name 'SpTest5.ptesttime2(java.sql.Time[]) '; select time'1:1:1 am' into x from db_root; call ptesttime2(x); select x from db_root; drop procedure ptesttime2; CREATE Procedure ptesttime2(i in time) as language java name 'SpTest5.ptesttime2(java.sql.Time[]) '; select time'1:1:1 am' into x from db_root; call ptesttime2(x); select x from db_root; drop procedure ptesttime2; CREATE Procedure ptesttime2(i out time) as language java name 'SpTest5.ptesttime2(java.sql.Time[]) '; select time'1:1:1 am' into x from db_root; call ptesttime2(x); select x from db_root; drop procedure ptesttime2; CREATE Procedure ptesttime2(i time) as language java name 'SpTest5.ptesttime2(java.sql.Time[]) '; select time'1:1:1 am' into x from db_root; call ptesttime2(x); select x from db_root; drop procedure ptesttime2; CREATE Procedure ptesttime3(i inout time) as language java name 'SpTest5.ptesttime3(java.sql.Time[]) '; select time'1:1:1 am' into x from db_root; call ptesttime3(x); select x from db_root; drop procedure ptesttime3; CREATE Procedure ptesttime3( i in time) as language java name 'SpTest5.ptesttime3(java.sql.Time[]) '; select time'1:1:1 am' into x from db_root; call ptesttime3(x); select x from db_root; drop procedure ptesttime3; CREATE Procedure ptesttime3(i out time) as language java name 'SpTest5.ptesttime3(java.sql.Time[]) '; select time'1:1:1 am' into x from db_root; call ptesttime3(x); select x from db_root; drop procedure ptesttime3; CREATE Procedure ptesttime3(i time) as language java name 'SpTest5.ptesttime3(java.sql.Time[]) '; select time'1:1:1 am' into x from db_root; call ptesttime3(x); select x from db_root; CREATE Procedure ptesttimestamp2(i inout timestamp) as language java name 'SpTest5.ptesttimestamp2(java.sql.Timestamp[]) '; select timestamp'5/5/2008 1:1:1 am' into x from db_root; call ptesttimestamp2(x); select x from db_root; drop procedure ptesttimestamp2; CREATE Procedure ptesttimestamp2( i in timestamp) as language java name 'SpTest5.ptesttimestamp2(java.sql.Timestamp[]) '; select timestamp'5/5/2008 1:1:1 am' into x from db_root; call ptesttimestamp2(x); select x from db_root; drop procedure ptesttimestamp2; CREATE Procedure ptesttimestamp2(i out timestamp) as language java name 'SpTest5.ptesttimestamp2(java.sql.Timestamp[]) '; select timestamp'5/5/2008 1:1:1 am' into x from db_root; call ptesttimestamp2(x); select x from db_root; drop procedure ptesttimestamp2; CREATE Procedure ptesttimestamp2(i timestamp) as language java name 'SpTest5.ptesttimestamp2(java.sql.Timestamp[]) '; select timestamp'5/5/2008 1:1:1 am' into x from db_root; call ptesttimestamp2(x); select x from db_root; drop procedure ptesttimestamp2; rollback; autocommit on;
<reponame>DevotedMC/CivSpy -- index create index ssw_serv on spy_stats(server, stat_key); -- datapoints select min(stat_time), max(stat_time), count(*) from spy_stats where server is null or server = "devoted"; -- kinds of datapoints select count(distinct stat_key, string_value), count(distinct stat_key) from spy_stats where server is null or server = "devoted"; -- uptime select timestampdiff(MINUTE,min(stat_time), max(stat_time)), count(*) from spy_stats where stat_key = "server.tick.average" and server = "devoted"; -- playercounts select max(numeric_value), avg(numeric_value) from spy_stats where stat_key = "server.playercount" and server="devoted"; -- session profiles select max(numeric_value) / 1000 / 60 / 60, avg(numeric_value) / 1000 / 60 from spy_stats where stat_key = "bungee.session"; -- new & rejoin numbers SELECT count(*) as joins, sum(case when join_days > 1 then 1 else 0 end) as recapture_within_next_week, sum(case when join_days / possible_days_rejoin > 6 / 7 then 1 else 0 end) as dedicated_through_next_week FROM ( SELECT date(min(stat_time)) as first, uuid, count(distinct date(stat_time) ) as join_days, (datediff( '2017-06-23' , date(min(stat_time))) + 1) as possible_days_rejoin FROM spy_stats_all_weeks_login WHERE stat_time < '2017-06-24 00:00:00' GROUP BY uuid HAVING min(stat_time) >= '2017-06-10 00:00:00' AND min(stat_time) < '2017-06-17 00:00:00' ) b; -- all time rejoin & dedicated SELECT count(*) as all_joins, sum(case when join_days > 1 then 1 else 0 end) as recaptured, sum(case when join_days / possible_days_rejoin > 6 / 7 then 1 else 0 end) as dedicated FROM ( SELECT date(min(stat_time)) as first, uuid, count(distinct date(stat_time) ) as join_days, (datediff( '2017-06-23' , date(min(stat_time))) + 1) as possible_days_rejoin FROM spy_stats_all_weeks_login WHERE stat_time < '2017-06-24 00:00:00' GROUP BY uuid HAVING min(stat_time) < '2017-06-17 00:00:00' ) b; -- breakdown by join week, dedicated SELECT week, count(*) as all_joins, sum(case when join_days > 1 then 1 else 0 end) as recaptured, sum(case when join_days > 2 then 1 else 0 end) as recaptured_2, sum(case when join_days > 3 then 1 else 0 end) as recaptured_3, sum(case when join_days > 4 then 1 else 0 end) as recaptured_4, sum(case when join_days / possible_days_rejoin <= 1 / 7 AND join_days > 1 then 1 else 0 end) as bare_dedicated, sum(case when join_days / possible_days_rejoin > 1 / 7 AND join_days > 1 then 1 else 0 end) as 1_7_dedicated, sum(case when join_days / possible_days_rejoin > 2 / 7 then 1 else 0 end) as 2_7_dedicated, sum(case when join_days / possible_days_rejoin > 3 / 7 then 1 else 0 end) as half_dedicated, sum(case when join_days / possible_days_rejoin > 4 / 7 then 1 else 0 end) as 4_7_dedicated, sum(case when join_days / possible_days_rejoin > 5 / 7 then 1 else 0 end) as 5_7_dedicated, sum(case when join_days / possible_days_rejoin > 6 / 7 then 1 else 0 end) as dedicated, sum(case when join_weeks > (23 - week) / 2 then 1 else 0 end) as half_weeks, sum(case when join_weeks > (23 - week - 1) then 1 else 0 end) as all_weeks FROM ( SELECT floor(datediff(date(min(stat_time)), '2016-09-17')/7) as week, date(min(stat_time)) as first, uuid, count(distinct date(stat_time) ) as join_days, count(distinct floor(datediff(date(stat_time), '2016-09-17')/7) ) as join_weeks, (datediff( '2017-06-23' , date(min(stat_time))) + 1) as possible_days_rejoin FROM spy_stats_all_weeks_login WHERE stat_time < '2017-06-24 00:00:00' GROUP BY uuid HAVING min(stat_time) < '2017-06-17 00:00:00' ) b GROUP BY week;
<gh_stars>0 -- @testpoint:开启事务移动游标位置,参数为prior,默认从当前关联位置开始,将游标移动到上一行; --前置条件 drop table if exists cur_test_157; create table cur_test_157(c_id int,c_num int,c_name varchar(10),c_city varchar(10),c_add varchar(20)); insert into cur_test_157 values(1,18,'Allen','Beijing','AAAAABAAAAA'),(2,368,'Bob','Shanghai','AAAAACAAAAA'), (3,59,'Cathy','Shenzhen','AAAAADAAAAA'),(4,96,'David','Suzhou','AAAAAEAAAAA'), (5,17,'Edrwd','Fenghuang','AAAAAFAAAAA'),(6,253,'Fendi','Changsha','AAAAAGAAAAA'); --初始位置,移动游标到上一行(移动0行),提取下一行数据 start transaction; cursor cursor157_1 for select * from cur_test_157 order by 1; move prior from cursor157_1; fetch from cursor157_1; close cursor157_1; end; --移动游标到任意位置,再移动游标到上一行,提取上一行数据 start transaction; cursor cursor157_2 for select * from cur_test_157 order by 1; move 3 from cursor157_2; move prior from cursor157_2; fetch from cursor157_2; close cursor157_2; end; drop table cur_test_157;
<reponame>joernb/api-backend CREATE DOMAIN uint8 AS smallint CHECK(VALUE >= 0 AND VALUE < 256); CREATE TABLE IF NOT EXISTS Memo ( id bigserial primary key, mtype uint8 not null, mlen uint8 not null, mdata bytea ); CREATE TABLE IF NOT EXISTS Report ( id bigserial primary key, rvk bytea not null, tck_bytes bytea not null, j_1 uint8 not null, j_2 uint8 not null, memo_id bigserial not null references Memo(id), timestamp timestamp default current_timestamp ); CREATE TABLE IF NOT EXISTS SignedReport ( id bigserial primary key, report_id bigserial not null references Report(id), sig bytea not null );
<gh_stars>1-10 /** * OAuth database table schema for MSSQL * * @author sumh <<EMAIL>> * @package Oauth * @copyright (c) 2011 OALite * @license ISC License (ISCL) * @link http://oalite.com */ /******************** Add Table: t_oauth_authorizes ************************/ /* Build Table Structure */ CREATE TABLE Server.t_oauth_authorizes ( user_id BIGINT NULL, client_id VARCHAR(127) NOT NULL, redirect_uri VARCHAR(511) NOT NULL, confirm_type TINYINT DEFAULT 0 NOT NULL, client_level TINYINT DEFAULT 0 NOT NULL, client_desc TEXT NULL, expires_in INTEGER NULL, scope VARCHAR(511) NULL, created INTEGER NOT NULL, modified INTEGER NULL, remark TEXT NULL ) DEFAULT CHARSET=utf8; /* Table Items: Server.t_oauth_authorizes */ ALTER TABLE Server.t_oauth_authorizes ADD CONSTRAINT pkt_oauth_authorizes PRIMARY KEY (user_id); /* Set Comments */ EXEC sp_addextendedproperty 'MS_Description', 'Request confirm, 0: every time; 1: only once; 2: with expired period; 3: once and banned', 'table', 't_oauth_authorizes', 'column', 'confirm_type'; EXEC sp_addextendedproperty 'MS_Description', 'diferent client levels have different max request times', 'table', 't_oauth_authorizes', 'column', 'client_level'; EXEC sp_addextendedproperty 'MS_Description', 'date time', 'table', 't_oauth_authorizes', 'column', 'expires_in'; EXEC sp_addextendedproperty 'MS_Description', 'Store audit information from resource owner for the resource requester', 'table', t_oauth_authorizes, null, null; /******************** Add Table: Server.t_oauth_clients ************************/ /* Build Table Structure */ CREATE TABLE Server.t_oauth_clients ( server_id BIGINT IDENTITY (1, 1) NOT NULL, client_id VARCHAR(127) NOT NULL, client_secret VARCHAR(127) NOT NULL, redirect_uri VARCHAR(511) NOT NULL, scope VARCHAR(255) NULL, secret_type ENUM('plaintext','md5','rsa-sha1','hmac-sha1') DEFAULT 'plaintext' NOT NULL, ssh_key VARCHAR(511) NULL, app_name VARCHAR(127) NOT NULL, app_desc TEXT NULL, app_profile ENUM('webserver','native','useragent','autonomous') DEFAULT 'webserver' NOT NULL, app_purpose VARCHAR(511) NULL, user_id BIGINT NULL, user_level TINYINT DEFAULT 0 NOT NULL, enabled TINYINT DEFAULT 1 NOT NULL, created INTEGER NOT NULL, modified INTEGER NULL ) DEFAULT CHARSET=utf8; /* Table Items: Server.t_oauth_clients */ ALTER TABLE Server.t_oauth_clients ADD CONSTRAINT pkt_oauth_clients PRIMARY KEY (server_id); /* Set Comments */ EXEC sp_addextendedproperty 'MS_Description', 'AKA. API key', 'table', 't_oauth_clients', 'column', 'client_id'; EXEC sp_addextendedproperty 'MS_Description', 'AKA. API secret', 'table', 't_oauth_clients', 'column', 'client_secret'; EXEC sp_addextendedproperty 'MS_Description', 'AKA. Callback URI', 'table', 't_oauth_clients', 'column', 'redirect_uri'; EXEC sp_addextendedproperty 'MS_Description', 'May be create, read, update or delete. so on so for', 'table', 't_oauth_clients', 'column', 'scope'; EXEC sp_addextendedproperty 'MS_Description', 'Secret signature encrypt type. e.g', 'table', 't_oauth_clients', 'column', 'secret_type'; EXEC sp_addextendedproperty 'MS_Description', 'SSH public keys', 'table', 't_oauth_clients', 'column', 'ssh_key'; EXEC sp_addextendedproperty 'MS_Description', 'Application Name', 'table', 't_oauth_clients', 'column', 'app_name'; EXEC sp_addextendedproperty 'MS_Description', 'Application Description, When users authenticate via your app, this is what they''ll see.', 'table', 't_oauth_clients', 'column', 'app_desc'; EXEC sp_addextendedproperty 'MS_Description', 'Application Profile: Web Server Application, Native Application, Browser Application, Autonomous clients', 'table', 't_oauth_clients', 'column', 'app_profile'; EXEC sp_addextendedproperty 'MS_Description', 'Ref# from users table', 'table', 't_oauth_clients', 'column', 'user_id'; EXEC sp_addextendedproperty 'MS_Description', 'diferent client levels have different max request times', 'table', 't_oauth_clients', 'column', 'user_level'; EXEC sp_addextendedproperty 'MS_Description', '0: waiting for system administrator audit; 1: acceptable; 2: ban', 'table', 't_oauth_clients', 'column', 'enabled'; EXEC sp_addextendedproperty 'MS_Description', 'create datetime', 'table', 't_oauth_clients', 'column', 'created'; EXEC sp_addextendedproperty 'MS_Description', 'modified datetime', 'table', 't_oauth_clients', 'column', 'modified'; EXEC sp_addextendedproperty 'MS_Description', 'Used for verification of incoming requests. ', 'table', t_oauth_clients, null, null; /* Add Indexes for: t_oauth_clients */ CREATE UNIQUE NONCLUSTERED INDEX idx_t_oauth_clients_client_id ON Server.t_oauth_clients (client_id); /******************** Add Table: Server.t_oauth_logs ************************/ /* Build Table Structure */ CREATE TABLE Server.t_oauth_logs ( log_id BIGINT IDENTITY (1, 1) NOT NULL, client_id VARCHAR(127) NULL, token VARCHAR(63) NULL, user_id BIGINT NULL, received TEXT NOT NULL, sent TEXT NOT NULL, body TEXT NOT NULL, notes TEXT NOT NULL, [timestamp] TIMESTAMP NOT NULL, remote_ip BIGINT NOT NULL ) DEFAULT CHARSET=utf8; /* Table Items: Server.t_oauth_logs */ ALTER TABLE Server.t_oauth_logs ADD CONSTRAINT pkt_oauth_logs PRIMARY KEY (log_id); /* Set Comments */ EXEC sp_addextendedproperty 'MS_Description', 'Log table to hold all OAuth request when you enabled logging ', 'table', t_oauth_logs, null, null; /* Add Indexes for: t_oauth_logs */ CREATE NONCLUSTERED INDEX idx_t_oauth_logs_client_id_log_id ON Server.t_oauth_logs (client_id, log_id); /******************** Add Table: Server.t_oauth_tokens ************************/ /* Build Table Structure */ CREATE TABLE Server.t_oauth_tokens ( token_id BIGINT IDENTITY (1, 1) NOT NULL, client_id VARCHAR(127) NOT NULL, user_id BIGINT NOT NULL, code VARCHAR(127) NOT NULL, access_token VARCHAR(63) NULL, refresh_token VARCHAR(63) NULL, expire_code INTEGER DEFAULT 300 NOT NULL, expire_token INTEGER DEFAULT 0 NOT NULL, expire_refresh INTEGER DEFAULT 0 NOT NULL, [timestamp] INTEGER NOT NULL, token_type VARCHAR(127) NOT NULL, options TEXT NULL ) DEFAULT CHARSET=utf8; /* Table Items: Server.t_oauth_tokens */ ALTER TABLE Server.t_oauth_tokens ADD CONSTRAINT pkt_oauth_tokens PRIMARY KEY (token_id); /* Set Comments */ EXEC sp_addextendedproperty 'MS_Description', 'Ref# from users table', 'table', 't_oauth_tokens', 'column', 'user_id'; EXEC sp_addextendedproperty 'MS_Description', 'authorization code expires in this timestamp', 'table', 't_oauth_tokens', 'column', 'expire_code'; EXEC sp_addextendedproperty 'MS_Description', 'access token expires in this timestamp', 'table', 't_oauth_tokens', 'column', 'expire_token'; EXEC sp_addextendedproperty 'MS_Description', 'refresh token expires in this timestamp', 'table', 't_oauth_tokens', 'column', 'expire_refresh'; EXEC sp_addextendedproperty 'MS_Description', 'authorization code request timestamp', 'table', 't_oauth_tokens', 'column', 'timestamp'; EXEC sp_addextendedproperty 'MS_Description', 'bearer, mac, etc.', 'table', 't_oauth_tokens', 'column', 'token_type'; EXEC sp_addextendedproperty 'MS_Description', 'parameters for different token type extension in json format', 'table', 't_oauth_tokens', 'column', 'options'; EXEC sp_addextendedproperty 'MS_Description', 'Table used to verify signed requests sent to a server by the consumer.When the verification is succesful then the associated user id is returned. ', 'table', t_oauth_tokens, null, null; /* Add Indexes for: t_oauth_tokens */ CREATE NONCLUSTERED INDEX idx_t_oauth_tokens_access_token ON Server.t_oauth_tokens (access_token); CREATE NONCLUSTERED INDEX idx_t_oauth_tokens_client_id ON Server.t_oauth_tokens (client_id); CREATE NONCLUSTERED INDEX idx_t_oauth_tokens_code ON Server.t_oauth_tokens (code); CREATE NONCLUSTERED INDEX idx_t_oauth_tokens_refresh_token ON Server.t_oauth_tokens (refresh_token); /************ Add Foreign Keys to Database ***************/ /************ Foreign Key: fk_t_oauth_tokens_t_oauth_clients ***************/ ALTER TABLE Server.t_oauth_tokens ADD CONSTRAINT fk_t_oauth_tokens_t_oauth_clients FOREIGN KEY (client_id) REFERENCES Server.t_oauth_clients (client_id) ON UPDATE CASCADE ON DELETE CASCADE;
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 02, 2018 at 02:43 PM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `dbnaylin` -- -- -------------------------------------------------------- -- -- Table structure for table `foto` -- CREATE TABLE `foto` ( `id_foto` int(50) NOT NULL, `fk_user` int(11) NOT NULL, `photo` varchar(255) NOT NULL, `judul` varchar(50) NOT NULL, `deskripsi` varchar(300) NOT NULL, `id_kategori` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `foto` -- INSERT INTO `foto` (`id_foto`, `fk_user`, `photo`, `judul`, `deskripsi`, `id_kategori`) VALUES (2, 2, 'Croft8954_By_Pater_J_Hosey_Landscape_Photography.jpg', 'Croft8954', 'Landscape Photography By Pater J Hosey (Photographer)', 2), (5, 2, 'Karl_Loxley_1_By_Pater_J_Hosey_Performing1.jpg', 'Performing Karl Loxley', 'Stage By Pater J Hosey (Photographer)', 1), (6, 2, 'Kingfisher_feeding_By_martinlawrence.PNG', 'Kingfisher feeding', 'Wildlife Photography By <NAME>rence (Photographer)', 3), (7, 1, 'NikiGillis_By_Pater_J_Hosey_Performing.jpg', 'NikiGillis', 'Performing photography By <NAME>', 1), (8, 1, 'Croft8899_By_Pater_J_Hosey_Landscape_Photography.jpg', 'Croft8899', 'Landscape Photography By <NAME> (Photographer)', 2), (9, 1, 'Coyote_hunting_in_Yellowstone_NP_By_martinlawrence.PNG', 'Coyote hunting in Yellowstone NP', 'Wildlife Photography By <NAME> (Photographer)', 3), (10, 1, 'Catriona_Murray_3_By_Pater_J_Hosey_Performing.jpg', '<NAME>', 'Performing photography By <NAME>', 1), (11, 1, 'Culkien_BayBy_Pater_J_Hosey_Landscape_Photography.jpg', 'Culkien Bay', 'Landscape Photography By <NAME> (Photographer)', 2), (12, 1, 'Puffins_on_Farne_Islands_By_martinlawrence.PNG', 'Puffins on Farne Islands', 'Wildlife Photography By <NAME> (Photographer)', 3), (13, 1, 'TheRealMcCoy1_By_Pater_J_Hosey_Performing.jpg', 'TheRealMcCoy1', 'Theather By <NAME>', 1), (14, 1, 'Red_Fox_in_autumn_sunshine_By_martinlawrence.PNG', 'Red Fox in autumn sunshine', 'Wildlife Photography By Martin Lawrence (Photographer)', 3), (15, 1, 'Sunset_at_Lytham_Jetty,_Lancashire_By_martinlawrence.PNG', 'Sunset at Lytham Jetty, Lancashire', 'Landscape Photography By martinlawrence (Photographer)', 2); -- -------------------------------------------------------- -- -- Table structure for table `kategori` -- CREATE TABLE `kategori` ( `id_kategori` int(11) NOT NULL, `nama_kategori` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kategori` -- INSERT INTO `kategori` (`id_kategori`, `nama_kategori`) VALUES (1, 'Stage'), (2, 'Landscape'), (3, 'Wildlife'); -- -------------------------------------------------------- -- -- Table structure for table `tabelkomentar` -- CREATE TABLE `tabelkomentar` ( `id_komentar` int(50) NOT NULL, `id_user` int(25) NOT NULL, `id_foto` int(50) NOT NULL, `komentar` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `tabeltips` -- CREATE TABLE `tabeltips` ( `id_tips` int(20) NOT NULL, `tips` varchar(255) NOT NULL, `id_user` int(25) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id_user` int(25) NOT NULL, `username` varchar(55) NOT NULL, `password` varchar(40) NOT NULL, `level` varchar(10) NOT NULL, `nama` varchar(20) NOT NULL, `email` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `user` -- INSERT INTO `user` (`id_user`, `username`, `password`, `level`, `nama`, `email`) VALUES (1, 'admin1', '<PASSWORD>', 'admin', '<NAME>', '<EMAIL>'), (2, 'admin2', '<PASSWORD>', 'admin', '<NAME>.', '<EMAIL>'), (3, 'rose', '<PASSWORD>', 'user', '<PASSWORD>', '<EMAIL>'), (8, 'hasna', '<PASSWORD>', 'user', '<NAME>', '<EMAIL>'); -- -- Indexes for dumped tables -- -- -- Indexes for table `foto` -- ALTER TABLE `foto` ADD PRIMARY KEY (`id_foto`), ADD KEY `idx_fotouser` (`fk_user`), ADD KEY `id_kategori` (`id_kategori`); -- -- Indexes for table `kategori` -- ALTER TABLE `kategori` ADD PRIMARY KEY (`id_kategori`); -- -- Indexes for table `tabelkomentar` -- ALTER TABLE `tabelkomentar` ADD PRIMARY KEY (`id_komentar`), ADD KEY `idx_komentaruser` (`id_user`), ADD KEY `idx_komentarfoto` (`id_foto`); -- -- Indexes for table `tabeltips` -- ALTER TABLE `tabeltips` ADD PRIMARY KEY (`id_tips`), ADD KEY `idx_tipsuser` (`id_user`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id_user`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `foto` -- ALTER TABLE `foto` MODIFY `id_foto` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `kategori` -- ALTER TABLE `kategori` MODIFY `id_kategori` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `tabelkomentar` -- ALTER TABLE `tabelkomentar` MODIFY `id_komentar` int(50) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `tabeltips` -- ALTER TABLE `tabeltips` MODIFY `id_tips` int(20) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `id_user` int(25) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- Constraints for dumped tables -- -- -- Constraints for table `foto` -- ALTER TABLE `foto` ADD CONSTRAINT `foto_ibfk_1` FOREIGN KEY (`fk_user`) REFERENCES `user` (`id_user`), ADD CONSTRAINT `foto_ibfk_2` FOREIGN KEY (`id_kategori`) REFERENCES `kategori` (`id_kategori`); -- -- Constraints for table `tabelkomentar` -- ALTER TABLE `tabelkomentar` ADD CONSTRAINT `tabelkomentar_ibfk_1` FOREIGN KEY (`id_user`) REFERENCES `user` (`id_user`), ADD CONSTRAINT `tabelkomentar_ibfk_2` FOREIGN KEY (`id_foto`) REFERENCES `foto` (`id_foto`); -- -- Constraints for table `tabeltips` -- ALTER TABLE `tabeltips` ADD CONSTRAINT `tabeltips_ibfk_1` FOREIGN KEY (`id_user`) REFERENCES `user` (`id_user`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- ---------- MIGRONDI:UP:1622307637387 -------------- CREATE TABLE games ( id SERIAL PRIMARY KEY, name VARCHAR(50) NOT NULL, code VARCHAR(10) NOT NULL, password VARCHAR (20) NOT NULL, created TIMESTAMP NOT NULL, updated TIMESTAMP NOT NULL ); -- ---------- MIGRONDI:DOWN:1622307637387 -------------- DROP TABLE IF EXISTS "games";
<reponame>grishmathakkar/TestCure<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 27, 2016 at 11:05 AM -- Server version: 10.1.16-MariaDB -- PHP Version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `testcure` -- -- -------------------------------------------------------- -- -- Table structure for table `testd` -- CREATE TABLE `testd` ( `id` int(10) UNSIGNED NOT NULL, `tname` varchar(80) NOT NULL, `selMin` int(3) NOT NULL, `q1` varchar(100) NOT NULL, `op11` varchar(30) NOT NULL, `op12` varchar(30) NOT NULL, `op13` varchar(30) NOT NULL, `op14` varchar(30) NOT NULL, `op1` varchar(30) NOT NULL, `q2` varchar(100) NOT NULL, `op21` varchar(30) NOT NULL, `op22` varchar(30) NOT NULL, `op23` varchar(30) NOT NULL, `op24` varchar(30) NOT NULL, `op2` varchar(30) NOT NULL, `q3` varchar(100) NOT NULL, `op31` varchar(30) NOT NULL, `op32` varchar(30) NOT NULL, `op33` varchar(30) NOT NULL, `op34` varchar(30) NOT NULL, `op3` varchar(30) NOT NULL, `q4` varchar(100) NOT NULL, `op41` varchar(30) NOT NULL, `op42` varchar(30) NOT NULL, `op43` varchar(30) NOT NULL, `op44` varchar(30) NOT NULL, `op4` varchar(30) NOT NULL, `q5` varchar(100) NOT NULL, `op51` varchar(30) NOT NULL, `op52` varchar(30) NOT NULL, `op53` varchar(30) NOT NULL, `op54` varchar(30) NOT NULL, `op5` varchar(30) NOT NULL, `q6` varchar(100) NOT NULL, `op61` varchar(30) NOT NULL, `op62` varchar(30) NOT NULL, `op63` varchar(30) NOT NULL, `op64` varchar(30) NOT NULL, `q7` varchar(100) NOT NULL, `op71` varchar(30) NOT NULL, `op72` varchar(30) NOT NULL, `op73` varchar(30) NOT NULL, `op74` varchar(30) NOT NULL, `op7` varchar(30) NOT NULL, `q8` varchar(100) NOT NULL, `op81` varchar(30) NOT NULL, `op82` varchar(30) NOT NULL, `op83` varchar(30) NOT NULL, `op84` varchar(30) NOT NULL, `op8` varchar(30) NOT NULL, `q9` varchar(100) NOT NULL, `op91` varchar(30) NOT NULL, `op92` varchar(30) NOT NULL, `op93` varchar(30) NOT NULL, `op94` varchar(30) NOT NULL, `op9` varchar(30) NOT NULL, `q10` varchar(100) NOT NULL, `op101` varchar(30) NOT NULL, `op102` varchar(30) NOT NULL, `op103` varchar(30) NOT NULL, `op104` varchar(30) NOT NULL, `op10` varchar(30) NOT NULL, `fscore` varchar(3) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Indexes for dumped tables -- -- -- Indexes for table `testd` -- ALTER TABLE `testd` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `testd` -- ALTER TABLE `testd` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
SET @iLastHandler := (SELECT `id` FROM `sys_alerts_handlers` WHERE `name` = 'bx_spy_profiles_activity'); DELETE FROM `sys_alerts` WHERE `unit` = 'profile' AND `action` = 'delete' AND `handler_id` = @iLastHandler; UPDATE `sys_modules` SET `version` = '1.0.4' WHERE `uri` = 'spy' AND `version` = '1.0.3';
-- # This just a sample/test SQL update users set first_name="<NAME>" where id=1;
-- MySQL dump 10.13 Distrib 5.5.41, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: hbpds -- ------------------------------------------------------ -- Server version 5.5.41-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `hb_ads` -- DROP TABLE IF EXISTS `hb_ads`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hb_ads` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `order` int(11) NOT NULL, `enable` int(11) NOT NULL, `image_url` varchar(300) COLLATE utf8_unicode_ci NOT NULL, `target_url` varchar(300) COLLATE utf8_unicode_ci NOT NULL, `name` varchar(300) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `asa_id` int(10) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `hb_ads` -- LOCK TABLES `hb_ads` WRITE; /*!40000 ALTER TABLE `hb_ads` DISABLE KEYS */; /*!40000 ALTER TABLE `hb_ads` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `hb_art_atts` -- DROP TABLE IF EXISTS `hb_art_atts`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hb_art_atts` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `att_id` int(10) unsigned NOT NULL, `art_id` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `hb_art_atts_art_id_foreign` (`art_id`), CONSTRAINT `hb_art_atts_art_id_foreign` FOREIGN KEY (`art_id`) REFERENCES `hb_artworks` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `hb_art_atts` -- LOCK TABLES `hb_art_atts` WRITE; /*!40000 ALTER TABLE `hb_art_atts` DISABLE KEYS */; INSERT INTO `hb_art_atts` VALUES (9,30,5),(10,34,6); /*!40000 ALTER TABLE `hb_art_atts` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `hb_artworks` -- DROP TABLE IF EXISTS `hb_artworks`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hb_artworks` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `art_code` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `art_author` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `art_name` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `art_size` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `art_material` varchar(40) COLLATE utf8_unicode_ci NOT NULL, `art_age` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `art_price_hkd` double(20,2) DEFAULT '0.00', `art_price_rmb` double(20,2) DEFAULT '0.00', `author_sumarry` text COLLATE utf8_unicode_ci NOT NULL, `art_inscription` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `art_tizhi` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `art_mark` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `art_seal` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `art_collection_seal` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `art_publish` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `art_annotation` varchar(1000) COLLATE utf8_unicode_ci NOT NULL, `art_signature` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `art_phase` varchar(500) COLLATE utf8_unicode_ci NOT NULL, `art_reference` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `art_record` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `art_exhibition` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `art_source` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `art_lot` int(11) NOT NULL, `begin_price_hkd` double(20,2) DEFAULT '0.00', `end_price_hkd` double(20,2) DEFAULT '0.00', `begin_price_rmb` double(20,2) DEFAULT '0.00', `end_price_rmb` double(20,2) DEFAULT '0.00', `art_sumarry` text COLLATE utf8_unicode_ci NOT NULL, `art_dynasty` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `art_description` text COLLATE utf8_unicode_ci NOT NULL, `is_liupai` tinyint(4) NOT NULL, `lang` tinyint(4) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `asa_id` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `hb_artworks_asa_id_foreign` (`asa_id`), CONSTRAINT `hb_artworks_asa_id_foreign` FOREIGN KEY (`asa_id`) REFERENCES `hb_asas` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `hb_artworks` -- LOCK TABLES `hb_artworks` WRITE; /*!40000 ALTER TABLE `hb_artworks` DISABLE KEYS */; INSERT INTO `hb_artworks` VALUES (5,'','齊白石','齊白石','100cm','','1980',0.00,0.00,'齊白石','齊白石','齊白石','齊白石','齊白石','','','','齊白石','','','','','橋太',1,1000.00,2000.00,800.00,1000.00,'左側“歷史拍賣”先去掉不顯示,待本次拍賣結束后再出現 現在沒有歷史拍賣,又和右側正在進行的拍賣不吻合。 右側,內容冗贅,重複內容太多。 預展會場和拍賣會場內容能否統一放在左側,這樣僅顯示一次即可 時間展示,不要顯示分鐘 刪除:預展會場、拍賣會場 刪除:時間顯示的分鐘秒鐘部分 例如:2015-05-30 10:30 拍賣 刪除:右側每個專場的所有 日期時間及預展文字 ,只保留(2015-05-30 10:30 拍賣)OK 參考嘉德: http://www.cguardian.com.hk/tc/auction/','213123','',0,0,'2015-05-19 06:21:29','2015-05-19 08:56:56',1),(6,'313123123','312312312','313132','3123123','3113123','31123123',1.00,1.00,'3123123','313123','3123123','313123','3123123','312312','312312','312312','312312','312312','312312','3123123','3123123','312312',2,1.00,1.00,1.00,1.00,'','312312','',0,0,'2015-05-19 06:59:55','2015-05-19 07:02:05',1),(8,'','','侧额','','','',0.00,0.00,'','','','','','','','','','','','','','',0,2654.23,123.00,1234.00,16699888.00,'','','',0,0,'2015-05-19 08:15:12','2015-05-19 08:22:38',1); /*!40000 ALTER TABLE `hb_artworks` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `hb_asas` -- DROP TABLE IF EXISTS `hb_asas`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hb_asas` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `asa_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `preview_begin_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `preview_end_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `begin_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `end_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `asa_addr` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `asa_preview_addr` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `asa_image` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `asa_only_online` tinyint(4) NOT NULL, `asa_online_url` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `asa_online_logo` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `lang` tinyint(4) NOT NULL, `asa_group` tinyint(4) NOT NULL, `auction_id` int(10) unsigned NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `hb_asas_auction_id_foreign` (`auction_id`), CONSTRAINT `hb_asas_auction_id_foreign` FOREIGN KEY (`auction_id`) REFERENCES `hb_auctions` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `hb_asas` -- LOCK TABLES `hb_asas` WRITE; /*!40000 ALTER TABLE `hb_asas` DISABLE KEYS */; INSERT INTO `hb_asas` VALUES (1,'瓷苑擷珍 —— 瓷器精品專場','2015-05-18 00:00:00','2015-05-29 02:00:00','2015-05-11 07:00:00','2015-05-30 02:30:00','香港灣仔港灣道1號香港萬麗海景酒店8樓宴會廳','香港灣仔港灣道1號香港萬麗海景酒店8樓宴會廳','/uploads/2015/05/06/BY7Kp0OWiSDxEEFt.jpg',0,'www.epailive.com','网拍LOGO',0,1,1,'2015-04-26 07:34:54','2015-05-19 14:43:29'),(5,'稽韻千古 —— 高古陶瓷專場','2015-05-29 02:00:00','2015-05-29 11:00:00','2015-05-19 06:47:08','2015-05-30 03:30:00','香港灣仔港灣道1號香港萬麗海景酒店8樓宴會廳','香港灣仔港灣道1號香港萬麗海景酒店8樓宴會廳','/uploads/2015/05/19/oMOrD90NZihc3RQs.jpg',0,'','',0,1,1,'2015-05-19 06:36:03','2015-05-19 06:47:08'),(6,'物華天寶 —— 古董珍玩專場','2015-05-29 02:00:00','2015-05-29 11:00:00','2015-05-19 06:45:10','2015-05-30 05:30:00','香港灣仔港灣道1號萬麗海景酒店8樓宴會廳','香港灣仔港灣道1號萬麗海景酒店8樓宴會廳','/uploads/2015/05/19/ZHqI2q88YN6GdGhH.jpg',0,'','',0,1,1,'2015-05-19 06:45:10','2015-05-19 12:49:17'),(7,'丹青不渝 —— 中國書畫專場','2015-05-29 02:00:00','2015-05-29 11:00:00','2015-05-19 06:46:50','2015-05-30 06:30:00','香港灣仔港灣道1號香港萬麗海景酒店8樓宴會廳','香港灣仔港灣道1號香港萬麗海景酒店8樓宴會廳','/uploads/2015/05/19/7erkaIcZ62d4vLrW.jpg',0,'','',0,1,1,'2015-05-19 06:46:50','2015-05-19 12:49:24'); /*!40000 ALTER TABLE `hb_asas` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `hb_attachments` -- DROP TABLE IF EXISTS `hb_attachments`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hb_attachments` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `att_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `att_path` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `att_type` tinyint(4) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `hb_attachments` -- LOCK TABLES `hb_attachments` WRITE; /*!40000 ALTER TABLE `hb_attachments` DISABLE KEYS */; INSERT INTO `hb_attachments` VALUES (1,'QQ图片20150422214159.jpg','/uploads/2015/04/26/xgXEP55cbbbxtpPE.jpg',0,'2015-04-26 07:34:52','2015-04-26 07:34:52'),(2,'2.png','/uploads/2015/04/26/ykcrq65CV4VsV4Cw.png',0,'2015-04-26 07:38:08','2015-04-26 07:38:08'),(3,'psb.jpg','/uploads/2015/04/26/9tiEHYNLHIXbs6lp.jpg',0,'2015-04-26 08:03:39','2015-04-26 08:03:39'),(4,'psb (1).jpg','/uploads/2015/04/26/2GQcuQsvON1zcYcg.jpg',0,'2015-04-26 08:15:20','2015-04-26 08:15:20'),(5,'psb.jpg','/uploads/2015/04/26/pxsUMso7h2pBogjU.jpg',0,'2015-04-26 08:15:26','2015-04-26 08:15:26'),(6,'证件照.jpg','/uploads/2015/04/26/Th26fChNYBnWryb8.jpg',0,'2015-04-26 08:15:31','2015-04-26 08:15:31'),(7,'2.png','/uploads/2015/04/26/M0QteYESWgscdQOR.png',0,'2015-04-26 08:16:14','2015-04-26 08:16:14'),(8,'QQ图片20150422214159.jpg','/uploads/2015/04/26/rlggzqqJrHmUDPwO.jpg',0,'2015-04-26 08:16:17','2015-04-26 08:16:17'),(9,'QQ图片20150422225040.png','/uploads/2015/04/26/FkeyjQw2qnx8QXxm.png',0,'2015-04-26 08:16:19','2015-04-26 08:16:19'),(10,'psb (1).jpg','/uploads/2015/04/26/widUSEp3Ss4HOfVr.jpg',0,'2015-04-26 08:16:26','2015-04-26 08:16:26'),(11,'psb.jpg','/uploads/2015/04/26/544sq76pxySN9VKX.jpg',0,'2015-04-26 08:16:30','2015-04-26 08:16:30'),(12,'屏幕快照 2015-03-18 上午10.39.57.png','/uploads/2015/04/27/FGe7Vi3WZxMeIU0D.png',1,'2015-04-27 07:24:08','2015-04-27 07:24:08'),(13,'屏幕快照 2015-04-27 下午3.04.37.png','/uploads/2015/04/27/tGvPnC2OWjBs7lTO.png',1,'2015-04-27 07:24:22','2015-04-27 07:24:22'),(14,'Koala.jpg','/uploads/2015/04/27/Oa7vEj2CTW9OVKsl.jpg',0,'2015-04-27 13:14:17','2015-04-27 13:14:17'),(15,'Penguins.jpg','/uploads/2015/04/27/lCyOb3AXedkrLnZD.jpg',0,'2015-04-27 13:14:31','2015-04-27 13:14:31'),(16,'Penguins.jpg','/uploads/2015/04/27/zkFIHTJDZTdSBw51.jpg',0,'2015-04-27 13:14:42','2015-04-27 13:14:42'),(17,'Penguins.jpg','/uploads/2015/04/27/RBoIzBpLggUYljCN.jpg',0,'2015-04-27 13:15:04','2015-04-27 13:15:04'),(18,'Tulips.jpg','/uploads/2015/04/27/uYkz1RhICpxW12Aw.jpg',0,'2015-04-27 13:15:21','2015-04-27 13:15:21'),(19,'image.jpg','/uploads/2015/04/27/kkcfUCdey9VNy31z.jpg',0,'2015-04-27 14:23:41','2015-04-27 14:23:41'),(20,'屏幕快照 2015-03-18 上午10.39.57.png','/uploads/2015/04/28/TIPaOjGlyJtdkZ7i.png',0,'2015-04-28 13:47:15','2015-04-28 13:47:15'),(21,'psb (1).jpg','/uploads/2015/05/05/2GppJQH8reqiiasg.jpg',0,'2015-05-05 14:49:49','2015-05-05 14:49:49'),(22,'1078891_171634084463_2.jpg','/uploads/2015/05/06/jOjzE2ieOMQ0jhns.jpg',0,'2015-05-06 08:50:08','2015-05-06 08:50:08'),(23,'1078891_171634084463_2.jpg','/uploads/2015/05/06/RUIEpUDR7BOJN3Qo.jpg',0,'2015-05-06 12:08:25','2015-05-06 12:08:25'),(24,'1367046916977.jpg','/uploads/2015/05/06/BY7Kp0OWiSDxEEFt.jpg',0,'2015-05-06 15:34:06','2015-05-06 15:34:06'),(25,'e52a4afdea938b4c0b8568976ff3aedf.jpg','/uploads/2015/05/06/aCHFDmObw1dWWHqX.jpg',0,'2015-05-06 15:37:14','2015-05-06 15:37:14'),(26,'u=986598686,4193954648&fm=21&gp=0.jpg','/uploads/2015/05/06/MP6It9nBvEfO5xDk.jpg',0,'2015-05-06 15:38:20','2015-05-06 15:38:20'),(27,'2459179_161059054893_2.jpg','/uploads/2015/05/06/hjCK31gtUW7aVse7.jpg',0,'2015-05-06 15:40:15','2015-05-06 15:40:15'),(28,'20140510104901_1880 (1).jpg','/uploads/2015/05/06/HMrDl2Kn54IXcumw.jpg',0,'2015-05-06 15:51:33','2015-05-06 15:51:33'),(29,'20150513001001035_TB.jpg','/uploads/2015/05/14/EjrUcxK05t2hYXOy.jpg',0,'2015-05-14 01:05:33','2015-05-14 01:05:33'),(30,'0002..jpg','/uploads/2015/05/19/gxyCxosvsszLIGOE.jpg',0,'2015-05-19 06:21:12','2015-05-19 06:21:12'),(31,'0001.jpg','/uploads/2015/05/19/oMOrD90NZihc3RQs.jpg',0,'2015-05-19 06:35:57','2015-05-19 06:35:57'),(32,'0001.jpg','/uploads/2015/05/19/ZHqI2q88YN6GdGhH.jpg',0,'2015-05-19 06:45:05','2015-05-19 06:45:05'),(33,'0001.jpg','/uploads/2015/05/19/7erkaIcZ62d4vLrW.jpg',0,'2015-05-19 06:46:48','2015-05-19 06:46:48'),(34,'0001.jpg','/uploads/2015/05/19/llLSTkkJkSHQ4gpj.jpg',0,'2015-05-19 06:59:28','2015-05-19 06:59:28'),(35,'辜1.jpg','/uploads/2015/05/19/JTmLUI3xPOTYt7Hv.jpg',0,'2015-05-19 08:39:21','2015-05-19 08:39:21'),(36,'辜1.jpg','/uploads/2015/05/19/OvZwGWYbbzMgvKuj.jpg',0,'2015-05-19 08:39:58','2015-05-19 08:39:58'); /*!40000 ALTER TABLE `hb_attachments` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `hb_auctions` -- DROP TABLE IF EXISTS `hb_auctions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hb_auctions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `auction_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `preview_begin_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `preview_end_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `auction_begin_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `auction_end_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `lang` tinyint(4) DEFAULT '0', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `auction_addr` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `auction_preview_addr` varchar(100) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `hb_auctions` -- LOCK TABLES `hb_auctions` WRITE; /*!40000 ALTER TABLE `hb_auctions` DISABLE KEYS */; INSERT INTO `hb_auctions` VALUES (1,'橫濱國際香港春季拍賣會','2015-05-29 02:00:00','2015-05-29 11:00:00','2015-05-30 02:00:00','2015-05-30 11:00:00',0,'2015-04-26 07:32:43','2015-05-19 07:23:58','香港灣仔港灣道1號香港萬麗海景酒店8樓宴會廳','香港灣仔港灣道1號香港萬麗海景酒店8樓宴會廳'); /*!40000 ALTER TABLE `hb_auctions` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `hb_banners` -- DROP TABLE IF EXISTS `hb_banners`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hb_banners` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `image_url` varchar(300) COLLATE utf8_unicode_ci NOT NULL, `target_url` varchar(300) COLLATE utf8_unicode_ci NOT NULL, `order` int(11) NOT NULL, `enable` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `hb_banners` -- LOCK TABLES `hb_banners` WRITE; /*!40000 ALTER TABLE `hb_banners` DISABLE KEYS */; INSERT INTO `hb_banners` VALUES (1,'123','/uploads/2015/04/27/Oa7vEj2CTW9OVKsl.jpg','http://www.baidu.com',123,1,'2015-04-27 13:14:19','2015-04-27 13:44:15'),(2,'11111','/uploads/2015/04/27/kkcfUCdey9VNy31z.jpg','http://www.baidu.com',111111,1,'2015-04-27 13:14:29','2015-04-27 14:23:46'),(3,'pic1','/uploads/2015/05/06/RUIEpUDR7BOJN3Qo.jpg','http://172.16.31.10/',1,1,'2015-05-06 12:11:15','2015-05-06 12:11:15'),(4,'2015春拍总广告','/uploads/2015/05/14/EjrUcxK05t2hYXOy.jpg','',0,1,'2015-05-13 10:54:00','2015-05-14 01:05:35'); /*!40000 ALTER TABLE `hb_banners` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `hb_materials` -- DROP TABLE IF EXISTS `hb_materials`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hb_materials` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `title` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `content` text COLLATE utf8_unicode_ci NOT NULL, `lang` tinyint(4) NOT NULL, `published_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `published` tinyint(4) DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `hb_materials` -- LOCK TABLES `hb_materials` WRITE; /*!40000 ALTER TABLE `hb_materials` DISABLE KEYS */; INSERT INTO `hb_materials` VALUES (1,'2015-05-03 13:09:29','2015-05-04 06:29:56','111','<p>11111</p>',0,'2015-05-04 06:29:56',1); /*!40000 ALTER TABLE `hb_materials` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `hb_new_attachments` -- DROP TABLE IF EXISTS `hb_new_attachments`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hb_new_attachments` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `attachment_id` int(10) unsigned NOT NULL, `new_id` int(10) unsigned NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `hb_new_attachments_new_id_foreign` (`new_id`), KEY `hb_new_attachments_attachment_id_foreign` (`attachment_id`), CONSTRAINT `hb_new_attachments_attachment_id_foreign` FOREIGN KEY (`attachment_id`) REFERENCES `hb_attachments` (`id`) ON DELETE CASCADE, CONSTRAINT `hb_new_attachments_new_id_foreign` FOREIGN KEY (`new_id`) REFERENCES `hb_news` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `hb_new_attachments` -- LOCK TABLES `hb_new_attachments` WRITE; /*!40000 ALTER TABLE `hb_new_attachments` DISABLE KEYS */; /*!40000 ALTER TABLE `hb_new_attachments` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `hb_news` -- DROP TABLE IF EXISTS `hb_news`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hb_news` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `content` text COLLATE utf8_unicode_ci NOT NULL, `lang` tinyint(4) NOT NULL, `published_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `published` tinyint(4) DEFAULT '0', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `hb_news` -- LOCK TABLES `hb_news` WRITE; /*!40000 ALTER TABLE `hb_news` DISABLE KEYS */; INSERT INTO `hb_news` VALUES (1,'新闻测试标题新闻测试标题','<p><b>有内容,</b>没有图片的新闻测试。有内容,没有图片的新闻测试。有内容,没有图片的新闻测试。有内容,没有图片的新闻测试。有内容,没有图片的新闻测试。有内容,没有图片的新闻测试。有内容,没有图片的新闻测试。有内容,没有图片的新闻测试。有内容,没有图片的新闻测试。有内容,没有图片的新闻测试。有内容,没有图片的新闻测试。有内容,没有图片的新闻测试。</p>',0,'2015-04-27 07:15:54',1,'2015-04-27 07:15:54','2015-04-27 07:15:54'),(2,'测试新闻带图片带图片','<p>测试新闻带图片带图片测试新闻带图片带图片测试新闻带图片带图片测试新闻带图片带图片测试新闻带图片带图片<br></p><p><img alt=\"屏幕快照 2015-03-18 上午10.39.57.png\" src=\"/uploads/2015/04/27/FGe7Vi3WZxMeIU0D.png\" data-image-size=\"708,485\"><br></p><p><br></p><p>测试新闻带图片带图片<br></p><p><img alt=\"屏幕快照 2015-04-27 下午3.04.37.png\" src=\"/uploads/2015/04/27/tGvPnC2OWjBs7lTO.png\" data-image-size=\"223,125\"><br></p><p><br></p><p>测试新闻带图片带图片<br></p>',0,'2015-04-27 07:24:25',1,'2015-04-27 07:24:25','2015-04-27 07:24:25'),(3,'12','<p>1111</p>',0,'0000-00-00 00:00:00',0,'2015-05-04 13:38:56','2015-05-04 13:38:56'); /*!40000 ALTER TABLE `hb_news` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `migrations` -- DROP TABLE IF EXISTS `migrations`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `migrations` ( `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `migrations` -- LOCK TABLES `migrations` WRITE; /*!40000 ALTER TABLE `migrations` DISABLE KEYS */; INSERT INTO `migrations` VALUES ('2014_10_12_000000_create_users_table',1),('2014_10_12_100000_create_password_resets_table',1),('2015_04_05_040046_create_hb_news_table',1),('2015_04_05_080701_create_hb_attachments_table',1),('2015_04_05_083350_create_hb_new_attachments_table',1),('2015_04_08_123049_create_hb_auctions_table',1),('2015_04_08_221939_create_hb_asas_table',1),('2015_04_08_221940_create_hb_artworks_table',1),('2015_04_12_132052_create_hb_banners_table',1),('2015_04_12_132819_create_hb_ads_table',1),('2015_04_14_211409_create_hb_art_atts_table',1),('2015_04_29_202424_create_hb_materials_table',2); /*!40000 ALTER TABLE `migrations` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `password_resets` -- DROP TABLE IF EXISTS `password_resets`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', KEY `password_resets_email_index` (`email`), KEY `password_resets_token_index` (`token`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `password_resets` -- LOCK TABLES `password_resets` WRITE; /*!40000 ALTER TABLE `password_resets` DISABLE KEYS */; /*!40000 ALTER TABLE `password_resets` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `users` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(60) COLLATE utf8_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), UNIQUE KEY `users_email_unique` (`email`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `users` -- LOCK TABLES `users` WRITE; /*!40000 ALTER TABLE `users` DISABLE KEYS */; INSERT INTO `users` VALUES (1,'admin','<EMAIL>','$2y$10$kxpPB3Ox<PASSWORD>','3QEGyHNmOVocL4uY3AjzfHWYnuXMJoObruxfNu9kmh0Z1s51rhZxpXTl3bBH','2015-04-27 06:06:12','2015-05-19 06:44:24'); /*!40000 ALTER TABLE `users` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2015-05-19 22:48:05
CREATE TABLE [dbo].[configuration] ( [id] INT NOT NULL, [name] VARCHAR (100) NOT NULL, [value] VARCHAR (MAX) NOT NULL, [configuration_type] INT NOT NULL, PRIMARY KEY CLUSTERED ([id] ASC) );
CREATE TABLE IF NOT EXISTS `tbl_prize` ( `prize_id` int(11) NOT NULL, `prize` int(11) NOT NULL, `chance` int(11) NOT NULL DEFAULT '1' ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; ALTER TABLE `tbl_prize` ADD PRIMARY KEY (`prize_id`); ALTER TABLE `tbl_prize` MODIFY `prize_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3; INSERT INTO `tbl_prize` (`prize_id`, `prize`, `chance`) VALUES(1, 100, 1),(2, 200, 1); CREATE TABLE IF NOT EXISTS `tbl_user` ( `user_id` int(11) NOT NULL, `reffer_id` int(11) DEFAULT NULL, `wallet` varchar(500) NOT NULL, `ref_pending` int(11) unsigned NOT NULL DEFAULT '0', `earn` int(11) unsigned NOT NULL DEFAULT '0', `playnum` int(11) unsigned NOT NULL, `ip` int(10) unsigned DEFAULT NULL, `reset` int(4) unsigned NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `tbl_user` ADD PRIMARY KEY (`user_id`), ADD KEY `reffer_id` (`reffer_id`), ADD KEY `username` (`wallet`), ADD KEY `ref_pending` (`ref_pending`), ADD KEY `ip` (`ip`), ADD KEY `reset` (`reset`); ALTER TABLE `tbl_user` MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT; ALTER TABLE `tbl_user` ADD CONSTRAINT `tbl_user_ibfk_1` FOREIGN KEY (`reffer_id`) REFERENCES `tbl_user` (`user_id`) ON DELETE SET NULL;
-- CREATE DATABASE AziendaTirocinante; -- USE AziendaTirocinante; CREATE TABLE 191126Azienda ( id int(10) NOT NULL, Nome varchar(15), Luogo varchar(20), Settore varchar(20), Tipologia varchar(10), PRIMARY KEY(id) ); CREATE TABLE 191126Tutor ( id int(10) NOT NULL, Nome varchar(10), Cognome varchar(10), Materia varchar(10), PRIMARY KEY(id) ); CREATE TABLE 191126Tirocinante ( Matricola int(10) NOT NULL, Nome varchar(10), Cognome varchar(10), Classe char(3), Idazienda int(10) NOT NULL, Idtutor int(10) NOT NULL, PRIMARY KEY(Matricola), FOREIGN KEY (Idazienda) REFERENCES 191126Azienda(id), FOREIGN KEY (Idtutor) REFERENCES 191126Tutor(id) );
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50710 Source Host : localhost Source Database : blogwork Target Server Type : MySQL Target Server Version : 50710 File Encoding : utf-8 Date: 06/07/2016 21:50:15 PM */ SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for `contents` -- ---------------------------- DROP TABLE IF EXISTS `contents`; CREATE TABLE `contents` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `send_id` int(11) NOT NULL, `send_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `recv_id` int(11) NOT NULL, `recv_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `con` text COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- ---------------------------- -- Records of `contents` -- ---------------------------- BEGIN; INSERT INTO `contents` VALUES ('1', '5', '仁增', '6', '秦威', '2016-06-03 11:31:49', '2016-06-03 11:31:49', '离马尼拉特锦赛主赛事小组赛开赛还有不到一周'), ('2', '5', '仁增', '7', '汤勇', '2016-06-03 11:32:15', '2016-06-03 11:32:15', '已经在Wykrhm Reddy的社交媒体上公布了!一起来找找本次春季特锦赛的死亡之组吧。'), ('3', '8', '王垚森', '7', '汤勇', '2016-06-03 11:32:57', '2016-06-03 11:32:57', '的比赛,第一轮的比赛刚刚全部结束,中国军团可谓是有惊喜也有失望。了解TongFu一手信息,直击更多的赛事赛况,一切尽在TongFu微信公'), ('4', '5', '仁增', '1', '王良', '2016-06-03 11:41:38', '2016-06-03 11:41:38', '组图:EXO新造型主打暗黑系 花美男全变大魔王'), ('5', '6', '秦威', '1', '王良', '2016-06-03 11:42:40', '2016-06-03 11:42:40', 'nihao 统一汤勇'), ('6', '1', '王良', '7', '汤勇', '2016-06-03 11:43:02', '2016-06-03 11:43:02', 'Ubuntu 16.10(Yakkety Yak)不久将采用...'), ('7', '6', '秦威', '1', '王良', '2016-06-04 06:16:06', '2016-06-04 06:16:06', '《幻城》凡世花絮 冯绍峰咬宋茜铠甲马天宇卖萌'), ('8', '7', '汤勇', '8', '王垚森', '2016-06-04 16:35:54', '2016-06-04 16:35:57', '47项资格证一度引起了不少媒体和网友的关注,此次关于资格证取消的问题,李克强总理在会议上做了重要的指示,在2015年的一次国务院常务会议上,围绕... '), ('9', '7', '汤勇', '5', '仁增', '2016-06-04 16:36:21', '2016-06-04 16:36:22', '知道,插花,搬木材,旅店、浴池服务员也考证,珠心算教练、罐头封口技师、巧克力制造工等由于太偏,甚至鲜有考生。 http://t.cn/R5qv3o8 查看全文>>'), ('10', '6', '秦威', '5', '仁增', '2016-06-04 16:36:44', '2016-06-04 16:36:46', '供给侧结构性改革的重要举措。 国务院总理李克强6月1日主持召开国务院常务...'), ('11', '5', '仁增', '8', '王垚森', '2016-06-04 16:37:07', '2016-06-04 16:37:09', ' use stable\nhexo clean && hexo g'), ('12', '1', '王良', '7', '汤勇', '2016-06-04 16:37:59', '2016-06-04 16:37:58', ',有两种方式,--with-xxxx和--enable-xxxx。差别在于前者可以引用外部相关文件,比如--with-MySQL=/usr/local/mysql等等,而后者不能。这要根据你的需要,比如你要写一个xml parser扩展,想在你的扩展代码中引用外部系统的libxml,那么为'), ('13', '1', '王良', '8', '王垚森', '2016-06-04 16:38:10', '2016-06-04 16:38:11', 'able-xxxx吧,因为我们的myext确实没什么好引用的。\n\n找到这么几行:'), ('14', '1', '王良', '5', '仁增', '2016-06-04 16:38:24', '2016-06-04 16:38:25', ' ext_skel ext_skel_win32.php ...\n这个目录有很多子目录,每个子目录都是PHP的一个扩展模块。此外还有两个文件:ext_skel是一个shell脚本,运行它能生成PHP扩展模块的框架;ext_skel_wi'); COMMIT; -- ---------------------------- -- Table structure for `id_pres` -- ---------------------------- DROP TABLE IF EXISTS `id_pres`; CREATE TABLE `id_pres` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `type` varchar(30) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- ---------------------------- -- Records of `id_pres` -- ---------------------------- BEGIN; INSERT INTO `id_pres` VALUES ('1', '篮球'), ('2', '动漫'), ('3', '足球'), ('4', '唱歌'), ('5', '电影'), ('6', '购物'), ('7', '健身'), ('8', '桌球'), ('9', '排球'), ('10', '乒乓'), ('11', '网游'), ('12', '韩剧'), ('13', '睡觉'), ('14', '舞蹈'), ('15', '吉他'), ('16', '阅读'); COMMIT; -- ---------------------------- -- Table structure for `migrations` -- ---------------------------- DROP TABLE IF EXISTS `migrations`; CREATE TABLE `migrations` ( `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- ---------------------------- -- Records of `migrations` -- ---------------------------- BEGIN; INSERT INTO `migrations` VALUES ('2014_10_12_000000_create_users_table', '1'), ('2014_10_12_100000_create_password_resets_table', '1'), ('2016_06_01_083500_create_preferences_table', '2'), ('2016_06_02_140713_alter_preferences_table', '3'), ('2016_06_02_141405_create_id_pre_table', '3'), ('2016_06_03_105441_create_content_table', '4'), ('2016_06_03_111759_alter_content_table', '5'), ('2016_06_04_070216_ctreat_table_tables', '6'); COMMIT; -- ---------------------------- -- Table structure for `password_resets` -- ---------------------------- DROP TABLE IF EXISTS `password_resets`; CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, KEY `password_resets_email_index` (`email`), KEY `password_resets_token_index` (`token`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- ---------------------------- -- Table structure for `preferences` -- ---------------------------- DROP TABLE IF EXISTS `preferences`; CREATE TABLE `preferences` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `like1` int(11) NOT NULL, `like2` int(11) NOT NULL, `like3` int(11) NOT NULL, `like4` int(11) NOT NULL, PRIMARY KEY (`id`), CONSTRAINT `preferences_id_foreign` FOREIGN KEY (`id`) REFERENCES `users` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- ---------------------------- -- Records of `preferences` -- ---------------------------- BEGIN; INSERT INTO `preferences` VALUES ('1', '2016-06-02 15:01:12', '2016-06-02 15:01:12', '3', '5', '7', '9'), ('5', '2016-06-03 06:10:48', '2016-06-03 06:29:41', '2', '6', '7', '3'), ('6', '2016-06-04 16:32:04', '2016-06-03 05:27:54', '6', '8', '4', '9'), ('7', '2016-06-03 06:33:18', '2016-06-03 06:33:28', '6', '3', '5', '7'), ('8', '2016-06-04 08:47:13', '2016-06-04 08:47:13', '3', '6', '5', '9'); COMMIT; -- ---------------------------- -- Table structure for `tables` -- ---------------------------- DROP TABLE IF EXISTS `tables`; CREATE TABLE `tables` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `table` text COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- ---------------------------- -- Records of `tables` -- ---------------------------- BEGIN; INSERT INTO `tables` VALUES ('1', '王良', '<LINK href=\'css/style.css\' type=text/css rel=stylesheet><title>学生课表</title><LINK href=\'style.css\' type=text/css rel=stylesheet><title>学生课表查询</title><BR><p align=center>2014211547同学的[2015-2016学年2学期]课程表<BR><BR>\r\n<table width=\"100%\" border=\"1\" bordercolor=\"#e2fad6\"cellspacing=\"0\" cellpadding=\"0\" height=\"372\">\r\n<tr>\r\n <td width=\"12%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"></div>\r\n </td>\r\n <td width=\"11%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期一</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期二</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期三</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期四</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期五</font></div>\r\n </td>\r\n <td width=\"12%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\">星期六</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\">星期日</font></div>\r\n </td>\r\n</tr>\r\n<tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >一二节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;040111<br>面向对象程序设计-Java<br><br>计算机基础实验室(二)S319<br><font color=#ff0000>随课实验</font><br>2-16周双周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040157<br>数据库原理<br>王晓蓉<br>3303<br><font color=#ff0000>必修</font><br>1-17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >三四节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;050092<br>商务英语交际<br>王庆光 <br>4405<br><font color=#ff0000>限选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040319<br>操作系统<br>刘洪涛<br>3407<br><font color=#ff0000>限选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;041114<br>集中上机(C++/Java)<br><br>计算机基础实验室(三)S302<br><font color=#ff0000>独立实验(实践)</font><br>3周,17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040200<br>计算机网络<br>易芝<br>4309<br><font color=#ff0000>必修</font><br>单周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >五六节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;040200<br>计算机网络<br>易芝<br>4309<br><font color=#ff0000>必修</font><br>1-17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040157<br>数据库原理<br><br>计算软件实验室S331<br><font color=#ff0000>随课实验</font><br>4-15周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040111<br>面向对象程序设计-Java<br>韦庆杰<br>2416<br><font color=#ff0000>限选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040200<br>计算机网络<br><br>迈普重邮网络实验室S318<br><font color=#ff0000>随课实验</font><br>4-6周,8-14周,16-17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040157<br>数据库原理<br>王晓蓉<br>3303<br><font color=#ff0000>必修</font><br>单周<br>选课状态:正常<br><font color=336699></font><br>040319<br>操作系统<br>刘洪涛<br>3407<br><font color=#ff0000>限选</font><br>双周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >七八节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;090113<br>体育(俱乐部)乒乓球俱乐部<br>教师1<br>运动场1<br><font color=#ff0000>必修</font><br>1-16周(双)<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;000022<br>健康教育2<br><br>2117教室<br><font color=#ff0000>随课实验</font><br>4-6周,8-9周<br>选课状态:指导<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >九十节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;040523<br>数学建模<br>数模组A<br>2117<br><font color=#ff0000>限选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;121009<br>经典电影欣赏<br>张国辉<br>2302<br><font color=#ff0000>任选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;060188<br>环境与生态文明<br>姚干<br>3508<br><font color=#ff0000>任选</font><br>1-8周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;000022<br>健康教育2<br>夏淑芳<br>2215<br><font color=#ff0000>必修</font><br>1-3周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >十一二节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;070107<br>形势与政策<br>何宏兵<br>3205<br><font color=#ff0000>必修</font><br>3-6周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr></table>\r\n<h3>其他实践及实验选课</h3>\r\n<table>\r\n <tr><td>课程号</td><td>课程名称</td><td>课程类别</td><td>选课类别</td><td>选课状态</td></tr>\r\n <tr><td>040040</td><td>认识实习</td>\r\n <td>实践</td><td>独立实验(实践)</td><td>正常</td></tr> \r\n</table>\r\n\r\n\r\n', null, null), ('5', '仁增', '<LINK href=\'css/style.css\' type=text/css rel=stylesheet><title>学生课表</title><LINK href=\'style.css\' type=text/css rel=stylesheet><title>学生课表查询</title><BR><p align=center>2014211554同学的[2015-2016学年2学期]课程表<BR><BR>\r\n<table width=\"100%\" border=\"1\" bordercolor=\"#e2fad6\"cellspacing=\"0\" cellpadding=\"0\" height=\"372\">\r\n<tr>\r\n <td width=\"12%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"></div>\r\n </td>\r\n <td width=\"11%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期一</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期二</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期三</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期四</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期五</font></div>\r\n </td>\r\n <td width=\"12%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\">星期六</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\">星期日</font></div>\r\n </td>\r\n</tr>\r\n<tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >一二节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;040111<br>面向对象程序设计-Java<br><br>计算机基础实验室(二)S319<br><font color=#ff0000>随课实验</font><br>2-16周双周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040157<br>数据库原理<br>王晓蓉<br>3303<br><font color=#ff0000>必修</font><br>1-17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;010220<br>信号处理基础<br>曹建玲<br>3101<br><font color=#ff0000>限选</font><br>1-17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >三四节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;050092<br>商务英语交际<br>王庆光 <br>4405<br><font color=#ff0000>限选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040319<br>操作系统<br>刘洪涛<br>3407<br><font color=#ff0000>限选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;041114<br>集中上机(C++/Java)<br><br>计算机基础实验室(三)S302<br><font color=#ff0000>独立实验(实践)</font><br>3周,17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040200<br>计算机网络<br>易芝<br>4309<br><font color=#ff0000>必修</font><br>单周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >五六节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;040200<br>计算机网络<br>易芝<br>4309<br><font color=#ff0000>必修</font><br>1-17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040157<br>数据库原理<br><br>计算软件实验室S331<br><font color=#ff0000>随课实验</font><br>4-15周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040111<br>面向对象程序设计-Java<br>韦庆杰<br>2416<br><font color=#ff0000>限选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040200<br>计算机网络<br><br>迈普重邮网络实验室S318<br><font color=#ff0000>随课实验</font><br>4-6周,8-14周,16-17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040157<br>数据库原理<br>王晓蓉<br>3303<br><font color=#ff0000>必修</font><br>单周<br>选课状态:正常<br><font color=336699></font><br>040319<br>操作系统<br>刘洪涛<br>3407<br><font color=#ff0000>限选</font><br>双周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >七八节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;Mooc22<br>团队建设与高效管理(Mooc)<br>彭语良<br>2217<br><font color=#ff0000>任选</font><br>2.9.16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;090113<br>体育(俱乐部)足球俱乐部<br>教师1<br>运动场1<br><font color=#ff0000>必修</font><br>1-16周(单)<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;000022<br>健康教育2<br><br>2117教室<br><font color=#ff0000>随课实验</font><br>4-6周,8-9周<br>选课状态:指导<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >九十节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;040523<br>数学建模<br>数模组A<br>2117<br><font color=#ff0000>限选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;120656<br>时尚设计与生活<br>钱默<br>2402<br><font color=#ff0000>任选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;000022<br>健康教育2<br>夏淑芳<br>2215<br><font color=#ff0000>必修</font><br>1-3周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >十一二节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;070107<br>形势与政策<br>何宏兵<br>3205<br><font color=#ff0000>必修</font><br>3-6周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr></table>\r\n<h3>其他实践及实验选课</h3>\r\n<table>\r\n <tr><td>课程号</td><td>课程名称</td><td>课程类别</td><td>选课类别</td><td>选课状态</td></tr>\r\n <tr><td>040040</td><td>认识实习</td>\r\n <td>实践</td><td>独立实验(实践)</td><td>正常</td></tr> \r\n</table>\r\n\r\n\r\n', null, null), ('6', '秦威', '<LINK href=\'css/style.css\' type=text/css rel=stylesheet><title>学生课表</title><LINK href=\'style.css\' type=text/css rel=stylesheet><title>学生课表查询</title><BR><p align=center>2014211558同学的[2015-2016学年2学期]课程表<BR><BR>\r\n<table width=\"100%\" border=\"1\" bordercolor=\"#e2fad6\"cellspacing=\"0\" cellpadding=\"0\" height=\"372\">\r\n<tr>\r\n <td width=\"12%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"></div>\r\n </td>\r\n <td width=\"11%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期一</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期二</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期三</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期四</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期五</font></div>\r\n </td>\r\n <td width=\"12%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\">星期六</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\">星期日</font></div>\r\n </td>\r\n</tr>\r\n<tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >一二节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;020117<br>大学物理(上)<br>陈希明 <br>3501<br><font color=#ff0000>必修</font><br>双周<br>选课状态:重修<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040111<br>面向对象程序设计-Java<br><br>计算机基础实验室(二)S319<br><font color=#ff0000>随课实验</font><br>2-16周双周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040157<br>数据库原理<br>王晓蓉<br>3303<br><font color=#ff0000>必修</font><br>1-17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;020117<br>大学物理(上)<br>陈希明 <br>3501<br><font color=#ff0000>必修</font><br>1-17周<br>选课状态:重修<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >三四节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;040319<br>操作系统<br>刘洪涛<br>3407<br><font color=#ff0000>限选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;041114<br>集中上机(C++/Java)<br><br>计算机基础实验室(三)S302<br><font color=#ff0000>独立实验(实践)</font><br>3周,17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040200<br>计算机网络<br>易芝<br>4309<br><font color=#ff0000>必修</font><br>单周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040415<br>概率论与数理统计<br>邵亚斌<br>4414<br><font color=#ff0000>限选</font><br>双周<br>选课状态:重修<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >五六节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;040200<br>计算机网络<br>易芝<br>4309<br><font color=#ff0000>必修</font><br>1-17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040157<br>数据库原理<br><br>计算软件实验室S331<br><font color=#ff0000>随课实验</font><br>4-15周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040111<br>面向对象程序设计-Java<br>韦庆杰<br>2416<br><font color=#ff0000>限选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040200<br>计算机网络<br><br>迈普重邮网络实验室S318<br><font color=#ff0000>随课实验</font><br>4-6周,8-14周,16-17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040157<br>数据库原理<br>王晓蓉<br>3303<br><font color=#ff0000>必修</font><br>单周<br>选课状态:正常<br><font color=336699></font><br>040319<br>操作系统<br>刘洪涛<br>3407<br><font color=#ff0000>限选</font><br>双周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >七八节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;040415<br>概率论与数理统计<br>邵亚斌<br>4414<br><font color=#ff0000>限选</font><br>1-16周<br>选课状态:重修<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;090113<br>体育(俱乐部)田径健身俱乐部<br>教师1<br>运动场1<br><font color=#ff0000>必修</font><br>1-16周(双)<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;000022<br>健康教育2<br><br>2117教室<br><font color=#ff0000>随课实验</font><br>4-6周,8-9周<br>选课状态:指导<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >九十节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;040523<br>数学建模<br>数模组A<br>2117<br><font color=#ff0000>限选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;070044<br>法社会学<br>夏燕<br>3401<br><font color=#ff0000>任选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;000022<br>健康教育2<br>夏淑芳<br>2215<br><font color=#ff0000>必修</font><br>1-3周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >十一二节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;070107<br>形势与政策<br>何宏兵<br>3205<br><font color=#ff0000>必修</font><br>3-6周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr></table>\r\n<h3>其他实践及实验选课</h3>\r\n<table>\r\n <tr><td>课程号</td><td>课程名称</td><td>课程类别</td><td>选课类别</td><td>选课状态</td></tr>\r\n <tr><td>040040</td><td>认识实习</td>\r\n <td>实践</td><td>实践环节</td><td>指导</td></tr> \r\n</table>\r\n\r\n\r\n', null, null), ('7', '汤勇', '<LINK href=\'css/style.css\' type=text/css rel=stylesheet><title>学生课表</title><LINK href=\'style.css\' type=text/css rel=stylesheet><title>学生课表查询</title><BR><p align=center>2014211556同学的[2015-2016学年2学期]课程表<BR><BR>\r\n<table width=\"100%\" border=\"1\" bordercolor=\"#e2fad6\"cellspacing=\"0\" cellpadding=\"0\" height=\"372\">\r\n<tr>\r\n <td width=\"12%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"></div>\r\n </td>\r\n <td width=\"11%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期一</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期二</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期三</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期四</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期五</font></div>\r\n </td>\r\n <td width=\"12%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\">星期六</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\">星期日</font></div>\r\n </td>\r\n</tr>\r\n<tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >一二节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;041001<br>数据库原理<br>夏英<br>2409<br><font color=#ff0000>必修</font><br>1-17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040111<br>面向对象程序设计-Java<br>唐晓军<br>S319<br><font color=#ff0000>限选</font><br>1-17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;070061<br>知识产权经典案例评析<br>吴映颖<br>2116<br><font color=#ff0000>任选</font><br>1-8周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >三四节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;040319<br>操作系统<br>熊安萍 <br>2105<br><font color=#ff0000>必修</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;040319<br>操作系统<br>熊安萍 <br>2105<br><font color=#ff0000>必修</font><br>双周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >五六节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;040111<br>面向对象程序设计-Java<br><br>计算机基础实验室(二)S319<br><font color=#ff0000>随课实验</font><br>2-16周双周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040200<br>计算机网络<br>尚凤军 <br>2411<br><font color=#ff0000>必修</font><br>1-17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;040200<br>计算机网络<br>尚凤军 <br>2411<br><font color=#ff0000>必修</font><br>单周<br>选课状态:正常<br><font color=336699></font><br>041001<br>数据库原理<br>夏英<br>2409<br><font color=#ff0000>必修</font><br>双周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >七八节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;041114<br>集中上机(C++/Java)<br><br>计算机基础实验室(三)S302<br><font color=#ff0000>独立实验(实践)</font><br>4周,12周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;090113<br>体育(俱乐部)足球俱乐部<br>教师1<br>运动场1<br><font color=#ff0000>必修</font><br>1-16周(双)<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040200<br>计算机网络<br><br>计算机学院实验室S401<br><font color=#ff0000>随课实验</font><br>4-6周,8-14周,16-17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >九十节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;000022<br>健康教育2<br>严小燕<br>3104<br><font color=#ff0000>必修</font><br>1-3周<br>选课状态:正常<br><font color=336699></font><br>070060<br>知识产权基础<br>赵长江<br>2216<br><font color=#ff0000>任选</font><br>9-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;120396<br>Flash动画欣赏与制作<br>金燕<br>2201<br><font color=#ff0000>任选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;070107<br>形势与政策<br>王小运<br>2301<br><font color=#ff0000>必修</font><br>3-6周<br>选课状态:正常<br><font color=336699></font><br>041001<br>数据库原理<br><br>计算软件实验室S331<br><font color=#ff0000>随课实验</font><br>7-16周<br>选课状态:正常<br><font color=336699>连上三节</font><br></td><td height=58 width=11% align=center>&nbsp;040523<br>数学建模<br>数模组A<br>3104<br><font color=#ff0000>限选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >十一二节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;000022<br>健康教育2<br><br>2116教室<br><font color=#ff0000>随课实验</font><br>4-5周,7-9周<br>选课状态:指导<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr></table>\r\n<h3>其他实践及实验选课</h3>\r\n<table>\r\n <tr><td>课程号</td><td>课程名称</td><td>课程类别</td><td>选课类别</td><td>选课状态</td></tr>\r\n \r\n</table>\r\n\r\n\r\n', null, null), ('8', '王垚森', '<LINK href=\'css/style.css\' type=text/css rel=stylesheet><title>学生课表</title><LINK href=\'style.css\' type=text/css rel=stylesheet><title>学生课表查询</title><BR><p align=center>2014211554同学的[2015-2016学年2学期]课程表<BR><BR>\r\n<table width=\"100%\" border=\"1\" bordercolor=\"#e2fad6\"cellspacing=\"0\" cellpadding=\"0\" height=\"372\">\r\n<tr>\r\n <td width=\"12%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"></div>\r\n </td>\r\n <td width=\"11%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期一</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期二</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期三</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期四</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\" >星期五</font></div>\r\n </td>\r\n <td width=\"12%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\">星期六</font></div>\r\n </td>\r\n <td width=\"13%\" bgcolor=\"e2fad6\">\r\n <div align=\"center\"><font color=\"#339900\">星期日</font></div>\r\n </td>\r\n</tr>\r\n<tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >一二节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;040111<br>面向对象程序设计-Java<br><br>计算机基础实验室(二)S319<br><font color=#ff0000>随课实验</font><br>2-16周双周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040157<br>数据库原理<br>王晓蓉<br>3303<br><font color=#ff0000>必修</font><br>1-17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;010220<br>信号处理基础<br>曹建玲<br>3101<br><font color=#ff0000>限选</font><br>1-17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >三四节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;050092<br>商务英语交际<br>王庆光 <br>4405<br><font color=#ff0000>限选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040319<br>操作系统<br>刘洪涛<br>3407<br><font color=#ff0000>限选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;041114<br>集中上机(C++/Java)<br><br>计算机基础实验室(三)S302<br><font color=#ff0000>独立实验(实践)</font><br>3周,17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040200<br>计算机网络<br>易芝<br>4309<br><font color=#ff0000>必修</font><br>单周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >五六节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;040200<br>计算机网络<br>易芝<br>4309<br><font color=#ff0000>必修</font><br>1-17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040157<br>数据库原理<br><br>计算软件实验室S331<br><font color=#ff0000>随课实验</font><br>4-15周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040111<br>面向对象程序设计-Java<br>韦庆杰<br>2416<br><font color=#ff0000>限选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040200<br>计算机网络<br><br>迈普重邮网络实验室S318<br><font color=#ff0000>随课实验</font><br>4-6周,8-14周,16-17周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;040157<br>数据库原理<br>王晓蓉<br>3303<br><font color=#ff0000>必修</font><br>单周<br>选课状态:正常<br><font color=336699></font><br>040319<br>操作系统<br>刘洪涛<br>3407<br><font color=#ff0000>限选</font><br>双周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >七八节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;Mooc22<br>团队建设与高效管理(Mooc)<br>彭语良<br>2217<br><font color=#ff0000>任选</font><br>2.9.16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;090113<br>体育(俱乐部)足球俱乐部<br>教师1<br>运动场1<br><font color=#ff0000>必修</font><br>1-16周(单)<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;000022<br>健康教育2<br><br>2117教室<br><font color=#ff0000>随课实验</font><br>4-6周,8-9周<br>选课状态:指导<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >九十节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;040523<br>数学建模<br>数模组A<br>2117<br><font color=#ff0000>限选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;120656<br>时尚设计与生活<br>钱默<br>2402<br><font color=#ff0000>任选</font><br>1-16周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;000022<br>健康教育2<br>夏淑芳<br>2215<br><font color=#ff0000>必修</font><br>1-3周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr><tr><td height=58 width=12% bgcolor=e2fad6><div align=center><font color=#339900 >十一二节</font></div>\r\n </td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;070107<br>形势与政策<br>何宏兵<br>3205<br><font color=#ff0000>必修</font><br>3-6周<br>选课状态:正常<br><font color=336699></font><br></td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td><td height=58 width=11% align=center>&nbsp;</td></tr></table>\r\n<h3>其他实践及实验选课</h3>\r\n<table>\r\n <tr><td>课程号</td><td>课程名称</td><td>课程类别</td><td>选课类别</td><td>选课状态</td></tr>\r\n <tr><td>040040</td><td>认识实习</td>\r\n <td>实践</td><td>独立实验(实践)</td><td>正常</td></tr> \r\n</table>\r\n\r\n\r\n', null, null); COMMIT; -- ---------------------------- -- Table structure for `users` -- ---------------------------- DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `stuID` int(11) NOT NULL, `name` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `sex` enum('m','f') COLLATE utf8_unicode_ci NOT NULL, `age` tinyint(4) NOT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `phone` int(11) NOT NULL, `QQ` int(11) NOT NULL, `password` varchar(60) COLLATE utf8_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `users_email_unique` (`email`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- ---------------------------- -- Records of `users` -- ---------------------------- BEGIN; INSERT INTO `users` VALUES ('1', '2014211547', '王良', 'm', '0', '<EMAIL>', '0', '0', '$2y$10$suTu/OKTOTRJLBEhpg8tVOQ5bQPFpPb5JZtgwYJ2UVBacqIIdbgDS', 'Rl6esfoonDlHpv2hEL0ydjdqQIr3sKXDa4CZwzxsSBzMjekN4c0sMWnPTtxk', '2016-06-01 12:29:01', '2016-06-03 09:22:18'), ('5', '2014211554', '仁增', 'm', '127', '<EMAIL>', '12012412', '1123', '$2y$10$gU4pfGS23krkWJQtswftDuRnq.RkwiYGJ0jGZzznNrUh8FoEgxAiK', '9Go8enZ07p2bKaER2HyodZfLKRGLMiE9FBh3PbDcdmcyIQpy3WsthaojslBa', '2016-06-01 13:03:30', '2016-06-03 06:31:08'), ('6', '2014211558', '秦威', 'f', '11', '<EMAIL>', '130323', '4444', '$2y$10$15ssAhowgW51lQpBEQSCr.cbqR/J6VEu52J64VKw3H/.qp9Icp4DG', 'dsIJGSiN8iBtZWXZFlM2DH0wGoxGbqvQhKyCAzGPcM7SG5sEoBk0Fob4QhTZ', '2016-06-02 11:44:26', '2016-06-04 06:23:14'), ('7', '2014211556', '汤勇', 'm', '0', '<EMAIL>', '0', '0', '$2y$10$NNvKWug58GCPgra2DBj6XOi0w9K83iAhVBa7VHtj0qz1WubeHO4MW', 'KxDdbukt6p0wwUM8RRNjpCElrOJBC5hRzpcdJEk5eE0wDckabocWCjze5GbF', '2016-06-03 06:31:26', '2016-06-04 08:06:52'), ('8', '2014211564', '王垚森', 'm', '0', '<EMAIL>', '0', '0', '$2y$10$z2aZNLK4PFiY6swYTA9JleGpdxvfy2XsdtZnLTt/BQwEFyD5Urm1q', null, '2016-06-04 08:07:17', '2016-06-04 08:07:17'); COMMIT; SET FOREIGN_KEY_CHECKS = 1;
<filename>5.2.3/Database/Constraints/AFW_30_ITEM_CARNT_SPRIN_FK3.sql SET DEFINE OFF; ALTER TABLE AFW_30_ITEM_CARNT_SPRIN ADD ( CONSTRAINT AFW_30_ITEM_CARNT_SPRIN_FK3 FOREIGN KEY (REF_AFW_30_PAGE) REFERENCES AFW_30_PAGE (SEQNC) ENABLE VALIDATE) /
-- clean up DROP PROCEDURE IF EXISTS sp_token_fetch; -- go CREATE PROCEDURE sp_token_fetch ( p_tokenId BIGINT ) this_proc:BEGIN SELECT t.tokenId , t.tokenName , t.publicKey , t.privateKey , t.createdOn , t.updatedOn FROM token t WHERE t.tokenId = p_tokenId ; END
CREATE TABLE programming_languages.kpjsc( Week DATE NOT NULL PRIMARY KEY ,Kotlin INT NOT NULL ,Java INTEGER NOT NULL ,Python INTEGER NOT NULL ,C INTEGER NOT NULL ,JavaScript INTEGER NOT NULL ); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2015-09-13',1,94,10,19,24); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2015-09-20',1,100,10,19,26); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2015-09-27',0,96,10,17,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2015-10-04',1,96,10,20,27); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2015-10-11',1,96,10,18,27); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2015-10-18',0,90,9,14,23); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2015-10-25',1,93,10,16,27); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2015-11-01',1,88,10,17,27); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2015-11-08',1,75,8,12,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2015-11-15',1,88,9,15,27); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2015-11-22',1,90,10,16,29); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2015-11-29',1,86,10,16,26); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2015-12-06',1,89,10,15,28); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2015-12-13',1,91,11,16,30); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2015-12-20',1,84,10,13,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2015-12-27',1,80,9,13,24); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-01-03',1,82,11,15,29); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-01-10',0,78,11,15,26); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-01-17',1,83,11,17,28); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-01-24',1,79,11,16,26); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-01-31',1,85,12,19,31); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-02-07',1,84,11,18,30); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-02-14',1,83,11,16,29); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-02-21',1,83,12,17,31); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-02-28',1,83,12,16,31); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-03-06',1,82,13,16,30); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-03-13',1,84,12,16,31); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-03-20',1,76,11,13,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-03-27',1,82,12,14,30); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-04-03',0,81,12,15,29); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-04-10',1,80,12,14,28); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-04-17',1,82,12,14,30); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-04-24',1,81,12,14,28); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-05-01',1,79,12,13,29); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-05-08',1,77,11,12,28); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-05-15',1,72,11,11,27); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-05-22',1,75,11,11,28); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-05-29',1,76,12,13,28); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-06-05',1,80,12,13,28); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-06-12',1,81,13,14,28); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-06-19',1,80,13,14,28); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-06-26',1,80,13,14,29); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-07-03',1,74,12,14,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-07-10',1,78,13,15,28); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-07-17',1,80,13,16,28); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-07-24',1,79,13,18,27); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-07-31',1,78,13,17,29); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-08-07',1,73,12,17,27); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-08-14',1,68,10,15,21); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-08-21',1,77,13,19,28); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-08-28',1,75,13,19,28); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-09-04',1,68,12,17,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-09-11',1,72,12,17,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-09-18',1,74,13,18,28); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-09-25',1,73,12,17,26); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-10-02',1,65,11,15,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-10-09',1,62,10,13,21); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-10-16',1,67,12,16,26); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-10-23',1,60,11,13,23); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-10-30',1,57,10,12,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-11-06',1,62,11,14,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-11-13',1,62,12,14,26); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-11-20',1,62,13,13,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-11-27',1,60,12,13,24); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-12-04',1,55,11,12,22); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-12-11',1,58,11,12,22); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-12-18',1,56,12,12,24); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2016-12-25',1,53,10,11,21); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-01-01',1,60,12,12,24); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-01-08',1,60,13,13,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-01-15',1,60,13,14,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-01-22',1,56,12,13,21); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-01-29',1,62,14,15,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-02-05',1,61,15,15,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-02-12',1,63,15,15,26); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-02-19',1,63,15,14,26); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-02-26',1,62,15,15,28); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-03-05',1,59,14,13,27); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-03-12',1,60,15,13,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-03-19',1,63,16,14,27); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-03-26',1,59,15,13,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-04-02',1,63,14,13,26); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-04-09',1,58,14,13,24); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-04-16',1,59,14,12,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-04-23',1,55,13,12,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-04-30',1,51,13,10,23); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-05-07',1,54,13,10,24); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-05-14',1,54,14,10,24); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-05-21',1,55,14,10,24); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-05-28',1,52,13,10,22); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-06-04',1,52,14,10,22); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-06-11',1,53,15,10,22); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-06-18',1,51,14,11,22); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-06-25',1,51,14,10,21); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-07-02',1,54,15,12,23); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-07-09',1,54,15,13,23); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-07-16',1,55,14,13,24); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-07-23',1,57,15,14,23); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-07-30',1,56,16,14,23); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-08-06',1,52,16,15,23); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-08-13',1,48,14,13,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-08-20',1,53,15,14,23); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-08-27',1,56,18,16,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-09-03',1,59,18,16,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-09-10',1,61,19,17,26); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-09-17',1,58,18,16,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-09-24',1,52,17,13,22); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-10-01',1,51,16,14,22); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-10-08',1,55,18,15,25); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-10-15',1,39,13,10,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-10-22',1,54,17,14,24); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-10-29',1,53,17,14,23); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-11-05',1,55,18,15,24); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-11-12',1,54,18,14,24); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-11-19',1,52,18,13,24); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-11-26',1,52,17,13,24); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-12-03',1,52,18,13,24); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-12-10',1,51,17,12,24); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-12-17',1,46,17,11,22); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-12-24',1,38,14,9,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2017-12-31',1,44,17,11,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-01-07',1,48,18,12,23); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-01-14',1,47,18,13,22); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-01-21',1,42,16,12,19); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-01-28',1,48,19,14,23); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-02-04',1,48,19,14,23); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-02-11',1,47,19,12,24); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-02-18',1,48,19,13,23); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-02-25',1,42,18,11,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-03-04',1,45,18,12,22); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-03-11',1,47,20,12,23); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-03-18',1,49,20,13,23); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-03-25',1,45,18,10,22); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-04-01',1,46,20,12,23); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-04-08',1,44,18,10,22); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-04-15',1,42,18,10,22); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-04-22',1,42,18,10,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-04-29',1,35,15,8,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-05-06',1,39,17,8,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-05-13',1,38,16,9,19); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-05-20',1,39,17,8,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-05-27',1,39,18,8,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-06-03',1,40,19,8,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-06-10',1,38,18,8,19); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-06-17',1,41,20,8,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-06-24',1,41,19,9,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-07-01',1,41,19,10,19); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-07-08',1,43,19,11,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-07-15',1,44,20,11,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-07-22',1,44,20,11,21); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-07-29',1,43,20,12,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-08-05',1,40,19,12,19); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-08-12',1,35,17,10,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-08-19',1,39,18,11,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-08-26',1,39,19,12,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-09-02',1,39,19,12,19); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-09-09',1,33,17,10,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-09-16',1,37,17,11,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-09-23',1,38,18,11,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-09-30',1,34,17,10,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-10-07',1,36,18,10,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-10-14',1,29,15,8,14); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-10-21',1,33,16,9,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-10-28',1,32,16,9,15); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-11-04',1,21,12,6,10); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-11-11',1,34,17,9,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-11-18',1,35,17,9,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-11-25',1,35,18,10,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-12-02',1,35,17,9,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-12-09',1,33,17,9,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-12-16',1,32,16,9,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-12-23',1,27,14,7,13); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2018-12-30',1,28,15,7,14); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-01-06',1,34,18,9,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-01-13',1,30,17,9,15); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-01-20',1,34,19,10,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-01-27',1,37,20,11,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-02-03',1,36,21,11,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-02-10',1,36,21,10,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-02-17',1,35,20,10,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-02-24',1,33,20,9,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-03-03',1,32,19,8,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-03-10',1,35,20,9,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-03-17',1,31,18,8,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-03-24',1,32,19,9,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-03-31',1,32,19,9,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-04-07',1,32,19,8,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-04-14',1,28,16,7,14); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-04-21',1,31,18,8,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-04-28',1,28,16,7,15); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-05-05',1,32,19,7,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-05-12',1,32,20,7,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-05-19',1,29,19,7,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-05-26',1,31,21,7,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-06-02',1,29,20,7,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-06-09',1,32,23,8,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-06-16',1,34,24,8,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-06-23',1,34,24,9,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-06-30',1,35,24,9,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-07-07',1,36,25,10,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-07-14',1,37,25,10,19); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-07-21',1,38,26,10,19); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-07-28',1,37,26,12,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-08-04',1,35,25,11,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-08-11',1,31,22,10,15); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-08-18',1,39,29,12,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-08-25',1,39,29,14,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-09-01',1,35,26,12,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-09-08',1,38,28,12,19); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-09-15',1,40,29,12,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-09-22',1,39,29,12,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-09-29',1,31,22,10,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-10-06',1,30,22,10,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-10-13',1,36,27,11,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-10-20',1,31,22,10,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-10-27',1,25,19,8,13); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-11-03',1,34,25,10,19); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-11-10',1,34,26,10,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-11-17',1,35,27,11,21); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-11-24',1,36,27,11,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-12-01',1,36,27,10,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-12-08',1,35,27,10,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-12-15',1,35,28,9,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-12-22',1,27,22,7,15); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2019-12-29',1,27,21,7,15); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-01-05',1,35,28,10,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-01-12',1,30,25,9,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-01-19',1,37,32,11,21); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-01-26',1,37,31,11,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-02-02',1,38,31,11,20); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-02-09',1,38,33,12,21); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-02-16',1,38,33,11,21); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-02-23',1,39,33,11,22); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-03-01',1,36,32,11,21); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-03-08',1,32,28,9,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-03-15',1,27,24,8,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-03-22',1,23,23,7,14); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-03-29',1,27,28,8,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-04-05',1,27,29,9,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-04-12',1,29,32,9,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-04-19',1,29,32,9,19); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-04-26',1,28,32,9,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-05-03',1,29,33,8,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-05-10',1,29,33,8,19); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-05-17',1,28,32,8,19); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-05-24',1,27,31,8,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-05-31',1,27,29,8,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-06-07',1,26,29,7,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-06-14',1,25,27,7,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-06-21',1,26,28,7,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-06-28',1,26,28,7,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-07-05',1,27,29,8,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-07-12',1,27,29,8,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-07-19',1,28,30,8,18); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-07-26',1,27,28,8,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-08-02',1,27,29,9,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-08-09',1,28,29,9,16); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-08-16',1,28,29,10,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-08-23',1,29,29,10,17); INSERT INTO programming_languages.kpjsc(Week,Kotlin,Java,Python,C,JavaScript) VALUES ('2020-08-30',1,30,29,10,18);
SET @user = %d; DELETE tracking FROM tracking JOIN users ON users.id = @user AND users.blocked = 0 AND users.deleted = 0 WHERE tracking.id = users.id; DELETE logins FROM logins JOIN users ON users.id = @user AND users.blocked = 0 AND users.deleted = 0 WHERE logins.id = users.id;
START TRANSACTION; ALTER TYPE institution_state RENAME TO institution_state_old; CREATE TYPE institution_state AS ENUM ('pending', 'verified'); ALTER TABLE metabase.institution ALTER COLUMN "State" TYPE institution_state USING 'verified'; DROP TYPE institution_state_old; INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion") VALUES ('20210805142241_UsePendingAndConfirmedAsInstitutionStates', '5.0.9'); COMMIT;
<gh_stars>1-10 /* リスト3-1 SELECT文の例 */ SELECT id, title, published_at FROM book WHERE published_at > '2017-01-01' ORDER BY published LIMIT 10; /* リスト3-2 基本的なSELECT文の例 */ SELECT id FROM b1; /* リスト3-4 title列を指定したSELECT句 */ SELECT title FROM b1; /* リスト3-6 2つの列を指定したSELECT文 */ SELECT id, title FROM b1; /* リスト3-8 不要なカンマが付いたSELECT (Error)*/ SELECT id, title, -- このカンマは不要 FROM b1; /* リスト3-10 列の指定順序を入れ替えたSELECT文 */ SELECT title, id FROM b1; /* リスト3-12 *を指定したSELECT文 */ SELECT * FROM b1; /* リスト3-14 LIMIT句を指定しないSELECT文 */ SELECT id FROM b1; /* リスト3-16 LIMIT句を指定したSELECT文 */ SELECT id FROM b1 LIMIT 3; /* リスト3-18 LIMIT句に1を指定したSELECT文 */ SELECT id FROM b1 LIMIT 1; /* リスト3-20 LIMIT句に大きな値を指定したSELECT文 */ SELECT id FROM b1 LIMIT 99; /* リスト3-22 ORDER BY句を使ったSELECT文 */ SELECT isbn, title, published_at FROM book ORDER BY published_at LIMIT 3; /* リスト3-24 ORDER BY句にDESCを追加 */ SELECT isbn, title, published_at FROM book ORDER BY published_at DESC LIMIT 3; /* リスト3-26 ORDER BY句にDESCを追加 */ SELECT isbn, title, published_at FROM book ORDER BY published_at ASC LIMIT 3; /* リスト3-27 price列で昇順にソートするSELECT文 */ SELECT title, price, published_at FROM book ORDER BY price ASC LIMIT 5; /* リスト3-29 ORDER BY句に複数の列を指定したSELECT文 */ SELECT title, price, published_at FROM book ORDER BY price ASC, published_at DESC LIMIT 5; /* リスト3-33 ORDER BY句が不要なSELECT文の例 */ SELECT AVERAGE(price) FROM book GROUP BY sub_genre_id; /* リスト3-34 WHERE句を使ったSELECT文 */ SELECT isbn, title FROM book WHERE isbn = '9784774183671'; /* リスト3-38 条件に「価格が1,000円より大きい」を指定したSELECT文 */ SELECT isbn, title, price FROM book WHERE price > 1000 ORDER BY price ASC LIMIT 3; /* リスト3-41 WHERE句を取り除いたSELECT文 */ SELECT isbn, title, price FROM book ORDER BY price ASC LIMIT 3; /* リスト3-43 WHERE句に比較演算子 >=を指定 */ SELECT title, price FROM book WHERE price >= 398 ORDER BY price ASC LIMIT 3; /* リスト3-45 WHERE句に比較演算子 <を指定 */ SELECT title, price FROM book WHERE price < 400 ORDER BY price ASC LIMIT 3; /* リスト3-47 WHERE句に比較演算子 <=を指定 */ SELECT title, price FROM book WHERE price <= 400 ORDER BY price ASC LIMIT 3; /* リスト3-49 WHERE句に比較演算子 !=を指定 */ SELECT title, price FROM book WHERE price != 400 ORDER BY price ASC LIMIT 3; /* リスト3-51 AND句を使ったSELECT文 */ SELECT title, sub_genre_id, price FROM book WHERE price > 1000 AND sub_genre_id = '0603' ORDER BY price ASC LIMIT 3; /* リスト3-53 AND句を使ったSELECT文-2 */ SELECT title, sub_genre_id, published_at FROM book WHERE published_at < '2017-01-01' AND sub_genre_id = '0603' ORDER BY published_at ASC LIMIT 3; /* リスト3-55 OR句を使ったSELECT文 */ SELECT title, sub_genre_id, price FROM book WHERE sub_genre_id = '0603' OR sub_genre_id = '0601' ORDER BY price ASC LIMIT 3; /* リスト3-60 OR句を利用して条件を3つ指定 */ SELECT title, sub_genre_id, price FROM book WHERE sub_genre_id = '0603' OR sub_genre_id = '0601' OR sub_genre_id = '0501' ORDER BY price ASC LIMIT 3; /* リスト3-61 AND句とOR句の組み合わせ */ SELECT title, sub_genre_id, price FROM book WHERE sub_genre_id = '0603' OR sub_genre_id = '0601' AND price = 2000 ORDER BY published_at DESC LIMIT 3; /* リスト3-66 括弧を利用して優先順位を指定したWHERE句 */ SELECT title, sub_genre_id, price FROM book WHERE (sub_genre_id = '0603' OR sub_genre_id = '0601') AND price = 2000 ORDER BY published_at DESC LIMIT 3; /* リスト3-68 サブジャンルIDごとに価格を指定した WHERE句 */ SELECT title, sub_genre_id, price FROM book WHERE sub_genre_id = '0603' AND price = 2180 OR sub_genre_id = '0601' AND price = 2000 ORDER BY published_at DESC LIMIT 3; /* リスト3-71 ある範囲をAND句で指定したSELECT文 */ SELECT title, price, published_at FROM book WHERE price >= 2500 AND price <= 3000 ORDER BY published_at DESC LIMIT 3; /* リスト3-72 ある範囲をBETWEEN句で指定したSELECT文 */ SELECT title, price, published_at FROM book WHERE price BETWEEN 2500 AND 3000 ORDER BY published_at DESC LIMIT 3; /* リスト3-74 AND句とBETWEEN句の組み合わせ */ SELECT title, sub_genre_id, price FROM book WHERE price BETWEEN 2500 AND 3000 AND sub_genre_id = '0603' ORDER BY published_at DESC LIMIT 3; /* リスト3-76 複数のBETWEEN句 */ SELECT title, price, published_at FROM book WHERE price BETWEEN 2500 AND 3000 AND published_at BETWEEN '2017-05-01' AND '2017-05-31' ORDER BY published_at ASC LIMIT 3; /* リスト3-78 LIMIT句を指定したSELECT文(おさらい)*/ SELECT title, published_at FROM book ORDER BY published_at ASC LIMIT 4; /* リスト3-80 OFFSET句を使ったSELECT文 */ SELECT title, published_at FROM book ORDER BY published_at ASC LIMIT 4 OFFSET 2; /* リスト3-82 OFFSET 1 を指定したSELECT文 */ SELECT title, published_at FROM book ORDER BY published_at ASC LIMIT 4 OFFSET 1; /* リスト3-84 1ページ目の取得 */ SELECT * FROM b1 ORDER BY id ASC LIMIT 2; /* リスト3-86 OFFSET句を使わない2ページ目の取得 */ SELECT * FROM b1 WHERE id > 2 ORDER BY id ASC LIMIT 2;
<reponame>ChiefInnovator/Developing-Microsoft-Azure-Solutions CREATE TABLE [dbo].[BoardUser] ( [UserId] INT NOT NULL, [Email] NVARCHAR(1024) NOT NULL, [Name] NVARCHAR(255) NOT NULL, [LastWorkout] DATETIME NOT NULL, CONSTRAINT [PK_BoardUser] PRIMARY KEY CLUSTERED ([UserId]), )
DROP DATABASE IF EXISTS hotel_db; CREATE DATABASE hotel_db; USE hotel_db;
-- file:alter_table.sql ln:1923 expect:true DROP TABLE unlogged1
-- file:arrays.sql ln:551 expect:true select array_to_string(array[1,2,3,4,NULL,6], NULL)
<filename>packages/acs-kernel/sql/postgresql/upgrade/upgrade-5.6.0d2-5.6.0d3.sql create function inline_0 () returns integer as ' begin perform acs_attribute__create_attribute ( ''acs_object'', ''modifying_user'', ''integer'', ''Modifying User'', null, null, null, null, 1, 1, null, ''type_specific'', ''f'' ); perform acs_attribute__create_attribute ( ''user'', ''username'', ''string'', ''#acs-kernel.Username#'', ''#acs-kernel.Usernames#'', null, null, null, 0, 1, null, ''type_specific'', ''f'' ); perform acs_attribute__create_attribute ( ''user'', ''screen_name'', ''string'', ''#acs-kernel.Screen_Name#'', ''#acs-kernel.Screen_Names#'', null, null, null, 0, 1, null, ''type_specific'', ''f'' ); return 0; end;' language 'plpgsql'; select inline_0 (); drop function inline_0 ();
<gh_stars>1-10 INSERT INTO sso.oauth2_code_table("client_id", "csrf", "provider", "target", "ttl", "pkce", "redirect_uri", "state", "scope") VALUES ($1, $2, $3, $4, sso._ttl_timestamptz($5), $6, $7, $8, $9) RETURNING "csrf"
<reponame>austin48/etudes-melete<filename>components/src/sql/oracle/melete28m1_upgrade.sql CREATE TABLE melete_bookmark ( BOOKMARK_ID NUMBER(11) DEFAULT '0' NOT NULL, SECTION_ID NUMBER(11) DEFAULT '0' NOT NULL, USER_ID VARCHAR2(99) DEFAULT NULL, SITE_ID VARCHAR2(99) DEFAULT NULL, TITLE VARCHAR2(99) DEFAULT '' NOT NULL, NOTES CLOB, LAST_VISITED NUMBER(1) DEFAULT NULL, PRIMARY KEY (BOOKMARK_ID), CONSTRAINT FK_MB_MS FOREIGN KEY (SECTION_ID) REFERENCES melete_section(SECTION_ID) );
<gh_stars>0 create or replace package ut_coverage authid current_user is /* utPLSQL - Version 3 Copyright 2016 - 2021 utPLSQL Project Licensed under the Apache License, Version 2.0 (the "License"): you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ subtype t_coverage_run_id is raw(32) not null; -- total run coverage information subtype t_object_name is varchar2(257); subtype t_line_no is binary_integer; type t_line_executions is record( executions binary_integer ,partcove binary_integer ,no_blocks binary_integer ,covered_blocks binary_integer); -- line coverage information indexed by line no. type tt_lines is table of t_line_executions index by t_line_no; --unit coverage information record type t_unit_coverage is record( owner varchar2(128) ,name varchar2(128) ,covered_lines binary_integer := 0 ,uncovered_lines binary_integer := 0 ,partcovered_lines binary_integer := 0 ,total_blocks binary_integer default null ,covered_blocks binary_integer default null ,uncovered_blocks binary_integer default null ,total_lines binary_integer := 0 ,executions number(38, 0) := 0 ,lines tt_lines); -- coverage information indexed by full object name (schema.object) type tt_program_units is table of t_unit_coverage index by t_object_name; -- total run coverage information type t_coverage is record( covered_lines binary_integer := 0 ,uncovered_lines binary_integer := 0 ,partcovered_lines binary_integer := 0 ,total_lines binary_integer default null ,total_blocks binary_integer default null ,covered_blocks binary_integer default null ,uncovered_blocks binary_integer default null ,executions number(38, 0) := 0 ,objects tt_program_units); procedure set_develop_mode(a_develop_mode in boolean); function is_develop_mode return boolean; procedure coverage_start(a_coverage_run_id t_coverage_run_id); procedure coverage_stop; procedure coverage_pause; procedure coverage_resume; function get_coverage_data(a_coverage_options ut_coverage_options) return t_coverage; function get_coverage_run_id return raw; end; /
ALTER TABLE `users` ADD `user_builtin` tinyint(1) unsigned NOT NULL default 0; UPDATE `users` set user_builtin=1 WHERE user_name IN ('Sysop', 'MindTouch Support', 'Anonymous');
-- database: presto; groups: distinct; tables: region SELECT DISTINCT r_name FROM region
------------------------------ -- -- Create standard_np_outcome_drilldown table for use in joins to get all cases for a natural product (NP)/outcome pair count -- Also, rolls up to the NP preferred term -- -- LTS COMPUTING LLC ------------------------------ -- set search_path = faers; SET search_path = scratch_rich; -- create indexes to speed up this SQL drop index if exists standard_case_np_ix_1; create index standard_case_np_ix_1 on standard_case_np(primaryid); drop index if exists standard_case_np_ix_2; create index standard_case_np_ix_2 on standard_case_np(isr); drop index if exists standard_case_np_ix_3; create index standard_case_np_ix_3 on standard_case_np(standard_concept_id); /* -- will already be done for the faers outcomes when drug data is processed drop index if exists faers.standard_case_outcome_ix_1; create index faers.standard_case_outcome_ix_1 on faers.standard_case_outcome(primaryid); drop index if exists faers.standard_case_outcome_ix_2; create index faers.standard_case_outcome_ix_2 on faers.standard_case_outcome(isr); drop index if exists faers.standard_case_outcome_ix_3; create index faers.standard_case_outcome_ix_3 on faers.standard_case_outcome(outcome_concept_id); */ drop index if exists standard_np_outcome_count_ix_1; create index standard_np_outcome_count_ix_1 on standard_np_outcome_count(drug_concept_id); drop index if exists standard_np_outcome_count_ix_2; create index standard_np_outcome_count_ix_2 on standard_np_outcome_count(outcome_concept_id); drop table if exists standard_np_outcome_drilldown; create table standard_np_outcome_drilldown as select concept.concept_class_id np_class_id, a.drug_concept_id, a.outcome_concept_id, a.snomed_outcome_concept_id, b.primaryid, null as isr, null as caseid from standard_np_outcome_count a inner join standard_case_np b on a.drug_concept_id = b.standard_concept_id inner join staging_vocabulary.concept on concept.concept_id = a.drug_concept_id inner join faers.standard_case_outcome c on a.outcome_concept_id = c.outcome_concept_id and b.primaryid = c.primaryid union select concept.concept_class_id np_class_id, a.drug_concept_id, a.outcome_concept_id, a.snomed_outcome_concept_id, null as primary_id, b.isr, null as caseid from standard_np_outcome_count a inner join standard_case_np b on a.drug_concept_id = b.standard_concept_id inner join staging_vocabulary.concept on concept.concept_id = a.drug_concept_id inner join faers.standard_case_outcome c on a.outcome_concept_id = c.outcome_concept_id and b.isr = c.isr; -- populate the caseids that have a primaryid update standard_np_outcome_drilldown a set caseid = b.caseid from faers.unique_all_case b where a.primaryid = b.primaryid; -- populate the caseids that have an isr update standard_np_outcome_drilldown a set caseid = b.caseid from faers.unique_all_case b where a.isr = b.isr and a.caseid is null;
<reponame>antontarasenko/Social-Media-Queries<filename>gdelt/summary.sql<gh_stars>1000+ -- Summary select count(*) count_rows, min(SQLDATE) first_date, max(SQLDATE) last_date, count(unique(Actor1Name)) as count_unique_Actor1Name, count(unique(Actor2Name)) as count_unique_Actor2Name from [gdelt-bq:full.events]
DELETE FROM waffle_flag_amo WHERE name = 'accept-webapps'; DELETE FROM waffle_flag_mkt WHERE name = 'accept-webapps';
-- @testpoint: opengauss关键字deallocate(非保留),作为同义词对象名,部分测试点合理报错 --前置条件 drop table if exists deallocate_test; create table deallocate_test(id int,name varchar(10)); --关键字不带引号-成功 drop synonym if exists deallocate; create synonym deallocate for deallocate_test; insert into deallocate values (1,'ada'),(2, 'bob'); update deallocate set deallocate.name='cici' where deallocate.id=2; select * from deallocate; drop synonym if exists deallocate; --关键字带双引号-成功 drop synonym if exists "deallocate"; create synonym "deallocate" for deallocate_test; drop synonym if exists "deallocate"; --关键字带单引号-合理报错 drop synonym if exists 'deallocate'; create synonym 'deallocate' for deallocate_test; insert into 'deallocate' values (1,'ada'),(2, 'bob'); update 'deallocate' set 'deallocate'.name='cici' where 'deallocate'.id=2; select * from 'deallocate'; --关键字带反引号-合理报错 drop synonym if exists `deallocate`; create synonym `deallocate` for deallocate_test; insert into `deallocate` values (1,'ada'),(2, 'bob'); update `deallocate` set `deallocate`.name='cici' where `deallocate`.id=2; select * from `deallocate`; drop table if exists deallocate_test;
-- -- Name: unaccent; Type: EXTENSION; Schema: -; Owner: -- CREATE EXTENSION IF NOT EXISTS unaccent WITH SCHEMA public; -- -- Name: EXTENSION unaccent; Type: COMMENT; Schema: -; Owner: -- COMMENT ON EXTENSION unaccent IS 'text search dictionary that removes accents'; -- -- Name: uuid-ossp; Type: EXTENSION; Schema: -; Owner: -- CREATE EXTENSION IF NOT EXISTS "uuid-ossp" WITH SCHEMA public; -- -- Name: EXTENSION "uuid-ossp"; Type: COMMENT; Schema: -; Owner: -- COMMENT ON EXTENSION "uuid-ossp" IS 'generate universally unique identifiers (UUIDs)'; -- Name: orders_payment_type_enum; Type: TYPE; Schema: public; Owner: postgres
<reponame>vtojeiroa/Ejercicios-Variados-Bootcamp CREATE DATABASE notas; use notas; create table lista_notas( id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT, texto VARCHAR(65500) ); Select * from lista_notas;
" INSERT INTO KHACHHANG(Ma, Ten, GioiTinh, SoCMT, SoDienThoai, Email) values (@Ma varchar(10), @Ten nvarchar(40), @GioiTinh bit, @SoCMT varchar(15), @SoDienThoai varchar(15), @Email varchar(100))"
create function add_self_closure() returns trigger as $add_self_closure$ begin insert into comments_closure (parent_id, child_id, depth) values (new.id, new.id, 0); if (new.parent_id is not null) then insert into comments_closure (parent_id, child_id, depth) select p.parent_id, c.child_id, p.depth+c.depth+1 from comments_closure p, comments_closure c where p.child_id=new.parent_id and c.parent_id=new.id; end if; return null; end; $add_self_closure$ language plpgsql; create trigger aa_self_closure after insert on comments for each row execute procedure add_self_closure();
select * from bill_info declare name bill_info.item_name%type; price bill_info.item_price%type; cursor info is select item_name,item_price from bill_info where item_price>10; begin open info; dbms_output.put_line('AMT '||'ITEM NAME'); dbms_output.put_line(''); loop fetch info into name,price; if(info%found)then dbms_output.put_line(price||' '||name); else dbms_output.put_line(' '); dbms_output.put_line('total no. of rows effected :-'||info%rowcount); exit; end if; end loop; close info; end;
-- Deploy schemas/status_public/procedures/user_achieved to pg -- requires: schemas/status_public/schema -- requires: schemas/status_public/procedures/steps_required -- requires: schemas/status_public/tables/level_requirements/table -- requires: schemas/status_public/tables/user_achievements/table BEGIN; CREATE FUNCTION status_public.user_achieved( vlevel text, vrole_id uuid DEFAULT jwt_public.current_user_id() ) returns boolean as $$ DECLARE c int; BEGIN SELECT COUNT(*) FROM status_public.steps_required( vlevel, vrole_id ) INTO c; RETURN c <= 0; END; $$ LANGUAGE 'plpgsql' STABLE; COMMIT;
-- count the number of unique documents containing the word "law" or containing the word "legal" (If a document contains both law and legal, it should only be counted once) Select Count(distinct docid) from frequency where term in ('law', 'legal');
CREATE TABLE "rules_tbl" ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE, `selIntface` TEXT, `txtBufferLimit` TEXT, `txtBandwidth` TEXT, `selDelayDistribution` TEXT, `txtDelay` TEXT, `txtDelayJitter` TEXT, `txtDelayCorrelation` TEXT, `txtReorder` TEXT, `txtReorderCorrelation` TEXT, `txtGap` TEXT, `txtLoss` TEXT, `txtLossCorrelation` TEXT, `txtDup` TEXT, `txtDupCorrelation` TEXT, `txtCurp` TEXT, `txtCurptionCorrelation` TEXT, `portSrc` TEXT, `portDst` TEXT, `macSrc` TEXT, `macDest` TEXT, `flowlabelTOS` TEXT, `transport` TEXT, `transportPrtc` TEXT, `ipSrc` TEXT, `ipSrcSub` TEXT, `ipDest` TEXT, `ipDestSub` TEXT, `ipVer` TEXT, `ruleStatus` TEXT ); /* */ INSERT INTO `rules_tbl` (id,selIntface,txtBufferLimit,txtBandwidth,selDelayDistribution, txtDelay,txtDelayJitter,txtDelayCorrelation,txtReorder,txtReorderCorrelation, txtGap,txtLoss,txtLossCorrelation,txtDup,txtDupCorrelation,txtCurp, txtCurptionCorrelation,portSrc,portDst,macSrc,macDest,flowlabelTOS, transport,transportPrtc,ipSrc,ipSrcSub,ipDest,ipDestSub,ipVer,ruleStatus) VALUES (1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); /* */ DELETE FROM "sqlite_sequence"; /* */ INSERT INTO "sqlite_sequence" VALUES('rules_tbl',2);
alter table organizations add default_approval int go delete from phrases where label = 'org.when_requests_entered' delete from phrases where label = 'org.requests_automatically_approved' delete from phrases where label = 'org.requests_manually_approved' delete from phrases where label = 'request.report_abuse' INSERT INTO phrases ([id], [language_id], [label], [phrase]) SELECT COUNT(*) + 1, 1, 'org.when_requests_entered', 'When prayer requests are entered:' from phrases INSERT INTO phrases ([id], [language_id], [label], [phrase]) SELECT COUNT(*) + 1, 1, 'org.requests_automatically_approved', 'They are automatically approved and the community moderates' from phrases INSERT INTO phrases ([id], [language_id], [label], [phrase]) SELECT COUNT(*) + 1, 1, 'org.requests_manually_approved', 'They must be approved manually by a moderator' from phrases INSERT INTO phrases ([id], [language_id], [label], [phrase]) SELECT COUNT(*) + 1, 1, 'request.report_abuse', 'Report Abuse' from phrases update organizations set default_approval=0 INSERT INTO [dbo].[updates] VALUES ( 39, GETDATE() )
DROP TABLE IF EXISTS job_info;
<reponame>klebsonm/SGQ-ETE -- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: testep1.mysql.dbaas.com.br -- Generation Time: 07-Maio-2018 às 15:43 -- Versão do servidor: 5.6.35-81.0-log -- PHP Version: 5.6.30-0+deb8u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `testep1` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `disciplina` -- CREATE TABLE `disciplina` ( `disciplina_id` int(11) NOT NULL, `disciplina_codigo` varchar(11) NOT NULL, `disciplina_nome` varchar(70) NOT NULL, `disciplina_nome_abreviacao` varchar(15) NOT NULL, `disciplina_create_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `disciplina_update_atdisciplina_update_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `disciplina` -- INSERT INTO `disciplina` (`disciplina_id`, `disciplina_codigo`, `disciplina_nome`, `disciplina_nome_abreviacao`, `disciplina_create_at`, `disciplina_update_atdisciplina_update_at`) VALUES (1, 'PI', 'PROJETO INTEGRADOR 1', 'PI', '2018-03-26 13:49:41', NULL), (2, 'PII', 'PROJETO INTEGRADOR 2', 'PII', '2018-03-26 13:56:42', NULL), (3, 'POO', 'Programação Orientada a Objetos', 'POO', '2018-04-04 16:34:05', NULL), (4, 'RDC', 'REDES DE COMPUTADORES', 'RC', '2018-04-04 16:39:02', NULL), (5, 'IG', 'INGLÊS TÉCNICO', 'IG', '2018-04-04 20:26:21', NULL), (6, 'SOL', 'SISTEMAS OPERACIONAIS LIVRES', 'SOL', '2018-04-04 20:30:19', NULL), (7, 'WEB20171', 'Desenvolvimento WEB ', 'DWB', '2018-05-02 14:41:02', NULL); -- -------------------------------------------------------- -- -- Estrutura da tabela `disciplina_assunto` -- CREATE TABLE `disciplina_assunto` ( `disciplina_assunto_id_disciplina` int(11) NOT NULL, `disciplina_assunto_id` int(11) NOT NULL, `disciplina_assunto_nome` varchar(50) NOT NULL, `disciplina_assunto_create_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `disciplina_assunto_update_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `disciplina_assunto` -- INSERT INTO `disciplina_assunto` (`disciplina_assunto_id_disciplina`, `disciplina_assunto_id`, `disciplina_assunto_nome`, `disciplina_assunto_create_at`, `disciplina_assunto_update_at`) VALUES (1, 1, 'Outro', '2018-03-27 13:57:24', NULL), (2, 2, 'Outro', '2018-03-27 13:57:24', NULL), (1, 4, 'Modelos de elaboração de projetos ', '2018-04-04 16:29:20', NULL), (1, 5, 'Elaboração de projetos ', '2018-04-04 16:29:20', NULL), (1, 6, 'Etapas de execução do projeto ', '2018-04-04 16:29:42', NULL), (1, 7, 'Finalizar de projetos', '2018-04-04 16:29:42', NULL), (2, 8, 'Modelos de elaboração de projetos ', '2018-04-04 16:32:22', NULL), (2, 9, 'Elaboração de projetos ', '2018-04-04 16:32:22', NULL), (2, 10, 'Etapas de execução do projeto ', '2018-04-04 16:32:50', NULL), (2, 11, 'Finalização de um projeto ', '2018-04-04 16:32:50', NULL), (3, 12, 'Introdução à orientação a objetos', '2018-04-04 16:34:56', NULL), (3, 13, 'Classes e objetos', '2018-04-04 16:34:56', NULL), (3, 14, 'Atributos e métodos', '2018-04-04 16:37:03', NULL), (3, 15, 'Abstração e encapsulamento', '2018-04-04 16:37:03', NULL), (3, 16, 'Interfaces e classes abstratas', '2018-04-04 16:37:03', NULL), (3, 17, 'Relacionamento entre objetos', '2018-04-04 16:37:03', NULL), (3, 18, 'Herança, dynamic binding e polimorfismo', '2018-04-04 16:37:03', NULL), (3, 19, 'Construtores', '2018-04-04 16:37:03', NULL), (3, 20, 'Listas', '2018-04-04 16:37:03', NULL), (3, 21, 'Recursividade', '2018-04-04 16:37:03', NULL), (3, 22, 'Métodos de ordenação', '2018-04-04 16:37:03', NULL), (4, 23, ' Camadas do modelo Internet', '2018-04-04 16:41:30', NULL), (4, 24, ' Protocolos e Serviços', '2018-04-04 16:41:30', NULL), (4, 25, 'Características do Protocolo IP', '2018-04-04 16:41:30', NULL), (4, 26, 'Endereçamento IP', '2018-04-04 16:41:30', NULL), (4, 27, 'Protocolos', '2018-04-04 16:41:30', NULL), (4, 28, 'Serviços da Internet', '2018-04-04 16:41:30', NULL), (4, 29, 'E-mail e seus principais protocolos', '2018-04-04 16:41:30', NULL), (4, 30, 'Transferir arquivos', '2018-04-04 16:41:30', NULL), (4, 31, 'Funcionamento da Web', '2018-04-04 16:41:30', NULL), (4, 32, 'Gerenciamento de Redes', '2018-04-04 16:41:30', NULL), (4, 33, 'Segurança de Redes', '2018-04-04 16:41:30', NULL), (5, 34, 'Outro', '2018-04-04 20:28:41', NULL), (5, 35, 'Skimming', '2018-04-04 20:28:41', NULL), (5, 36, 'Scanning', '2018-04-04 20:28:41', NULL), (5, 37, 'Brainstorming', '2018-04-04 20:28:41', NULL), (5, 38, 'Referência Contextual (pronomes)', '2018-04-04 20:28:41', NULL), (5, 39, 'Verbos Irregulares', '2018-04-04 20:28:41', NULL), (5, 40, 'Terminação ED', '2018-04-04 20:28:41', NULL), (5, 41, 'Tradução', '2018-04-04 20:28:41', NULL), (5, 42, '<NAME>', '2018-04-04 20:28:41', NULL), (6, 43, 'Instalação do Sistema Operacional', '2018-04-04 20:34:04', NULL), (6, 44, 'Componentes da arquitetura Linux', '2018-04-04 20:34:04', NULL), (6, 45, 'Manipular o siste ma de arquivos ext4', '2018-04-04 20:34:04', NULL), (6, 46, 'Gerenciamento de usuários do sistema', '2018-04-04 20:34:04', NULL), (6, 47, 'Gerenciador Avançado de Pacotes (DPKG)', '2018-04-04 20:34:04', NULL), (6, 48, 'Criação de Shell Script', '2018-04-04 20:34:04', NULL), (6, 49, 'Conceitos de Sistemas de Arquivos Unix', '2018-04-04 20:34:04', NULL), (6, 50, 'Arquivos', '2018-04-04 20:34:04', NULL), (6, 51, 'O Sistema Cron', '2018-04-04 20:34:04', NULL), (6, 52, 'Monitoramento da Rede', '2018-04-04 20:34:04', NULL), (7, 53, 'Outro', '2018-05-02 14:41:12', NULL), (7, 54, 'Introdução ', '2018-05-02 14:41:21', NULL), (7, 55, 'Conceitos Básicos HTML', '2018-05-02 14:41:37', NULL), (7, 56, 'Principais Tags', '2018-05-02 14:41:48', NULL); -- -------------------------------------------------------- -- -- Estrutura da tabela `disciplina_assunto_questao` -- CREATE TABLE `disciplina_assunto_questao` ( `disciplina_assunto_questao_id_assunto` int(11) NOT NULL, `disciplina_assunto_questao_id` int(11) NOT NULL, `disciplina_assunto_questao_nome` varchar(50) NOT NULL, `disciplina_assunto_questao_pergunta` varchar(500) NOT NULL, `disciplina_assunto_questao_mutipla_escolha` smallint(1) NOT NULL, `disciplina_assunto_questao_creat_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `disciplina_assunto_questao_update_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `disciplina_assunto_questao` -- INSERT INTO `disciplina_assunto_questao` (`disciplina_assunto_questao_id_assunto`, `disciplina_assunto_questao_id`, `disciplina_assunto_questao_nome`, `disciplina_assunto_questao_pergunta`, `disciplina_assunto_questao_mutipla_escolha`, `disciplina_assunto_questao_creat_at`, `disciplina_assunto_questao_update_at`) VALUES (23, 5, 'Camadas Modelo OSI', 'Em quantas camadas se divide o modelo de referência OSI?', 1, '2018-04-04 16:46:08', NULL), (23, 6, 'O QUE É REDES DE COMPUTADORES', 'O que é uma rede de computadores?', 0, '2018-04-04 16:46:08', NULL), (23, 7, ' LAN, <NAME>', 'Quanto à dispersão geográfica como são classificadas as redes de computadores?', 0, '2018-04-04 16:46:08', NULL), (23, 8, 'CAMDAS DO MODELO OSI', 'Explique cada camada do modelo osi.', 0, '2018-05-02 14:38:50', NULL), (23, 9, 'Camadas que pertence ao TCP/IP', 'Qual das camadas abaixo não faz parte do modelo OSI?', 1, '2018-05-02 14:39:52', NULL), (56, 10, 'Niveis de títulos ', 'Em quantos nivéis de título existe no html por padrão, e qual tag é utilizada para fazer um título de 1(primeiro) nível.', 1, '2018-05-02 14:43:25', NULL), (55, 11, 'Importancia identação', 'Qual a principal função da identação e cometarios?', 0, '2018-05-02 16:11:48', NULL); -- -------------------------------------------------------- -- -- Estrutura da tabela `disciplina_assunto_questao_mutipla_escolha` -- CREATE TABLE `disciplina_assunto_questao_mutipla_escolha` ( `disciplina_assunto_questao_id` int(11) NOT NULL, `disciplina_assunto_questao_mutipla_escolha_id` int(11) NOT NULL, `disciplina_assunto_questao_mutipla_escolha_text` varchar(250) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `disciplina_assunto_questao_mutipla_escolha` -- INSERT INTO `disciplina_assunto_questao_mutipla_escolha` (`disciplina_assunto_questao_id`, `disciplina_assunto_questao_mutipla_escolha_id`, `disciplina_assunto_questao_mutipla_escolha_text`) VALUES (5, 5, 'APENAS 3'), (5, 6, 'APENAS 4'), (5, 7, 'APENAS 5'), (5, 8, 'APENAS 7'), (5, 9, 'APENAS 6'), (9, 10, 'APLICAÇÃO'), (9, 11, 'COMUNICAÇÃO '), (9, 12, 'FÍSICA'), (9, 13, 'REDE'), (9, 14, 'TRASPORTE'), (9, 15, 'ENLACE'), (9, 16, 'APRESENTAÇÃO'), (9, 17, 'SESSÃO '); -- -------------------------------------------------------- -- -- Estrutura da tabela `prova_questoes_selecionadas` -- CREATE TABLE `prova_questoes_selecionadas` ( `prova_questoes_selecionadas_user_id` int(11) NOT NULL, `prova_questoes_selecionadas_disciplina_assunto_questao_id` int(11) NOT NULL, `prova_questoes_selecionadas_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `prova_questoes_selecionadas` -- INSERT INTO `prova_questoes_selecionadas` (`prova_questoes_selecionadas_user_id`, `prova_questoes_selecionadas_disciplina_assunto_questao_id`, `prova_questoes_selecionadas_id`) VALUES (3, 6, 31), (3, 9, 32), (3, 5, 33); -- -------------------------------------------------------- -- -- Estrutura da tabela `user` -- CREATE TABLE `user` ( `user_id` int(11) NOT NULL, `user_matricula` varchar(11) NOT NULL, `user_nome` varchar(60) NOT NULL, `user_email` varchar(100) DEFAULT NULL, `user_senha` varchar(100) NOT NULL, `user_role` smallint(1) NOT NULL, `user_create_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `user_update_at` datetime DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `user` -- INSERT INTO `user` (`user_id`, `user_matricula`, `user_nome`, `user_email`, `user_senha`, `user_role`, `user_create_at`, `user_update_at`) VALUES (1, '20181234', 'Teste Nome', '<EMAIL>', 'b81763710aa4f3e844f296bbbd8958bb', 1, '2018-02-28 21:19:19', '2018-04-01 21:45:55'), (3, '20184321', '<NAME>', '<EMAIL>', 'a7227caec2597153ae5a84d3c775e790', 2, '2018-04-01 21:35:47', '2018-04-01 21:43:53'); -- -- Indexes for dumped tables -- -- -- Indexes for table `disciplina` -- ALTER TABLE `disciplina` ADD PRIMARY KEY (`disciplina_id`), ADD UNIQUE KEY `disciplina_codigo` (`disciplina_codigo`); -- -- Indexes for table `disciplina_assunto` -- ALTER TABLE `disciplina_assunto` ADD PRIMARY KEY (`disciplina_assunto_id`), ADD KEY `disciplina_assunto_id_disciplina` (`disciplina_assunto_id_disciplina`); -- -- Indexes for table `disciplina_assunto_questao` -- ALTER TABLE `disciplina_assunto_questao` ADD PRIMARY KEY (`disciplina_assunto_questao_id`), ADD KEY `disciplina_assunto_questao_id_assunto` (`disciplina_assunto_questao_id_assunto`); -- -- Indexes for table `disciplina_assunto_questao_mutipla_escolha` -- ALTER TABLE `disciplina_assunto_questao_mutipla_escolha` ADD PRIMARY KEY (`disciplina_assunto_questao_mutipla_escolha_id`), ADD KEY `disciplina_assunto_questao_id` (`disciplina_assunto_questao_id`); -- -- Indexes for table `prova_questoes_selecionadas` -- ALTER TABLE `prova_questoes_selecionadas` ADD PRIMARY KEY (`prova_questoes_selecionadas_id`), ADD KEY `prova_questoes_selecionadas_user_id` (`prova_questoes_selecionadas_user_id`), ADD KEY `prova_questoes_selecionadas_disciplina_assunto_questao_id` (`prova_questoes_selecionadas_disciplina_assunto_questao_id`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`user_id`,`user_matricula`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `disciplina` -- ALTER TABLE `disciplina` MODIFY `disciplina_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `disciplina_assunto` -- ALTER TABLE `disciplina_assunto` MODIFY `disciplina_assunto_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=59; -- -- AUTO_INCREMENT for table `disciplina_assunto_questao` -- ALTER TABLE `disciplina_assunto_questao` MODIFY `disciplina_assunto_questao_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `disciplina_assunto_questao_mutipla_escolha` -- ALTER TABLE `disciplina_assunto_questao_mutipla_escolha` MODIFY `disciplina_assunto_questao_mutipla_escolha_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- AUTO_INCREMENT for table `prova_questoes_selecionadas` -- ALTER TABLE `prova_questoes_selecionadas` MODIFY `prova_questoes_selecionadas_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- Constraints for dumped tables -- -- -- Limitadores para a tabela `disciplina_assunto` -- ALTER TABLE `disciplina_assunto` ADD CONSTRAINT `disciplina_assunto_ibfk_1` FOREIGN KEY (`disciplina_assunto_id_disciplina`) REFERENCES `disciplina` (`disciplina_id`) ON DELETE CASCADE; -- -- Limitadores para a tabela `disciplina_assunto_questao` -- ALTER TABLE `disciplina_assunto_questao` ADD CONSTRAINT `disciplina_assunto_questao_ibfk_1` FOREIGN KEY (`disciplina_assunto_questao_id_assunto`) REFERENCES `disciplina_assunto` (`disciplina_assunto_id`) ON DELETE CASCADE; -- -- Limitadores para a tabela `disciplina_assunto_questao_mutipla_escolha` -- ALTER TABLE `disciplina_assunto_questao_mutipla_escolha` ADD CONSTRAINT `disciplina_assunto_questao_mutipla_escolha_ibfk_1` FOREIGN KEY (`disciplina_assunto_questao_id`) REFERENCES `disciplina_assunto_questao` (`disciplina_assunto_questao_id`) ON DELETE CASCADE; -- -- Limitadores para a tabela `prova_questoes_selecionadas` -- ALTER TABLE `prova_questoes_selecionadas` ADD CONSTRAINT `prova_questoes_selecionadas_ibfk_1` FOREIGN KEY (`prova_questoes_selecionadas_user_id`) REFERENCES `user` (`user_id`), ADD CONSTRAINT `prova_questoes_selecionadas_ibfk_2` FOREIGN KEY (`prova_questoes_selecionadas_disciplina_assunto_questao_id`) REFERENCES `disciplina_assunto_questao` (`disciplina_assunto_questao_id`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
# # Table structure for table 'acct_param_table' # CREATE TABLE acct_param_table ( `param_index` int(11) default NULL, `max_down_speed` int(11) default NULL, `max_up_speed` int(11) default NULL, `max_user_conn` int(11) default NULL, `max_conn_per_ip` int(11) default NULL, `max_session_time` int(11) default NULL, `max_down_file_num` int(11) default NULL, `max_up_file_num` int(11) default NULL, `max_session_down` int(11) default NULL, `max_session_up` int(11) default NULL, `max_down_file_size` int(11) default NULL, `max_up_file_size` int(11) default NULL, `disk_quotas` int(11) default NULL, `disk_quota_unit` varchar(4) default NULL, `ratios_type` int(11) default NULL, `download_ratios` int(11) default NULL, `upload_ratios` int(11) default NULL, `starting_credit` int(11) default NULL, `ftp_cmd_speed` int(11) default NULL, `allowed_login_ip` varchar(255) default NULL, `denied_login_ip` varchar(255) default NULL, `allowed_login_time` varchar(255) default NULL, `deny_ftp_commands` varchar(128) default NULL, `files_allow_access` varchar(255) default NULL, `files_deny_access` varchar(255) default NULL, `send_socket_buffer` int(11) default NULL, `recv_socket_buffer` int(11) default NULL ); # # Table structure for table 'acct_table' # CREATE TABLE acct_table ( `host_id` int(11) default NULL, `host_port` int(11) default NULL, `username` varchar(65) default NULL, `password` varchar(65) default NULL, `no_password` int(11) default NULL, `home_path` varchar(255) default NULL, `home_perm` varchar(10) default NULL, `groupname` varchar(65) default NULL, `expire_time` varchar(24) default NULL, `hide_pub_path` int(11) default NULL, `hide_grp_path` int(11) default NULL, `enable_quotas` int(11) default NULL, `enable_ratios` int(11) default NULL, `freeze_user` int(11) default NULL, `bypass_svr_max` int(11) default NULL, `virtual_path_indexes` varchar(255) default NULL, `param_index` int(11) default NULL ); # # Table structure for table 'virtual_path_table' # CREATE TABLE virtual_path_table ( `virtual_path_index` int(11) default NULL, `virtual_path` varchar(255) default NULL, `permission` varchar(10) default NULL, `real_path` varchar(255) default NULL ); # # Table structure for table 'transfer_log_table' # CREATE TABLE transfer_log_table ( `finish_time` varchar(24) default NULL, `direction` int(11) default NULL, `file_name` varchar(255) default NULL, `file_path` varchar(255) default NULL, `transfer_bytes` double default NULL, `starting_offset` double default NULL, `transfer_time` float default NULL, `transfer_status` int(11) default NULL, `username` varchar(65) default NULL, `client_ip` varchar(65) default NULL, `server_ip` varchar(65) default NULL, `server_port` int(11) default NULL );
-- file:alter_table.sql ln:186 expect:true SELECT typname FROM pg_type WHERE oid = '_tmp_array[]'::regtype
<gh_stars>0 -- /packages/intranet-exchange-rate/sql/postgresql/intranet-exchange-rate-create.sql -- -- ]project-open[ Exchange Rate Module -- Copyright (c) 2003 - 2009 ]project-open[ -- -- All rights reserved. Please check -- http://www.project-open.com/license/ for details. -- @author <EMAIL> ---------------------------------------------------- -- Exchange rates of currencies with respect to the US dollar create table im_exchange_rates ( day date constraint im_exchange_rates_nn not null, currency char(3) constraint im_exchange_rates_currency_fk references currency_codes, rate numeric(12,6), manual_p char(1) constraint im_exchange_rates_manual_ck check (manual_p in ('t','f')), constraint im_exchange_rates_pk primary key (day,currency) ); -- load data from 1999-01-01 until 2005-06-30 \i intranet-exchange-rate-data.sql -- Fill "holes" (=missing exchange rate entries) -- with the values from the last manually entered -- rates. This procedure is "idempotent", so it -- can be executed at any time. create or replace function im_exchange_rate_fill_holes (varchar, date, date) returns integer as $body$ DECLARE p_currency alias for $1; p_start_date alias for $2; p_end_date alias for $3; v_rate numeric; row2 RECORD; exists integer; BEGIN RAISE NOTICE 'im_exchange_rate_fill_holes: cur=%, start=%, end=%', p_currency, p_start_date, p_end_date; -- Loop through all dates and check if there -- is a hole (no entry for a date) FOR row2 IN select im_day_enumerator as day from im_day_enumerator(p_start_date, p_end_date) LEFT OUTER JOIN ( select * from im_exchange_rates where currency = p_currency ) ex on (im_day_enumerator = ex.day) where ex.rate is null LOOP -- RAISE NOTICE 'im_exchange_rate_fill_holes: day=%', row2.day; -- get the latest manually entered exchange rate select rate into v_rate from im_exchange_rates where day = ( select max(day) from im_exchange_rates where day < row2.day and currency = p_currency and manual_p = 't' ) and currency = p_currency; -- RAISE NOTICE 'im_exchange_rate_fill_holes: rate=%', v_rate; -- use the latest exchange rate for the next few years... select count(*) into exists from im_exchange_rates where day=row2.day and currency=p_currency; IF exists > 0 THEN update im_exchange_rates set rate = v_rate, manual_p = 'f' where day = row2.day and currency = p_currency; ELSE RAISE NOTICE 'im_exchange_rate_fill_holes: day=%, cur=%, rate=%, x=%',row2.day, p_currency, v_rate, exists; insert into im_exchange_rates ( day, rate, currency, manual_p ) values ( row2.day, v_rate, p_currency, 'f' ); END IF; END LOOP; return 0; end;$body$ language 'plpgsql'; -- Compatibility version of fill_holes: -- Fills holes for 2013 - 2020. create or replace function im_exchange_rate_fill_holes (varchar) returns integer as $body$ DECLARE p_currency alias for $1; v_max integer; v_start_date date; v_end_date date; BEGIN RAISE NOTICE 'im_exchange_rate_fill_holes: cur=%', p_currency; v_max := 365 * 7; v_start_date := to_date('2013-01-01', 'YYYY-MM-DD'); v_end_date = v_start_date + v_max; RETURN im_exchange_rate_fill_holes (p_currency, v_start_date, v_end_date); end;$body$ language 'plpgsql'; -- Most generic variant of fill_holes: -- Fill for all currencies in the last 5 years create or replace function im_exchange_rate_fill_holes () returns integer as $body$ DECLARE row RECORD; BEGIN FOR row IN select iso from currency_codes where supported_p = 't' LOOP perform im_exchange_rate_fill_holes(row.iso); END LOOP; return 0; end;$body$ language 'plpgsql'; -- Deletes all entries around a new entry. -- This function is useful after adding a new entriy -- to delete all those entries that need to be updated. create or replace function im_exchange_rate_invalidate_entries (date, char(3)) returns integer as $body$ DECLARE p_currency_date alias for $1; p_currency alias for $2; v_prev_entry_date date; v_next_entry_date date; v_max integer; v_start_date date; BEGIN v_start_date := to_date('2010-01-01', 'YYYY-MM-DD'); v_max := 365 * 7; -- Determine the last manual entry BEFORE the insert date select max(day) into v_prev_entry_date from im_exchange_rates where day < p_currency_date and manual_p = 't' and currency = p_currency; IF v_prev_entry_date is NULL THEN v_prev_entry_date := v_start_date; END IF; -- Determine the next manual manual entry AFTER the insert date select min(day) into v_next_entry_date from im_exchange_rates where day > p_currency_date and manual_p = 't' and currency = p_currency; IF v_next_entry_date is NULL THEN v_next_entry_date := v_start_date + v_max; END IF; -- Delete entries between last and next delete from im_exchange_rates where currency = p_currency and day <= v_next_entry_date and day >= v_prev_entry_date and manual_p = 'f'; return 0; end;$body$ language 'plpgsql'; -- select im_exchange_rate_invalidate_entries ('2005-07-02'::date, 'EUR'); -- Delete all automatically created entries in the relevant period. create or replace function im_exchange_rate_invalidate_entries(char(3)) returns integer as $body$ DECLARE p_currency alias for $1; v_max integer; v_start_date date; v_end_date date; BEGIN RAISE NOTICE 'im_exchange_rate_invalidate_entries: cur=%', p_currency; -- Delete entries since 2010. delete from im_exchange_rates where currency = p_currency and day >= '2010-01-01'::date and manual_p = 'f'; return 0; end;$body$ language 'plpgsql'; -- Most generic variant of fill_holes: -- Fill for all currencies in the last 5 years create or replace function im_exchange_rate_invalidate_entries () returns integer as $body$ DECLARE row RECORD; BEGIN FOR row IN select iso from currency_codes where supported_p = 't' LOOP PERFORM im_exchange_rate_invalidate_entries(row.iso); END LOOP; return 0; end;$body$ language 'plpgsql'; ------------------------------------------------------------ -- Access Functions ------------------------------------------------------------ -- shortcut function to calculate the exchange rate for a -- specific day. This function is relatively slow and should -- NOT be used within a SQL query loop. -- Instead, it is useful as a shortcut to convert a single -- currency item. -- create or replace function im_exchange_rate (date, char(3), char(3)) returns float as ' DECLARE p_day alias for $1; p_from_cur alias for $2; p_to_cur alias for $3; v_from_rate float; v_to_rate float; BEGIN -- Exchange rate of From-Currency to Dollar select rate into v_from_rate from im_exchange_rates where currency = p_from_cur and day = p_day; -- Exchange rate of Dollar to To-Currency select rate into v_to_rate from im_exchange_rates where currency = p_to_cur and day = p_day; return v_from_rate / v_to_rate; end;' language 'plpgsql'; -- select im_exchange_rate(to_date('2005-07-01','YYYY-MM-DD'), 'EUR', 'USD'); ------------------------------------------------------------ -- Portlets and Menus ------------------------------------------------------------ -- select im_component_plugin__del_module('intranet-exchange-rate'); -- select im_menu__del_module('intranet-exchange-rate'); create or replace function inline_0 () returns integer as ' declare -- Menu IDs v_menu integer; v_admin_menu integer; -- Groups v_accounting integer; v_senman integer; v_admins integer; BEGIN select group_id into v_admins from groups where group_name = ''P/O Admins''; select group_id into v_senman from groups where group_name = ''Senior Managers''; select group_id into v_accounting from groups where group_name = ''Accounting''; select menu_id into v_admin_menu from im_menus where label=''admin''; v_menu := im_menu__new ( null, -- p_menu_id ''im_menu'', -- object_type now(), -- creation_date null, -- creation_user null, -- creation_ip null, -- context_id ''intranet-exchange-rate'', -- package_name ''admin_exchange_rates'', -- label ''Exchange Rates'', -- name ''/intranet-exchange-rate/index'', -- url 80, -- sort_order v_admin_menu, -- parent_menu_id null -- p_visible_tcl ); PERFORM acs_permission__grant_permission(v_menu, v_admins, ''read''); PERFORM acs_permission__grant_permission(v_menu, v_senman, ''read''); PERFORM acs_permission__grant_permission(v_menu, v_accounting, ''read''); return 0; end;' language 'plpgsql'; select inline_0 (); drop function inline_0 (); create or replace function inline_0 () returns integer as ' declare -- Menu IDs v_menu integer; v_finance_menu integer; -- Groups v_accounting integer; v_senman integer; v_admins integer; BEGIN select group_id into v_admins from groups where group_name = ''P/O Admins''; select group_id into v_senman from groups where group_name = ''Senior Managers''; select group_id into v_accounting from groups where group_name = ''Accounting''; select menu_id into v_finance_menu from im_menus where label=''finance''; v_menu := im_menu__new ( null, -- p_menu_id ''im_menu'', -- object_type now(), -- creation_date null, -- creation_user null, -- creation_ip null, -- context_id ''intranet-exchange-rate'', -- package_name ''finance_exchange_rates'', -- label ''Exchange Rates'', -- name ''/intranet-exchange-rate/index'', -- url 80, -- sort_order v_finance_menu, -- parent_menu_id null -- p_visible_tcl ); PERFORM acs_permission__grant_permission(v_menu, v_admins, ''read''); PERFORM acs_permission__grant_permission(v_menu, v_senman, ''read''); PERFORM acs_permission__grant_permission(v_menu, v_accounting, ''read''); return 0; end;' language 'plpgsql'; select inline_0 (); drop function inline_0 ();
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 09, 2016 at 10:17 AM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `diocese-survey` -- -- -------------------------------------------------------- -- -- Table structure for table `agriculture` -- CREATE TABLE IF NOT EXISTS `agriculture` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('Agriculture') CHARACTER SET utf8 DEFAULT 'Agriculture', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Type` enum('paddy','betelnut','cocunut','rubber','spice','fruit','flower','fish','others') CHARACTER SET utf8 DEFAULT 'paddy', `Other` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `FamilyID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyID` (`FamilyID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `agriculture` -- INSERT INTO `agriculture` (`ID`, `ClassName`, `LastEdited`, `Created`, `Type`, `Other`, `FamilyID`) VALUES (1, 'Agriculture', '2016-01-21 07:41:42', '2016-01-21 07:38:26', 'paddy', NULL, 6), (2, 'Agriculture', '2016-01-21 07:38:51', '2016-01-21 07:38:51', 'others', 'coffee', 5); -- -------------------------------------------------------- -- -- Table structure for table `appliance` -- CREATE TABLE IF NOT EXISTS `appliance` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('Appliance') CHARACTER SET utf8 DEFAULT 'Appliance', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Computer` tinyint(1) unsigned NOT NULL DEFAULT '0', `WashingMachine` tinyint(1) unsigned NOT NULL DEFAULT '0', `AirConditioner` tinyint(1) unsigned NOT NULL DEFAULT '0', `MicrowaveOven` tinyint(1) unsigned NOT NULL DEFAULT '0', `CookingGas` tinyint(1) unsigned NOT NULL DEFAULT '0', `Fridge` tinyint(1) unsigned NOT NULL DEFAULT '0', `Others` tinyint(1) unsigned NOT NULL DEFAULT '0', `Specify` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `FamilyID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyID` (`FamilyID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `appliance` -- INSERT INTO `appliance` (`ID`, `ClassName`, `LastEdited`, `Created`, `Computer`, `WashingMachine`, `AirConditioner`, `MicrowaveOven`, `CookingGas`, `Fridge`, `Others`, `Specify`, `FamilyID`) VALUES (1, 'Appliance', '2016-02-03 13:26:10', '2016-02-03 13:25:05', 1, 1, 0, 0, 0, 0, 0, 'game cosole', 5), (2, 'Appliance', '2016-02-25 15:44:04', '2016-02-25 15:39:19', 1, 1, 1, 0, 0, 0, 0, NULL, 6); -- -------------------------------------------------------- -- -- Table structure for table `business` -- CREATE TABLE IF NOT EXISTS `business` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('Business') CHARACTER SET utf8 DEFAULT 'Business', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Type` enum('streetvendor','unduvandi','pettikada','shop','trade','industry','selfemployed','others') CHARACTER SET utf8 DEFAULT 'streetvendor', `Other` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `FamilyID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyID` (`FamilyID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `business` -- INSERT INTO `business` (`ID`, `ClassName`, `LastEdited`, `Created`, `Type`, `Other`, `FamilyID`) VALUES (1, 'Business', '2016-01-21 08:05:03', '2016-01-21 08:05:03', 'trade', NULL, 1), (2, 'Business', '2016-02-25 15:09:32', '2016-02-24 12:11:24', 'others', 'no idea', 6); -- -------------------------------------------------------- -- -- Table structure for table `catholicmagazine` -- CREATE TABLE IF NOT EXISTS `catholicmagazine` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('CatholicMagazine') CHARACTER SET utf8 DEFAULT 'CatholicMagazine', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Jeevadeepthi` tinyint(1) unsigned NOT NULL DEFAULT '0', `Jeevanaadam` tinyint(1) unsigned NOT NULL DEFAULT '0', `Christain` tinyint(1) unsigned NOT NULL DEFAULT '0', `PreshithaKeralam` tinyint(1) unsigned NOT NULL DEFAULT '0', `Shalom` tinyint(1) unsigned NOT NULL DEFAULT '0', `Cherupushpam` tinyint(1) unsigned NOT NULL DEFAULT '0', `Others` tinyint(1) unsigned NOT NULL DEFAULT '0', `Specify` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `FamilyID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyID` (`FamilyID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `catholicmagazine` -- INSERT INTO `catholicmagazine` (`ID`, `ClassName`, `LastEdited`, `Created`, `Jeevadeepthi`, `Jeevanaadam`, `Christain`, `PreshithaKeralam`, `Shalom`, `Cherupushpam`, `Others`, `Specify`, `FamilyID`) VALUES (1, 'CatholicMagazine', '2016-02-04 13:09:15', '2016-02-04 13:09:15', 1, 0, 0, 0, 0, 1, 1, 'Not Reachable', 5), (2, 'CatholicMagazine', '2016-02-26 05:16:53', '2016-02-26 05:16:53', 1, 0, 1, 0, 0, 0, 1, 'Mangalam, Manoroma', 1); -- -------------------------------------------------------- -- -- Table structure for table `communitygroup` -- CREATE TABLE IF NOT EXISTS `communitygroup` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('CommunityGroup') CHARACTER SET utf8 DEFAULT 'CommunityGroup', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Title` varchar(255) CHARACTER SET utf8 DEFAULT NULL, PRIMARY KEY (`ID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ; -- -- Dumping data for table `communitygroup` -- INSERT INTO `communitygroup` (`ID`, `ClassName`, `LastEdited`, `Created`, `Title`) VALUES (1, 'CommunityGroup', '2016-01-20 15:03:03', NULL, 'Parish Council Member'), (2, 'CommunityGroup', '2016-01-20 15:03:02', NULL, 'Family Unit Member'), (4, 'CommunityGroup', '2016-01-20 15:03:02', NULL, 'Party Member'), (5, 'CommunityGroup', '2016-01-20 15:03:02', NULL, 'Trade Union Member'), (6, 'CommunityGroup', '2016-01-20 15:03:02', NULL, 'SHG Member'), (7, 'CommunityGroup', '2016-01-20 15:03:02', NULL, 'Catechism Teacher'), (8, 'CommunityGroup', '2016-01-20 15:03:02', NULL, 'Education Committe'), (9, 'CommunityGroup', '2016-01-20 15:03:02', NULL, '<NAME>'), (10, 'CommunityGroup', '2016-01-20 15:03:02', NULL, 'KLCA'), (11, 'CommunityGroup', '2016-01-20 15:03:02', NULL, 'CSS'), (12, 'CommunityGroup', '2016-01-20 15:03:02', NULL, 'KLCWA'), (13, 'CommunityGroup', '2016-01-20 15:03:02', NULL, 'KCYM'), (14, 'CommunityGroup', '2016-01-20 15:03:02', NULL, 'CLC'), (15, 'CommunityGroup', '2016-01-20 15:03:02', NULL, 'UFrame'), (16, 'CommunityGroup', '2016-01-20 15:03:01', NULL, 'Jesus Youth'), (17, 'CommunityGroup', '2016-01-20 15:03:01', NULL, 'Prayer Group'), (18, 'CommunityGroup', '2016-01-20 15:03:01', NULL, 'Choir Member'), (19, 'CommunityGroup', '2016-01-20 15:03:01', NULL, 'Altar Boy/Girl'), (20, 'CommunityGroup', '2016-01-20 15:03:01', NULL, 'KCSL'); -- -------------------------------------------------------- -- -- Table structure for table `communitygroup_familymembers` -- CREATE TABLE IF NOT EXISTS `communitygroup_familymembers` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `CommunityGroupID` int(11) NOT NULL DEFAULT '0', `FamilyMemberID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `CommunityGroupID` (`CommunityGroupID`), KEY `FamilyMemberID` (`FamilyMemberID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -- Dumping data for table `communitygroup_familymembers` -- INSERT INTO `communitygroup_familymembers` (`ID`, `CommunityGroupID`, `FamilyMemberID`) VALUES (1, 20, 1), (2, 18, 1), (3, 5, 1); -- -------------------------------------------------------- -- -- Table structure for table `contact` -- CREATE TABLE IF NOT EXISTS `contact` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('Contact') CHARACTER SET utf8 DEFAULT 'Contact', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Name` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `Email` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `Mobile` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `FamilyID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyID` (`FamilyID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; -- -- Dumping data for table `contact` -- INSERT INTO `contact` (`ID`, `ClassName`, `LastEdited`, `Created`, `Name`, `Email`, `Mobile`, `FamilyID`) VALUES (1, 'Contact', '2016-01-14 11:39:20', '2016-01-14 11:39:20', '<NAME>', NULL, '69858458', 1), (2, 'Contact', '2016-01-14 11:43:45', '2016-01-14 11:43:29', 'Tambi', NULL, '9898976486', 2), (3, 'Contact', '2016-01-14 11:44:11', '2016-01-14 11:44:11', 'Grace', NULL, '0484-2588874', 3), (4, 'Contact', '2016-02-06 10:34:50', '2016-02-06 10:34:50', '<NAME>', NULL, '985265824', 5); -- -------------------------------------------------------- -- -- Table structure for table `education` -- CREATE TABLE IF NOT EXISTS `education` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('Education') CHARACTER SET utf8 DEFAULT 'Education', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Code` varchar(4) CHARACTER SET utf8 DEFAULT NULL, `Status` varchar(2) CHARACTER SET utf8 DEFAULT NULL, `FamilyMemberID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyMemberID` (`FamilyMemberID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ; -- -- Dumping data for table `education` -- INSERT INTO `education` (`ID`, `ClassName`, `LastEdited`, `Created`, `Code`, `Status`, `FamilyMemberID`) VALUES (1, 'Education', '2016-01-20 15:03:46', '2016-01-20 15:03:46', 'pri', 'p', 1), (2, 'Education', '2016-01-20 15:03:58', '2016-01-20 15:03:58', 'deg', 'p', 1), (3, 'Education', '2016-01-27 11:14:46', '2016-01-27 11:14:46', 'pri', 'p', 3), (4, 'Education', '2016-01-27 12:21:53', '2016-01-27 12:21:53', 'pri', 'p', 2), (5, 'Education', '2016-01-27 12:22:11', '2016-01-27 12:22:06', 'iti', 'p', 0), (6, 'Education', '2016-01-27 12:22:18', '2016-01-27 12:22:18', 'deg', 'p', 2); -- -------------------------------------------------------- -- -- Table structure for table `family` -- CREATE TABLE IF NOT EXISTS `family` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('Family') DEFAULT 'Family', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Name` varchar(255) DEFAULT NULL, `Address` varchar(255) DEFAULT NULL, `Pincode` varchar(10) DEFAULT NULL, `HouseNo` varchar(255) DEFAULT NULL, `ParishID` int(11) NOT NULL DEFAULT '0', `IsPanchayat` tinyint(1) unsigned NOT NULL DEFAULT '0', `IsMunicipality` tinyint(1) unsigned NOT NULL DEFAULT '0', `IsCorporation` tinyint(1) unsigned NOT NULL DEFAULT '0', `BlockNo` int(11) NOT NULL DEFAULT '0', `UnitNo` int(11) NOT NULL DEFAULT '0', `FamilyNo` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `ParishID` (`ParishID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ; -- -- Dumping data for table `family` -- INSERT INTO `family` (`ID`, `ClassName`, `LastEdited`, `Created`, `Name`, `Address`, `Pincode`, `HouseNo`, `ParishID`, `IsPanchayat`, `IsMunicipality`, `IsCorporation`, `BlockNo`, `UnitNo`, `FamilyNo`) VALUES (1, 'Family', '2016-02-24 13:46:57', '2016-01-05 15:22:04', 'Mulleparambil House', 'Edakochi', '682010', '14/145-16', 10, 0, 0, 1, 3, 21, 27), (2, 'Family', '2016-01-06 08:18:44', '2016-01-06 08:05:43', 'Mulleparambil House', 'Near Edakochi Bus Stand, Edakochi, Kochi,', '682010', NULL, 10, 0, 0, 1, 0, 0, 0), (3, 'Family', '2016-01-06 08:12:37', '2016-01-06 08:12:37', 'Mulleparambil House', 'Ed<NAME>', '682010', NULL, 10, 1, 0, 0, 0, 0, 0), (4, 'Family', '2016-01-14 12:28:38', '2016-01-14 12:26:54', 'Kothkath', '<NAME>', '68210', NULL, 10, 0, 0, 0, 2, 12, 2), (5, 'Family', '2016-01-14 12:30:53', '2016-01-14 12:30:44', 'Kalapurakal House', 'Ed<NAME>', '682010', NULL, 10, 0, 0, 1, 3, 18, 22), (6, 'Family', '2016-01-20 15:27:17', '2016-01-14 12:32:28', 'Vattatara House', 'Edakochi, Kochi', '682010', '22/14/19855', 14, 0, 0, 0, 2, 3, 12); -- -------------------------------------------------------- -- -- Table structure for table `familymember` -- CREATE TABLE IF NOT EXISTS `familymember` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('FamilyMember') DEFAULT 'FamilyMember', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Name` varchar(255) DEFAULT NULL, `DateOfBirth` date DEFAULT NULL, `Gender` varchar(2) DEFAULT NULL, `MartialStatus` varchar(2) DEFAULT NULL, `FamilyID` int(11) NOT NULL DEFAULT '0', `HoldsPassport` tinyint(1) unsigned NOT NULL DEFAULT '0', `HoldsBankAccount` tinyint(1) unsigned NOT NULL DEFAULT '0', `HoldsDrivingLicence` tinyint(1) unsigned NOT NULL DEFAULT '0', `BloodGroup` enum('O +','O -','A +','A -','B +','B -','AB +','AB -','NA') DEFAULT 'O +', `Relation` enum('Guardian','Father','Mother','Son','Daughter','Wife','Husband','Brother','Sister','Inlaw','Grandfather','Grandmother','Grandson','Granddaughter') DEFAULT 'Guardian', `ParishID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyID` (`FamilyID`), KEY `ClassName` (`ClassName`), KEY `ParishID` (`ParishID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; -- -- Dumping data for table `familymember` -- INSERT INTO `familymember` (`ID`, `ClassName`, `LastEdited`, `Created`, `Name`, `DateOfBirth`, `Gender`, `MartialStatus`, `FamilyID`, `HoldsPassport`, `HoldsBankAccount`, `HoldsDrivingLicence`, `BloodGroup`, `Relation`, `ParishID`) VALUES (1, 'FamilyMember', '2016-01-27 11:10:08', '2016-01-06 07:19:01', '<NAME>', '1982-03-29', 'm', 'm', 1, 1, 1, 1, 'O +', 'Son', 10), (2, 'FamilyMember', '2016-01-27 11:11:56', '2016-01-06 09:08:06', 'Preethy P P', '1988-06-30', 'f', 'm', 1, 0, 0, 0, 'O +', 'Inlaw', 10), (3, 'FamilyMember', '2016-01-27 11:13:02', '2016-01-19 08:27:43', 'Johnson', '1982-02-19', 'm', 'm', 6, 1, 0, 0, 'O +', 'Guardian', 14); -- -------------------------------------------------------- -- -- Table structure for table `file` -- CREATE TABLE IF NOT EXISTS `file` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('File','Folder','Image','Image_Cached') DEFAULT 'File', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Name` varchar(255) DEFAULT NULL, `Title` varchar(255) DEFAULT NULL, `Filename` mediumtext, `Content` mediumtext, `ShowInSearch` tinyint(1) unsigned NOT NULL DEFAULT '1', `ParentID` int(11) NOT NULL DEFAULT '0', `OwnerID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `ParentID` (`ParentID`), KEY `OwnerID` (`OwnerID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; -- -- Dumping data for table `file` -- INSERT INTO `file` (`ID`, `ClassName`, `LastEdited`, `Created`, `Name`, `Title`, `Filename`, `Content`, `ShowInSearch`, `ParentID`, `OwnerID`) VALUES (1, 'Folder', '2016-01-04 22:01:34', '2016-01-04 22:01:34', 'Uploads', 'Uploads', 'assets/Uploads/', NULL, 1, 0, 0), (2, 'Image', '2016-01-04 22:01:34', '2016-01-04 22:01:34', 'SilverStripeLogo.png', 'SilverStripeLogo.png', 'assets/Uploads/SilverStripeLogo.png', NULL, 1, 1, 0); -- -------------------------------------------------------- -- -- Table structure for table `group` -- CREATE TABLE IF NOT EXISTS `group` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('Group') DEFAULT 'Group', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Title` varchar(255) DEFAULT NULL, `Description` mediumtext, `Code` varchar(255) DEFAULT NULL, `Locked` tinyint(1) unsigned NOT NULL DEFAULT '0', `Sort` int(11) NOT NULL DEFAULT '0', `HtmlEditorConfig` mediumtext, `ParentID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `ParentID` (`ParentID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; -- -- Dumping data for table `group` -- INSERT INTO `group` (`ID`, `ClassName`, `LastEdited`, `Created`, `Title`, `Description`, `Code`, `Locked`, `Sort`, `HtmlEditorConfig`, `ParentID`) VALUES (1, 'Group', '2016-01-04 17:31:33', '2016-01-04 17:31:33', 'Content Authors', NULL, 'content-authors', 0, 1, NULL, 0), (2, 'Group', '2016-01-04 17:31:33', '2016-01-04 17:31:33', 'Administrators', NULL, 'administrators', 0, 0, NULL, 0), (3, 'Group', '2016-01-27 07:16:34', '2016-01-25 07:29:11', 'Managers', NULL, 'manager', 0, 0, NULL, 0), (4, 'Group', '2016-01-25 15:15:05', '2016-01-25 15:14:23', 'Priests', NULL, 'priests', 0, 0, NULL, 0), (5, 'Group', '2016-02-22 04:44:48', '2016-02-22 04:43:33', 'Assistants', NULL, 'assistants', 0, 0, NULL, 0); -- -------------------------------------------------------- -- -- Table structure for table `group_members` -- CREATE TABLE IF NOT EXISTS `group_members` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `GroupID` int(11) NOT NULL DEFAULT '0', `MemberID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `GroupID` (`GroupID`), KEY `MemberID` (`MemberID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ; -- -- Dumping data for table `group_members` -- INSERT INTO `group_members` (`ID`, `GroupID`, `MemberID`) VALUES (1, 2, 1), (2, 3, 2), (3, 4, 3), (4, 5, 6), (5, 5, 5), (6, 5, 7), (7, 5, 8), (8, 5, 9), (9, 5, 10); -- -------------------------------------------------------- -- -- Table structure for table `group_roles` -- CREATE TABLE IF NOT EXISTS `group_roles` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `GroupID` int(11) NOT NULL DEFAULT '0', `PermissionRoleID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `GroupID` (`GroupID`), KEY `PermissionRoleID` (`PermissionRoleID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `health` -- CREATE TABLE IF NOT EXISTS `health` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('Health') CHARACTER SET utf8 DEFAULT 'Health', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Blind` tinyint(1) unsigned NOT NULL DEFAULT '0', `Deaf` tinyint(1) unsigned NOT NULL DEFAULT '0', `Dumb` tinyint(1) unsigned NOT NULL DEFAULT '0', `OtherPhsicalDisability` tinyint(1) unsigned NOT NULL DEFAULT '0', `LearningDisability` tinyint(1) unsigned NOT NULL DEFAULT '0', `MentalDisability` tinyint(1) unsigned NOT NULL DEFAULT '0', `HearthDisease` tinyint(1) unsigned NOT NULL DEFAULT '0', `Diabetes` tinyint(1) unsigned NOT NULL DEFAULT '0', `Cancer` tinyint(1) unsigned NOT NULL DEFAULT '0', `BloodPressure` tinyint(1) unsigned NOT NULL DEFAULT '0', `OtherDisease` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `OccupationalDisease` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `Alcoholic` tinyint(1) unsigned NOT NULL DEFAULT '0', `OtherHealthInfo` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `FamilyMemberID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyMemberID` (`FamilyMemberID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -- Dumping data for table `health` -- INSERT INTO `health` (`ID`, `ClassName`, `LastEdited`, `Created`, `Blind`, `Deaf`, `Dumb`, `OtherPhsicalDisability`, `LearningDisability`, `MentalDisability`, `HearthDisease`, `Diabetes`, `Cancer`, `BloodPressure`, `OtherDisease`, `OccupationalDisease`, `Alcoholic`, `OtherHealthInfo`, `FamilyMemberID`) VALUES (1, 'Health', '2016-02-12 13:22:19', '2016-02-12 13:21:40', 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, NULL, NULL, 0, NULL, 1); -- -------------------------------------------------------- -- -- Table structure for table `house` -- CREATE TABLE IF NOT EXISTS `house` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('House') CHARACTER SET utf8 DEFAULT 'House', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Status` enum('own','rent','loan') CHARACTER SET utf8 DEFAULT 'own', `Amount` int(11) NOT NULL DEFAULT '0', `HoldsRationCard` tinyint(1) unsigned NOT NULL DEFAULT '0', `CardType` varchar(4) CHARACTER SET utf8 DEFAULT NULL, `Type` enum('hut','ollapera','sheet','oddapera','concrete','2level','multilevel','flat') CHARACTER SET utf8 DEFAULT 'hut', `BuildYear` int(11) NOT NULL DEFAULT '0', `FamilyID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyID` (`FamilyID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `house` -- INSERT INTO `house` (`ID`, `ClassName`, `LastEdited`, `Created`, `Status`, `Amount`, `HoldsRationCard`, `CardType`, `Type`, `BuildYear`, `FamilyID`) VALUES (1, 'House', '2016-01-19 10:36:32', '2016-01-19 10:36:32', 'own', 0, 1, 'apl', 'oddapera', 1950, 1), (2, 'House', '2016-02-17 16:23:50', '2016-02-17 16:23:50', 'rent', 10000, 1, 'apl', 'concrete', 2000, 6); -- -------------------------------------------------------- -- -- Table structure for table `job` -- CREATE TABLE IF NOT EXISTS `job` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('Job') CHARACTER SET utf8 DEFAULT 'Job', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Title` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `CompanyName` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `Type` enum('govt','semi-govt','private','self','homemaker') CHARACTER SET utf8 DEFAULT 'govt', `Location` varchar(3) CHARACTER SET utf8 DEFAULT NULL, `Pension` tinyint(1) unsigned NOT NULL DEFAULT '0', `SavingScheme` tinyint(1) unsigned NOT NULL DEFAULT '0', `ESI` tinyint(1) unsigned NOT NULL DEFAULT '0', `PF` tinyint(1) unsigned NOT NULL DEFAULT '0', `Salary` varchar(2) CHARACTER SET utf8 DEFAULT NULL, `FamilyMemberID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyMemberID` (`FamilyMemberID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -- Dumping data for table `job` -- INSERT INTO `job` (`ID`, `ClassName`, `LastEdited`, `Created`, `Title`, `CompanyName`, `Type`, `Location`, `Pension`, `SavingScheme`, `ESI`, `PF`, `Salary`, `FamilyMemberID`) VALUES (1, 'Job', '2016-01-20 15:04:53', '2016-01-20 15:04:53', 'Web Developer', 'lastGrade', 'self', 'in', 0, 0, 0, 0, 'lo', 1); -- -------------------------------------------------------- -- -- Table structure for table `land` -- CREATE TABLE IF NOT EXISTS `land` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('Land') CHARACTER SET utf8 DEFAULT 'Land', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `HoldsLand` tinyint(1) unsigned NOT NULL DEFAULT '0', `Area` enum('nil','1-3cent','4-8cent','7-15cent','16-50cent','50-100cent','>1acre') CHARACTER SET utf8 DEFAULT 'nil', `InCent` int(11) NOT NULL DEFAULT '0', `FamilyID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyID` (`FamilyID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `land` -- INSERT INTO `land` (`ID`, `ClassName`, `LastEdited`, `Created`, `HoldsLand`, `Area`, `InCent`, `FamilyID`) VALUES (1, 'Land', '2016-01-19 13:04:56', '2016-01-19 13:03:18', 1, '16-50cent', 50, 1), (2, 'Land', '2016-02-17 16:24:15', '2016-02-17 16:24:15', 0, 'nil', 0, 6); -- -------------------------------------------------------- -- -- Table structure for table `loan` -- CREATE TABLE IF NOT EXISTS `loan` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('Loan') CHARACTER SET utf8 DEFAULT 'Loan', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `HasLoan` tinyint(1) unsigned NOT NULL DEFAULT '0', `Amount` int(11) NOT NULL DEFAULT '0', `FromWhere` enum('bank','private-bank','person') CHARACTER SET utf8 DEFAULT 'bank', `Reason` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `FamilyID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyID` (`FamilyID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -- Dumping data for table `loan` -- INSERT INTO `loan` (`ID`, `ClassName`, `LastEdited`, `Created`, `HasLoan`, `Amount`, `FromWhere`, `Reason`, `FamilyID`) VALUES (1, 'Loan', '2016-02-06 10:31:55', '2016-02-06 10:31:55', 1, 20000, 'bank', 'business', 5), (2, 'Loan', '2016-02-26 05:38:37', '2016-02-26 05:38:37', 1, 20000, 'bank', 'edication', 1), (3, 'Loan', '2016-02-26 05:38:37', '2016-02-26 05:38:37', 1, 20000, 'bank', 'edication', 1); -- -------------------------------------------------------- -- -- Table structure for table `loginattempt` -- CREATE TABLE IF NOT EXISTS `loginattempt` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('LoginAttempt') DEFAULT 'LoginAttempt', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Email` varchar(255) DEFAULT NULL, `Status` enum('Success','Failure') DEFAULT 'Success', `IP` varchar(255) DEFAULT NULL, `MemberID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `MemberID` (`MemberID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `media` -- CREATE TABLE IF NOT EXISTS `media` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('Media') CHARACTER SET utf8 DEFAULT 'Media', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Newspaper` tinyint(1) unsigned NOT NULL DEFAULT '0', `NewspaperCount` int(11) NOT NULL DEFAULT '0', `NewspaperNames` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `Magazine` tinyint(1) unsigned NOT NULL DEFAULT '0', `KidsMagazine` tinyint(1) unsigned NOT NULL DEFAULT '0', `Television` tinyint(1) unsigned NOT NULL DEFAULT '0', `Internet` tinyint(1) unsigned NOT NULL DEFAULT '0', `Mobile` tinyint(1) unsigned NOT NULL DEFAULT '0', `MobileCount` int(11) NOT NULL DEFAULT '0', `FamilyID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyID` (`FamilyID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `media` -- INSERT INTO `media` (`ID`, `ClassName`, `LastEdited`, `Created`, `Newspaper`, `NewspaperCount`, `NewspaperNames`, `Magazine`, `KidsMagazine`, `Television`, `Internet`, `Mobile`, `MobileCount`, `FamilyID`) VALUES (1, 'Media', '2016-02-04 11:11:21', '2016-02-04 11:11:21', 1, 2, 'Indian Express, Malayala Monorama', 1, 1, 1, 1, 1, 4, 5), (2, 'Media', '2016-02-26 05:11:00', '2016-02-26 05:11:00', 1, 2, 'Malayala Manorama, Indian Express', 1, 0, 0, 0, 1, 4, 1); -- -------------------------------------------------------- -- -- Table structure for table `member` -- CREATE TABLE IF NOT EXISTS `member` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('Member') DEFAULT 'Member', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `FirstName` varchar(50) DEFAULT NULL, `Surname` varchar(50) DEFAULT NULL, `Email` varchar(254) DEFAULT NULL, `TempIDHash` varchar(160) DEFAULT NULL, `TempIDExpired` datetime DEFAULT NULL, `Password` varchar(160) DEFAULT NULL, `RememberLoginToken` varchar(160) DEFAULT NULL, `NumVisit` int(11) NOT NULL DEFAULT '0', `LastVisited` datetime DEFAULT NULL, `AutoLoginHash` varchar(160) DEFAULT NULL, `AutoLoginExpired` datetime DEFAULT NULL, `PasswordEncryption` varchar(50) DEFAULT NULL, `Salt` varchar(50) DEFAULT NULL, `PasswordExpiry` date DEFAULT NULL, `LockedOutUntil` datetime DEFAULT NULL, `Locale` varchar(6) DEFAULT NULL, `FailedLoginCount` int(11) NOT NULL DEFAULT '0', `DateFormat` varchar(30) DEFAULT NULL, `TimeFormat` varchar(30) DEFAULT NULL, PRIMARY KEY (`ID`), KEY `Email` (`Email`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ; -- -- Dumping data for table `member` -- INSERT INTO `member` (`ID`, `ClassName`, `LastEdited`, `Created`, `FirstName`, `Surname`, `Email`, `TempIDHash`, `TempIDExpired`, `Password`, `RememberLoginToken`, `NumVisit`, `LastVisited`, `AutoLoginHash`, `AutoLoginExpired`, `PasswordEncryption`, `Salt`, `PasswordExpiry`, `LockedOutUntil`, `Locale`, `FailedLoginCount`, `DateFormat`, `TimeFormat`) VALUES (1, 'Member', '2016-12-09 10:02:25', '2016-01-04 17:31:33', 'Thomas ', 'Paulson', 'admin', '<PASSWORD>', '2016-12-12 10:02:25', '$2y$10$253a4c79d399ae9e821e9umDc.wRV8FNQt86eZmOjDcpAn/vSpWma', NULL, 85, '2016-12-09 14:44:36', NULL, NULL, 'blowfish', '10$253a4c79d399ae9e821e93', NULL, NULL, 'en_US', 0, NULL, NULL), (2, 'Member', '2016-01-27 06:43:07', '2016-01-25 07:28:10', 'Manager', 'Diocesan', 'manager', '868a77b4252baf37f6b09e440c9f1013046e8f36', '2016-01-30 06:41:36', '$2y$10$3c9da5da5fc5385798e7auUOcpQUD/IOb/HygzmfqV4eRb899M3hW', NULL, 4, '2016-01-27 11:13:07', NULL, NULL, 'blowfish', '10$3c9da5da5fc5385798e7a0', NULL, NULL, 'en_US', 0, 'yyyy-MM-dd', 'H:mm'), (3, 'Member', '2016-02-23 06:09:57', '2016-01-25 15:13:23', 'Alexander', 'Kannikatt', 'alex', '4436c9d1177c921dc0251ea01d19259aa253d8bd', '2016-02-26 06:09:57', '$2y$10$3478af83c65dd144ac4ecuA4qs5GoKmkQMpQLvsst3tF/9WYwo9MK', NULL, 12, '2016-02-23 11:35:58', NULL, NULL, 'blowfish', '10$3478af83c65dd144ac4ec7', NULL, NULL, 'en_US', 0, 'yyyy-MM-dd', 'H:mm'), (5, 'Member', '2016-02-22 04:53:14', '2016-02-22 04:40:05', 'John', 'Mendez', 'john', '7d79223cdeb8e52db5aa4dca45a821dfe23f2d48', '2016-02-25 04:53:14', '$2y$10$c931f3b0c099cbde39e97uYcAgvRRc.e7qz9NeUn2eruqqkNsbQtq', NULL, 2, '2016-02-22 11:48:17', NULL, NULL, 'blowfish', '10$c931f3b0c099cbde39e973', NULL, NULL, 'en_US', 0, NULL, NULL), (6, 'Member', '2016-02-23 06:59:35', '2016-02-22 04:48:37', 'Mathew', 'Kothakath', 'mathew', NULL, NULL, '$2y$10$034dcbe27ae80555d2405uTsdih1FeGH9aJ0ItC0UyI/3mcsWq1RW', NULL, 0, NULL, NULL, NULL, 'blowfish', '10$034dcbe27ae80555d24055', NULL, NULL, 'en_US', 0, NULL, NULL), (10, 'Member', '2016-02-24 12:14:13', '2016-02-23 06:08:53', 'mary', NULL, 'mary', '206c4c54a6868c2db702edea16269e1759b0a7a8', '2016-02-27 12:14:13', '$2y$10$805d6b93a24b8314bb917un4PQKFcmXoZ9sD2cZn04K9qrtHPEaqq', NULL, 1, '2016-02-24 16:44:13', NULL, NULL, 'blowfish', '10$805d6b93a24b8314bb9177', NULL, NULL, 'en_US', 0, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `memberpassword` -- CREATE TABLE IF NOT EXISTS `memberpassword` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('MemberPassword') DEFAULT 'MemberPassword', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Password` varchar(160) DEFAULT NULL, `Salt` varchar(50) DEFAULT NULL, `PasswordEncryption` varchar(50) DEFAULT NULL, `MemberID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `MemberID` (`MemberID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=20 ; -- -- Dumping data for table `memberpassword` -- INSERT INTO `memberpassword` (`ID`, `ClassName`, `LastEdited`, `Created`, `Password`, `Salt`, `PasswordEncryption`, `MemberID`) VALUES (1, 'MemberPassword', '<PASSWORD>', '2016-01-04 17:31:34', '$2y$10$253a4c79d399ae9e821e9umDc.wRV8FNQt86eZmOjDcpAn/vSpWma', '<PASSWORD>', '<PASSWORD>', 1), (2, 'MemberPassword', '2016-01-23 07:42:47', '2016-01-23 07:42:47', '$2y$10$253a4c79d399ae9e821e9u.iNnaxQqJONxFy7x6H0qUcmUOgSxTPm', '<PASSWORD>', '<PASSWORD>', 1), (3, 'MemberPassword', '2016-01-23 07:43:25', '2016-01-23 07:43:25', '$2y$10$253a4c79d399ae9e821e9umDc.wRV8FNQt86eZmOjDcpAn/vSpWma', '10$253a4c79d399ae9e821e93', 'blowfish', 1), (4, 'MemberPassword', '<PASSWORD>-01-25 07:28:11', '2016-01-25 07:28:11', '$2y$10$3c9da5da5fc5385798e7auUOcpQUD/IOb/HygzmfqV4eRb899M3hW', '<PASSWORD>', '<PASSWORD>', 2), (5, 'MemberPassword', '<PASSWORD>:23', '2016-01-25 15:13:23', '$2y$10$3478af83c65dd144ac4ecuTHLHBpL9BK3Hy2IsM5kK2HfA1sAA1ga', '<PASSWORD>', '<PASSWORD>', 3), (6, 'MemberPassword', '<PASSWORD>', '2016-01-27 06:38:18', '$2y$10$3478af83c65dd144ac4ecuA4qs5GoKmkQMpQLvsst3tF/9WYwo9MK', '<PASSWORD>', '<PASSWORD>', 3), (7, 'MemberPassword', '<PASSWORD>6-02-20 13:43:53', '2016-02-20 13:43:53', '$2y$10$b6d4d978f68278e4a6295ufBrQcZ4nu9R2kGLu42TEQMOzMv0v32O', '10$b6d4d978f68278e4a62954', 'blowfish', 4), (8, 'MemberPassword', '<PASSWORD>', '2016-02-22 04:40:05', '$2y$10$c931f3b0c099cbde39e97uYcAgvRRc.e7qz9NeUn2eruqqkNsbQtq', '<PASSWORD>', '<PASSWORD>', 5), (9, 'MemberPassword', '<PASSWORD>', '2016-02-22 04:48:37', '$2y$10$034dcbe27ae80555d2405uTsdih1FeGH9aJ0ItC0UyI/3mcsWq1RW', '10$034dcbe27ae80555d24055', 'blowfish', 6), (18, 'MemberPassword', '<PASSWORD>', '<PASSWORD>6-02-23 06:08:53', '$2y$10$805d6b93a24b8314bb917un4PQKFcmXoZ9sD2cZn04K9qrtHPEaqq', '1<PASSWORD>', 'blowfish', 10), (19, 'MemberPassword', '<PASSWORD>6-02-23 06:59:35', '2016-02-23 06:59:35', '$2y$10$034dcbe27ae80555d2405uTsdih1FeGH9aJ0ItC0UyI/3mcsWq1RW', '10$034dcbe27ae80555d24055', 'blowfish', 6); -- -------------------------------------------------------- -- -- Table structure for table `member_parishes` -- CREATE TABLE IF NOT EXISTS `member_parishes` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `MemberID` int(11) NOT NULL DEFAULT '0', `ParishID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `MemberID` (`MemberID`), KEY `ParishID` (`ParishID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ; -- -- Dumping data for table `member_parishes` -- INSERT INTO `member_parishes` (`ID`, `MemberID`, `ParishID`) VALUES (2, 3, 10), (3, 3, 4), (4, 5, 10), (5, 6, 10), (6, 7, 10), (7, 8, 10), (8, 9, 10), (9, 10, 3); -- -------------------------------------------------------- -- -- Table structure for table `monthlyexpense` -- CREATE TABLE IF NOT EXISTS `monthlyexpense` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('MonthlyExpense') CHARACTER SET utf8 DEFAULT 'MonthlyExpense', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Food` int(11) NOT NULL DEFAULT '0', `Education` int(11) NOT NULL DEFAULT '0', `Medical` int(11) NOT NULL DEFAULT '0', `Mobile` int(11) NOT NULL DEFAULT '0', `Others` int(11) NOT NULL DEFAULT '0', `Total` int(11) NOT NULL DEFAULT '0', `FamilyID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyID` (`FamilyID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `monthlyincome` -- CREATE TABLE IF NOT EXISTS `monthlyincome` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('MonthlyIncome') CHARACTER SET utf8 DEFAULT 'MonthlyIncome', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Land` int(11) NOT NULL DEFAULT '0', `Job` int(11) NOT NULL DEFAULT '0', `Others` int(11) NOT NULL DEFAULT '0', `Total` int(11) NOT NULL DEFAULT '0', `FamilyID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyID` (`FamilyID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `monthlyincome` -- INSERT INTO `monthlyincome` (`ID`, `ClassName`, `LastEdited`, `Created`, `Land`, `Job`, `Others`, `Total`, `FamilyID`) VALUES (1, 'MonthlyIncome', '2016-01-29 07:03:10', '2016-01-29 07:03:10', 1000, 1000, 1000, 3000, 1), (2, 'MonthlyIncome', '2016-02-25 15:13:35', '2016-02-25 15:13:35', 1000, 1000, 1000, 3000, 6); -- -------------------------------------------------------- -- -- Table structure for table `otherfacility` -- CREATE TABLE IF NOT EXISTS `otherfacility` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('OtherFacility') CHARACTER SET utf8 DEFAULT 'OtherFacility', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `WaterWell` tinyint(1) unsigned NOT NULL DEFAULT '0', `DrillWell` tinyint(1) unsigned NOT NULL DEFAULT '0', `WaterConnection` tinyint(1) unsigned NOT NULL DEFAULT '0', `RainwaterStorage` tinyint(1) unsigned NOT NULL DEFAULT '0', `Biogas` tinyint(1) unsigned NOT NULL DEFAULT '0', `Electricity` tinyint(1) unsigned NOT NULL DEFAULT '0', `SolarEnergy` tinyint(1) unsigned NOT NULL DEFAULT '0', `VegetableGarden` tinyint(1) unsigned NOT NULL DEFAULT '0', `FamilyID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyID` (`FamilyID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `otherfacility` -- INSERT INTO `otherfacility` (`ID`, `ClassName`, `LastEdited`, `Created`, `WaterWell`, `DrillWell`, `WaterConnection`, `RainwaterStorage`, `Biogas`, `Electricity`, `SolarEnergy`, `VegetableGarden`, `FamilyID`) VALUES (1, 'OtherFacility', '2016-02-03 13:28:21', '2016-02-03 13:28:21', 0, 0, 0, 1, 1, 1, 1, 0, 5), (2, 'OtherFacility', '2016-02-25 15:38:29', '2016-02-25 15:38:29', 1, 0, 0, 0, 0, 1, 0, 0, 6); -- -------------------------------------------------------- -- -- Table structure for table `parish` -- CREATE TABLE IF NOT EXISTS `parish` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('Parish') DEFAULT 'Parish', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Title` varchar(255) DEFAULT NULL, `Location` varchar(100) DEFAULT NULL, `Address` varchar(255) DEFAULT NULL, `Landline` varchar(50) DEFAULT NULL, PRIMARY KEY (`ID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=48 ; -- -- Dumping data for table `parish` -- INSERT INTO `parish` (`ID`, `ClassName`, `LastEdited`, `Created`, `Title`, `Location`, `Address`, `Landline`) VALUES (3, 'Parish', '2015-12-22 09:04:26', '2015-09-24 05:21:48', 'SANTA CRUZ BASILICA', 'Fort Cochin', 'Fort Cochin, Cochin - 682 001', '(0484) 2215799'), (4, 'Parish', '2015-12-22 09:04:43', '2015-09-24 05:23:04', 'OUR LADY OF HOPE CHURCH', 'Vyppen', 'Vypeen, Cochin-682 510', '(0484) 2502366'), (5, 'Parish', '2015-12-22 09:04:56', '2015-09-24 05:25:25', 'OUR LADY OF LIFE CHURCH', 'Mattanchery', 'Mattanchery, Cochin', '(0484) 2224828'), (6, 'Parish', '2016-01-06 16:15:32', '2015-10-21 07:56:15', 'ST PET<NAME>', 'Amaravathy', 'Amaravathy, Cochin- 682 001', '(0484) 2218724'), (8, 'Parish', '2015-10-30 07:16:11', '2015-10-21 11:55:22', '<NAME>', 'Nazareth', 'Nazareth, Cochin-682 002', '(0484) 2220180'), (9, 'Parish', '2016-01-06 16:15:55', '2015-10-21 11:56:56', 'ST <NAME>', 'Chullickal', 'Chullickal, Cochin-682 005', '(0484) 2226793'), (10, 'Parish', '2016-02-22 05:41:25', '2015-10-24 09:21:56', 'ST LAWRENCE CHURCH', 'Edakochi', 'Edakochi, Kerala, 682010', '284'), (11, 'Parish', '2015-10-30 07:17:42', '2015-10-30 07:17:42', '<NAME> ', 'Willingdon Island', 'Willingdon Island, Cochin 682003', '(0484) 2666184'), (12, 'Parish', '0000-00-00 00:00:00', '2015-12-21 18:30:00', 'ST ANTONYS CHURCH', 'Kannamaly', 'Kannamaly, Cochin- 682 008', '(0484) 2247452'), (13, 'Parish', '2015-12-21 18:30:00', '2015-12-21 18:30:00', 'ST THOMAS THE APOSTLE CHURCH', '<NAME>', 'San Thome, Thoppumpady, Cochin-682 005', '(0484) 2232244'), (14, 'Parish', '2016-01-06 16:16:05', '2015-12-22 09:11:33', 'ST LOUIS CHURCH ', 'Mundamvely', 'Mundamvely, Cochin-682 507', '(0484) 2231545'), (15, 'Parish', '2015-12-22 09:12:19', '2015-12-22 09:12:19', 'ST <NAME>', 'Kattiparambu', 'Kattiparambu, Kannamaly P.O, Cochin - 682 008', '(0484) 2247340'), (16, 'Parish', '2015-12-22 09:13:17', '2015-12-22 09:13:17', 'ST J<NAME>', 'Cheriyakadavu', 'Cheriyakadavu, Kannamaly PO, Cochin-682 008', '(0484)2247436'), (17, 'Parish', '2015-12-22 09:13:48', '2015-12-22 09:13:48', 'ST SEBASTIANS CHURCH', 'Chellanam', 'Chellanam, Cochin 682 008', '(0484) 2249870'), (19, 'Parish', '2015-12-22 09:15:37', '2015-12-22 09:15:37', 'ST SEBASTIANS CHURCH', 'Palluruthy', 'Palluruthy, Cochin-682 005', '(0484) 2231338'), (20, 'Parish', '2015-12-22 09:19:47', '2015-12-22 09:19:47', 'ST JOSEPHS CHURCH', 'Chirakkal', 'Chirakkal, Palluruthy, Cochin-682 006', '(0484) 2231354'), (21, 'Parish', '2016-01-06 16:16:40', '2015-12-22 09:20:19', 'ST LAWRENCE CHURCH', 'Nambiampuram', 'Nambiampuram, Palluruthy, Cochin-682 006', '(0484)2232188'), (22, 'Parish', '2016-01-06 16:16:29', '2015-12-22 09:21:45', 'ST THOMAS MORE CHURCH ', 'Palluruthy', 'Palluruthy, Cochin-682 006', ' (0484) 223 3622'), (23, 'Parish', '2015-12-22 09:22:33', '2015-12-22 09:22:33', 'SANT<NAME> ', ' Perumpadappu', ' Perumpadappu, Cochin- 682 006', '(0484) 2231430 '), (24, 'Parish', '2015-12-22 09:23:12', '2015-12-22 09:23:12', 'ST MARYS CHURCH', 'North Edacochin', 'North Edacochin, Cochin- 682 006', '(0484) 2327149'), (25, 'Parish', '2015-12-22 09:24:21', '2015-12-22 09:24:21', 'ST JOSEPH CHURCH', 'MADURAKAMPANY ', 'Madurakampany, Palluruthy, Cochin-682 006', ''), (26, 'Parish', '2015-12-22 09:25:16', '2015-12-22 09:25:16', 'SACRED HEART CHURCH ', 'Kumbalanghy', 'Kumbalanghy, Cochin-682007', '(0484) 2240191'), (27, 'Parish', '2015-12-22 09:49:44', '2015-12-22 09:49:44', 'ST JOSEPH''S CHURCH ', 'North Kumbalanghy', ' North Kumbalanghy,Cochin - 682 007', '(0484) 2240112'), (28, 'Parish', '2015-12-22 09:50:32', '2015-12-22 09:50:32', 'ST GEORGE CHURCH ', 'Pazhangad', 'Pazhangad, Kumbalanghy, Cochin- 682 007', '(0484) 2240083'), (29, 'Parish', '2015-12-22 09:51:15', '2015-12-22 09:51:15', 'ST PETERS CHURCH', 'Kumbalanghy', 'Kumbalanghy, Cochin- 682 007', '(0484) 2240040'), (30, 'Parish', '2015-12-22 09:51:53', '2015-12-22 09:51:53', 'MARTIN DE PORES CHURCH', ' Kallanchery', ' Kallanchery, Kumbalanghy, Cochin- 682 007', '(0484) 2240448'), (31, 'Parish', '2015-12-22 09:52:30', '2015-12-22 09:52:30', 'IMMACULATE CONCEPTION CHURCH', ' Ezhupunna North', ' Ezhupunna North, Alappuzha- 688 548', '(0478)2 872607'), (32, 'Parish', '2016-01-06 16:16:18', '2015-12-22 09:53:15', 'ST SEBASTIANS CHURCH', 'Neendakara', 'Neendakara, EzhupunnaNorth, Alappuzha- 688 548', '(0478) 2873646'), (33, 'Parish', '2015-12-22 09:54:53', '2015-12-22 09:54:53', '<NAME> ', 'Kumbalanghy', 'Kumbalanghy, Cochin-682 007', ''), (34, 'Parish', '2015-12-22 09:55:26', '2015-12-22 09:55:26', '<NAME>', 'AZHEEKKAKAM', 'AZHEEKKAKAM, Kumbalanghy, Cochin-682 007', ''), (35, 'Parish', '2015-12-22 09:56:26', '2015-12-22 09:56:26', 'ST AUGUSTINE CHURCH ', 'Aroor', 'Aroor , Alappuzha- 688 534', '(0478) 2872223'), (36, 'Parish', '2015-12-22 10:15:16', '2015-12-22 10:15:16', 'ST JOSEPH CHURCH', ' Kumbalam', ' Kumbalam, Cochin-682 506', '(0478) 2700165 '), (37, 'Parish', '2015-12-22 10:16:19', '2015-12-22 10:16:19', 'ST ANTONYS CHURCH ', ' Arookutty', ' Arookutty, Paduapuram, Alappuzha', '(0478) 2873122 '), (38, 'Parish', '2015-12-22 10:17:31', '2015-12-22 10:17:31', 'ST FRANC<NAME> ', 'Eramallore', 'Eramallore, Cherthala- 688 533', '(0478) 2872229'), (39, 'Parish', '2015-12-22 10:18:52', '2015-12-22 10:18:52', 'ST <NAME> ', 'Vallethode', 'Vallethode, Cherthala', '(0484) 2563117'), (40, 'Parish', '2015-12-22 10:20:01', '2015-12-22 10:20:01', 'OUR LADY OF FATIMA CHURCH,', ' Kodamthuruth', ' Kodamthuruth, K<NAME>.O., Cherthala', '(0478) 2562017'), (41, 'Parish', '2015-12-22 10:22:40', '2015-12-22 10:22:40', 'OUR LADY OF RANSOM CHURCH', 'Chandiroor P.O', 'Chandiroor P.O, Cherthala- 688 533', '(0478) - 2874217'), (42, 'Parish', '2015-12-22 10:24:54', '2015-12-22 10:24:54', 'ST SE<NAME>', ' Karunyapuram', 'KARUNYAPURAM, Vallethode (Kailasam), Cherthala 688 550', ''), (43, 'Parish', '2015-12-23 02:16:33', '2015-12-23 02:16:33', 'LITTLE FLOWER CHURCH', 'PERUMBALAM', 'PERUMBALAM , Cherthala- 688 533, Alappuzha', ''), (44, 'Parish', '2015-12-23 02:17:09', '2015-12-23 02:17:09', 'OUR LADY OF PURIFICATION CHURCH', 'Thankey', 'Thankey, Vayalar West, Cherthala, Alappuzha- 688 529', '(0478) 2812065'), (45, 'Parish', '2015-12-23 02:18:07', '2015-12-23 02:18:07', 'ST GEORGES CHURCH', 'Arthumkal', 'Arthumkal, Alapuzha- 688 530', '(0478) 2572403'), (46, 'Parish', '2016-01-06 16:17:01', '2015-12-23 02:18:50', 'ST FRANCIS XAVIER''S CHURCH', 'Vayalar East', 'Vayalar East, Cherthala, Alapuzha- 688 536', '(0478) 2813477'), (47, 'Parish', '2015-12-23 02:19:36', '2015-12-23 02:19:36', 'OUR LADY OF ASSUMPTION CHURCH ', 'Poomkavu,', 'Poomkavu, Mararikulam South , Alapuzha- 688 521', '(0478) 2258430 '); -- -------------------------------------------------------- -- -- Table structure for table `permission` -- CREATE TABLE IF NOT EXISTS `permission` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('Permission') DEFAULT 'Permission', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Code` varchar(50) DEFAULT NULL, `Arg` int(11) NOT NULL DEFAULT '0', `Type` int(11) NOT NULL DEFAULT '1', `GroupID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `GroupID` (`GroupID`), KEY `Code` (`Code`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=78 ; -- -- Dumping data for table `permission` -- INSERT INTO `permission` (`ID`, `ClassName`, `LastEdited`, `Created`, `Code`, `Arg`, `Type`, `GroupID`) VALUES (1, 'Permission', '2016-01-04 17:31:33', '2016-01-04 17:31:33', 'CMS_ACCESS_CMSMain', 0, 1, 1), (2, 'Permission', '2016-01-04 17:31:33', '2016-01-04 17:31:33', 'CMS_ACCESS_AssetAdmin', 0, 1, 1), (3, 'Permission', '2016-01-04 17:31:33', '2016-01-04 17:31:33', 'CMS_ACCESS_ReportAdmin', 0, 1, 1), (4, 'Permission', '2016-01-04 17:31:33', '2016-01-04 17:31:33', 'SITETREE_REORGANISE', 0, 1, 1), (5, 'Permission', '2016-01-04 17:31:33', '2016-01-04 17:31:33', 'ADMIN', 0, 1, 2), (63, 'Permission', '2016-01-25 15:15:05', '2016-01-25 15:15:05', 'CMS_ACCESS_ParishAdmin', 0, 1, 4), (64, 'Permission', '2016-01-25 15:15:05', '2016-01-25 15:15:05', 'CommunityGroup_VIEW', 0, 1, 4), (65, 'Permission', '2016-01-25 15:15:05', '2016-01-25 15:15:05', 'PARISH_VIEW', 0, 1, 4), (66, 'Permission', '2016-01-27 07:16:33', '2016-01-27 07:16:33', 'CMS_ACCESS_LeftAndMain', 0, 1, 3), (67, 'Permission', '2016-01-27 07:16:33', '2016-01-27 07:16:33', 'CommunityGroup_CREATE', 0, 1, 3), (68, 'Permission', '2016-01-27 07:16:33', '2016-01-27 07:16:33', 'PARISH_CREATE', 0, 1, 3), (69, 'Permission', '2016-01-27 07:16:33', '2016-01-27 07:16:33', 'CommunityGroup_DELETE', 0, 1, 3), (70, 'Permission', '2016-01-27 07:16:33', '2016-01-27 07:16:33', 'PARISH_DELETE', 0, 1, 3), (71, 'Permission', '2016-01-27 07:16:34', '2016-01-27 07:16:34', 'CommunityGroup_EDIT', 0, 1, 3), (72, 'Permission', '2016-01-27 07:16:34', '2016-01-27 07:16:34', 'PARISH_EDIT', 0, 1, 3), (73, 'Permission', '2016-01-27 07:16:34', '2016-01-27 07:16:34', 'CommunityGroup_VIEW', 0, 1, 3), (74, 'Permission', '2016-01-27 07:16:34', '2016-01-27 07:16:34', 'PARISH_VIEW', 0, 1, 3), (75, 'Permission', '2016-02-22 04:44:47', '2016-02-22 04:44:47', 'CMS_ACCESS_ParishAdmin', 0, 1, 5), (76, 'Permission', '2016-02-22 04:44:48', '2016-02-22 04:44:48', 'CommunityGroup_VIEW', 0, 1, 5), (77, 'Permission', '2016-02-22 04:44:48', '2016-02-22 04:44:48', 'PARISH_VIEW', 0, 1, 5); -- -------------------------------------------------------- -- -- Table structure for table `permissionrole` -- CREATE TABLE IF NOT EXISTS `permissionrole` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('PermissionRole') DEFAULT 'PermissionRole', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Title` varchar(50) DEFAULT NULL, `OnlyAdminCanApply` tinyint(1) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `permissionrolecode` -- CREATE TABLE IF NOT EXISTS `permissionrolecode` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('PermissionRoleCode') DEFAULT 'PermissionRoleCode', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Code` varchar(50) DEFAULT NULL, `RoleID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `RoleID` (`RoleID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `saving` -- CREATE TABLE IF NOT EXISTS `saving` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('Saving') CHARACTER SET utf8 DEFAULT 'Saving', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `EducationFund` tinyint(1) unsigned NOT NULL DEFAULT '0', `LifeInsurance` tinyint(1) unsigned NOT NULL DEFAULT '0', `HealthInsurance` tinyint(1) unsigned NOT NULL DEFAULT '0', `DeathFund` tinyint(1) unsigned NOT NULL DEFAULT '0', `MarriageFund` tinyint(1) unsigned NOT NULL DEFAULT '0', `Mythri` tinyint(1) unsigned NOT NULL DEFAULT '0', `Chitty` tinyint(1) unsigned NOT NULL DEFAULT '0', `Others` tinyint(1) unsigned NOT NULL DEFAULT '0', `Specify` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `FamilyID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyID` (`FamilyID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -- Dumping data for table `saving` -- INSERT INTO `saving` (`ID`, `ClassName`, `LastEdited`, `Created`, `EducationFund`, `LifeInsurance`, `HealthInsurance`, `DeathFund`, `MarriageFund`, `Mythri`, `Chitty`, `Others`, `Specify`, `FamilyID`) VALUES (1, 'Saving', '2016-02-08 05:53:03', '2016-02-08 05:53:03', 1, 1, 0, 0, 0, 0, 0, 1, 'no not', 3), (3, 'Saving', '2016-02-26 05:43:21', '2016-02-26 05:42:21', 1, 0, 0, 1, 0, 0, 0, 1, 'Bitcoin Deposit', 1); -- -------------------------------------------------------- -- -- Table structure for table `shiftedfrom` -- CREATE TABLE IF NOT EXISTS `shiftedfrom` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('ShiftedFrom') CHARACTER SET utf8 DEFAULT 'ShiftedFrom', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Status` tinyint(1) unsigned NOT NULL DEFAULT '0', `FromWhere` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `Reason` varchar(255) CHARACTER SET utf8 DEFAULT NULL, `FamilyID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyID` (`FamilyID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `shiftedfrom` -- INSERT INTO `shiftedfrom` (`ID`, `ClassName`, `LastEdited`, `Created`, `Status`, `FromWhere`, `Reason`, `FamilyID`) VALUES (1, 'ShiftedFrom', '2016-01-20 10:18:30', '2016-01-20 10:18:30', 1, 'Qatar', 'Retire Life', 2), (2, 'ShiftedFrom', '2016-02-17 16:24:45', '2016-02-17 16:24:45', 1, 'Bangalore', 'Work', 6); -- -------------------------------------------------------- -- -- Table structure for table `talent` -- CREATE TABLE IF NOT EXISTS `talent` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('Talent') CHARACTER SET utf8 DEFAULT 'Talent', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Remark` mediumtext CHARACTER SET utf8, `FamilyID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyID` (`FamilyID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `vehicle` -- CREATE TABLE IF NOT EXISTS `vehicle` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ClassName` enum('Vehicle') CHARACTER SET utf8 DEFAULT 'Vehicle', `LastEdited` datetime DEFAULT NULL, `Created` datetime DEFAULT NULL, `Cycle` tinyint(1) unsigned NOT NULL DEFAULT '0', `Bike` tinyint(1) unsigned NOT NULL DEFAULT '0', `Autoriskaw` tinyint(1) unsigned NOT NULL DEFAULT '0', `LightVehicle` tinyint(1) unsigned NOT NULL DEFAULT '0', `HeavyCommercial` tinyint(1) unsigned NOT NULL DEFAULT '0', `CountryBoat` tinyint(1) unsigned NOT NULL DEFAULT '0', `Vallam` tinyint(1) unsigned NOT NULL DEFAULT '0', `FishingBoat` tinyint(1) unsigned NOT NULL DEFAULT '0', `TouristBoat` tinyint(1) unsigned NOT NULL DEFAULT '0', `FamilyID` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), KEY `FamilyID` (`FamilyID`), KEY `ClassName` (`ClassName`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `vehicle` -- INSERT INTO `vehicle` (`ID`, `ClassName`, `LastEdited`, `Created`, `Cycle`, `Bike`, `Autoriskaw`, `LightVehicle`, `HeavyCommercial`, `CountryBoat`, `Vallam`, `FishingBoat`, `TouristBoat`, `FamilyID`) VALUES (1, 'Vehicle', '2016-02-01 13:03:30', '2016-02-01 13:03:30', 1, 1, 1, 0, 0, 0, 0, 0, 0, 6), (2, 'Vehicle', '2016-02-03 13:27:04', '2016-02-03 13:27:04', 1, 1, 0, 1, 1, 0, 0, 0, 0, 5); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>working/manual_changes/2021/2021-08-16.sql --rename PHDSC vocabulary to SOPT [AVOF-3232] do $$ declare cOldVocabulary constant varchar(100):='PHDSC'; cNewVocabulary constant varchar(100):='SOPT'; begin alter table vocabulary drop constraint fpk_vocabulary_concept; alter table concept drop constraint fpk_concept_vocabulary; update concept set vocabulary_id=cNewVocabulary where vocabulary_id=cOldVocabulary; update concept c set concept_name='Source of Payment Typology (NAHDO)' where c.concept_id=(select v.vocabulary_concept_id from vocabulary v where v.vocabulary_id=cOldVocabulary); update vocabulary set vocabulary_id=cNewVocabulary, vocabulary_reference='https://www.nahdo.org/sopt', vocabulary_name='Source of Payment Typology (NAHDO)' where vocabulary_id=cOldVocabulary; update vocabulary_conversion set vocabulary_id_v5=cNewVocabulary where vocabulary_id_v5=cOldVocabulary; alter table vocabulary add constraint fpk_vocabulary_concept foreign key (vocabulary_concept_id) references concept (concept_id); alter table concept add constraint fpk_concept_vocabulary foreign key (vocabulary_id) references vocabulary (vocabulary_id); end $$;
<filename>database.sql DROP DATABASE IF EXISTS biblioteca; CREATE DATABASE IF NOT EXISTS biblioteca; USE biblioteca; DROP TABLE IF EXISTS livros; CREATE TABLE IF NOT EXISTS livros( id int(11) not null auto_increment, cod_livro varchar(50), nome_livro varchar(250), desc_livro varchar(250), PRIMARY KEY(id)); INSERT INTO livros(id, cod_livro, nome_livro, desc_livro) VALUES(null, '1818','JAVA SOLID', 'JAVA PADRÕES DE PROJETO'); SELECT * FROM livros;
<filename>migration/mule/transform-mysql-cdc/resources/data.sql CREATE SCHEMA ETL; USE ETL; CREATE TABLE ORDERS ( OrderID varchar(45) NOT NULL, RetailerID varchar(45) DEFAULT NULL, ProductIDs varchar(45) DEFAULT NULL ); CREATE TABLE RETAILERS ( RetailerID varchar(45) NOT NULL, Retailer varchar(45) DEFAULT NULL ); CREATE TABLE PRODUCTS ( ProductID varchar(45) NOT NULL, Product varchar(45) DEFAULT NULL ); CREATE TABLE ORDER_REPORTS ( OrderID varchar(45) NOT NULL, Retailer varchar(45) DEFAULT NULL, Products varchar(90) DEFAULT NULL ); INSERT INTO RETAILERS (`RetailerID`, `Retailer`) VALUES ('R01', 'Mystery Inc.'); INSERT INTO RETAILERS (`RetailerID`, `Retailer`) VALUES ('R02', 'Charley Ltd.'); INSERT INTO RETAILERS (`RetailerID`, `Retailer`) VALUES ('R03', 'Golden Org.'); INSERT INTO PRODUCTS (`ProductID`, `Product`) VALUES ('P001', 'iPhone X'); INSERT INTO PRODUCTS (`ProductID`, `Product`) VALUES ('P002', 'MacBook Pro 2019'); INSERT INTO PRODUCTS (`ProductID`, `Product`) VALUES ('P003', 'Oculus Rift');
<reponame>guerlab/flowable-engine CREATE TABLE PUBLIC.ACT_CMMN_HI_PLAN_ITEM_INST (ID_ varchar(191) NOT NULL, REV_ INT NOT NULL, NAME_ varchar(191), STATE_ varchar(191), CASE_DEF_ID_ varchar(191), CASE_INST_ID_ varchar(191), STAGE_INST_ID_ varchar(191), IS_STAGE_ BOOLEAN, ELEMENT_ID_ varchar(191), ITEM_DEFINITION_ID_ varchar(191), ITEM_DEFINITION_TYPE_ varchar(191), CREATED_TIME_ TIMESTAMP, LAST_AVAILABLE_TIME_ TIMESTAMP, LAST_ENABLED_TIME_ TIMESTAMP, LAST_DISABLED_TIME_ TIMESTAMP, LAST_STARTED_TIME_ TIMESTAMP, LAST_SUSPENDED_TIME_ TIMESTAMP, COMPLETED_TIME_ TIMESTAMP, OCCURRED_TIME_ TIMESTAMP, TERMINATED_TIME_ TIMESTAMP, EXIT_TIME_ TIMESTAMP, ENDED_TIME_ TIMESTAMP, LAST_UPDATED_TIME_ TIMESTAMP, START_USER_ID_ varchar(191), REFERENCE_ID_ varchar(191), REFERENCE_TYPE_ varchar(191), TENANT_ID_ varchar(191) DEFAULT '', CONSTRAINT PK_ACT_CMMN_HI_PLAN_ITEM_INST PRIMARY KEY (ID_)); ALTER TABLE PUBLIC.ACT_CMMN_RU_MIL_INST ADD TENANT_ID_ varchar(191) DEFAULT ''; ALTER TABLE PUBLIC.ACT_CMMN_HI_MIL_INST ADD TENANT_ID_ varchar(191) DEFAULT ''; INSERT INTO PUBLIC.ACT_CMMN_DATABASECHANGELOG (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('4', 'flowable', 'changelog-xml/cmmn/6310.xml', NOW(), 7, '8:e40d29cb79345b7fb5afd38a7f0ba8fc', 'createTable tableName=ACT_CMMN_HI_PLAN_ITEM_INST; addColumn tableName=ACT_CMMN_RU_MIL_INST; addColumn tableName=ACT_CMMN_HI_MIL_INST', '', 'EXECUTED', NULL, NULL, '3.6.1', '6984986116');
<gh_stars>0 select * from {{ var('downloads_territory') }}
CREATE TABLE IF NOT EXISTS `__PREFIX__attachment` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', `admin_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '后台用户id', `user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '前台用户id', `name` varchar(55) NOT NULL DEFAULT '' COMMENT '名称', `mime` varchar(125) NOT NULL DEFAULT '' COMMENT 'mime类型', `suffix` varchar(10) NOT NULL DEFAULT '' COMMENT '后缀', `size` double(10,3) unsigned DEFAULT '0' COMMENT '大小', `sha1` varchar(40) NOT NULL DEFAULT '' COMMENT 'sha1', `storage` varchar(40) NOT NULL DEFAULT 'local' COMMENT '存储位置', `url` varchar(100) NOT NULL DEFAULT '' COMMENT 'url链接', `create_time` datetime NOT NULL DEFAULT '2020-01-01 00:00:00' COMMENT '添加时间', `update_time` datetime NOT NULL DEFAULT '2020-01-01 00:00:00' COMMENT '更新时间', PRIMARY KEY (`id`), INDEX(`admin_id`), INDEX(`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='上传文件表'; /* * 小版本升级 ,要修改已存在的表,不能直接修改建表语句,应该以小版本的形式提供升级 * 1. install中添加单独的修改语句, * 2. 创建版本sql,如`1.0.2.sql`,在其中写入单独的sql语句。 * 对于已安装扩展的用户,将通过各个版本的sql修改表。 * 对于新安装的用户,通过intall.sql执行建表和修改表的操作 */ /* 1.0.3.sql */ ALTER TABLE `__PREFIX__attachment` CHANGE COLUMN `url` `url` VARCHAR(255) NOT NULL DEFAULT '' COMMENT 'url链接' COLLATE 'utf8_general_ci' AFTER `storage`;
-- +migrate Up notransaction ALTER TYPE engine_processing_type ADD VALUE IF NOT EXISTS 'metrics'; -- +migrate Down