sql
stringlengths
6
1.05M
<reponame>opengauss-mirror/openGauss-graph \o query_mem_col.txt set current_schema=vector_engine; set explain_perf_mode=summary; set query_dop=0; -- Test on hashjoin set enable_hashjoin=on; set enable_mergejoin=off; set enable_nestloop=off; -- $ID$ -- TPC-H/TPC-R Pricing Summary Report Query (Q1) -- Functional Query Definition -- Approved February 1998 explain select l_returnflag, l_linestatus, sum(l_quantity) as sum_qty, sum(l_extendedprice) as sum_base_price, sum(l_extendedprice * (1 - l_discount)) as sum_disc_price, sum(l_extendedprice * (1 - l_discount) * (1 + l_tax)/1000) as sum_charge, --add /1000 avg(l_quantity) as avg_qty, avg(l_extendedprice) as avg_price, avg(l_discount) as avg_disc, count(*) as count_order from lineitem where l_shipdate <= date '1998-12-01' - interval '3 day' group by l_returnflag, l_linestatus order by l_returnflag, l_linestatus; -- $ID$ -- TPC-H/TPC-R Minimum Cost Supplier Query (Q2) -- Functional Query Definition -- Approved February 1998 explain select s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment from part, supplier, partsupp, nation, region, ( select ps_partkey as temp_ps_partkey, min(ps_supplycost) as temp_min_ps_supplycost from partsupp, supplier, nation, region where s_suppkey = ps_suppkey and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = 'EUROPE' group by ps_partkey ) as temp where p_partkey = temp_ps_partkey and p_partkey = ps_partkey and s_suppkey = ps_suppkey and p_size = 15 and p_type like '%BRASS' and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = 'EUROPE' and ps_supplycost = temp_min_ps_supplycost order by s_acctbal desc, n_name, s_name, p_partkey limit 100 ; -- $ID$ -- TPC-H/TPC-R Shipping Priority Query (Q3) -- Functional Query Definition -- Approved February 1998 explain select l_orderkey, sum(l_extendedprice * (1 - l_discount)) as revenue, o_orderdate, o_shippriority from customer, orders, lineitem where c_mktsegment = 'BUILDING' and c_custkey = o_custkey and l_orderkey = o_orderkey and o_orderdate < '1995-03-15'::date and l_shipdate > '1995-03-15'::date group by l_orderkey, o_orderdate, o_shippriority order by revenue desc, o_orderdate limit 10 ; -- $ID$ -- TPC-H/TPC-R Order Priority Checking Query (Q4) -- Functional Query Definition -- Approved February 1998 explain select o_orderpriority, count(*) as order_count from orders where o_orderdate >= '1993-07-01'::date and o_orderdate < '1993-07-01'::date + interval '3 month' and exists ( select * from lineitem where l_orderkey = o_orderkey and l_commitdate < l_receiptdate ) group by o_orderpriority order by o_orderpriority; -- $ID$ -- TPC-H/TPC-R Local Supplier Volume Query (Q5) -- Functional Query Definition -- Approved February 1998 explain select n_name, sum(l_extendedprice * (1 - l_discount)) as revenue from customer, orders, lineitem, supplier, nation, region where c_custkey = o_custkey and l_orderkey = o_orderkey and l_suppkey = s_suppkey and c_nationkey = s_nationkey and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = 'ASIA' and o_orderdate >= '1994-01-01'::date and o_orderdate < '1994-01-01'::date + interval '1 year' group by n_name order by revenue desc; -- $ID$ -- TPC-H/TPC-R Forecasting Revenue Change Query (Q6) -- Functional Query Definition -- Approved February 1998 explain select sum(l_extendedprice * l_discount) as revenue from lineitem where l_shipdate >= '1994-01-01'::date and l_shipdate < '1994-01-01'::date + interval '1 year' and l_discount between 0.06 - 0.01 and 0.06 + 0.01 and l_quantity < 24; -- $ID$ -- TPC-H/TPC-R Volume Shipping Query (Q7) -- Functional Query Definition -- Approved February 1998 explain select supp_nation, cust_nation, l_year, sum(volume) as revenue from ( select n1.n_name as supp_nation, n2.n_name as cust_nation, extract(year from l_shipdate) as l_year, l_extendedprice * (1 - l_discount) as volume from supplier, lineitem, orders, customer, nation n1, nation n2 where s_suppkey = l_suppkey and o_orderkey = l_orderkey and c_custkey = o_custkey and s_nationkey = n1.n_nationkey and c_nationkey = n2.n_nationkey and ( (n1.n_name = 'FRANCE' and n2.n_name = 'GERMANY') or (n1.n_name = 'GERMANY' and n2.n_name = 'FRANCE') ) and l_shipdate between date '1995-01-01' and date '1996-12-31' ) as shipping group by supp_nation, cust_nation, l_year order by supp_nation, cust_nation, l_year; -- $ID$ -- TPC-H/TPC-R National Market Share Query (Q8) -- Functional Query Definition -- Approved February 1998 explain select o_year, sum(case when nation = 'BRAZIL' then volume else 0 end) / sum(volume) as mkt_share from ( select extract(year from o_orderdate) as o_year, l_extendedprice * (1 - l_discount) as volume, n2.n_name as nation from part, supplier, lineitem, orders, customer, nation n1, nation n2, region where p_partkey = l_partkey and s_suppkey = l_suppkey and l_orderkey = o_orderkey and o_custkey = c_custkey and c_nationkey = n1.n_nationkey and n1.n_regionkey = r_regionkey and r_name = 'AMERICA' and s_nationkey = n2.n_nationkey and o_orderdate between date '1995-01-01' and date '1996-12-31' and p_type = 'ECONOMY ANODIZED STEEL' ) as all_nations group by o_year order by o_year; -- $ID$ -- TPC-H/TPC-R Product Type Profit Measure Query (Q9) -- Functional Query Definition -- Approved February 1998 explain select nation, o_year, sum(amount) as sum_profit from ( select n_name as nation, extract(year from o_orderdate) as o_year, l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity as amount from part, supplier, lineitem, partsupp, orders, nation where s_suppkey = l_suppkey and ps_suppkey = l_suppkey and ps_partkey = l_partkey and p_partkey = l_partkey and o_orderkey = l_orderkey and s_nationkey = n_nationkey and p_name like '%green%' ) as profit group by nation, o_year order by nation, o_year desc; -- $ID$ -- TPC-H/TPC-R Returned Item Reporting Query (Q10) -- Functional Query Definition -- Approved February 1998 explain select c_custkey, c_name, sum(l_extendedprice * (1 - l_discount)) as revenue, c_acctbal, n_name, c_address, c_phone, c_comment from customer, orders, lineitem, nation where c_custkey = o_custkey and l_orderkey = o_orderkey and o_orderdate >= date '1993-10-01' and o_orderdate < date '1993-10-01' + interval '3 month' and l_returnflag = 'R' and c_nationkey = n_nationkey group by c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment order by revenue desc limit 20 ; -- $ID$ -- TPC-H/TPC-R Important Stock Identification Query (Q11) -- Functional Query Definition -- Approved February 1998 explain select ps_partkey, sum(ps_supplycost * ps_availqty) as value from partsupp, supplier, nation where ps_suppkey = s_suppkey and s_nationkey = n_nationkey and n_name = 'GERMANY' group by ps_partkey having sum(ps_supplycost * ps_availqty) > ( select sum(ps_supplycost * ps_availqty) * 0.0001/100 from partsupp, supplier, nation where ps_suppkey = s_suppkey and s_nationkey = n_nationkey and n_name = 'GERMANY' ) order by value desc; -- $ID$ -- TPC-H/TPC-R Shipping Modes and Order Priority Query (Q12) -- Functional Query Definition -- Approved February 1998 explain select l_shipmode, sum(case when o_orderpriority = '1-URGENT' or o_orderpriority = '2-HIGH' then 1 else 0 end) as high_line_count, sum(case when o_orderpriority <> '1-URGENT' and o_orderpriority <> '2-HIGH' then 1 else 0 end) as low_line_count from orders, lineitem where o_orderkey = l_orderkey and l_shipmode in ('MAIL', 'SHIP') and l_commitdate < l_receiptdate and l_shipdate < l_commitdate and l_receiptdate >= date '1994-01-01' and l_receiptdate < date '1994-01-01' + interval '1 year' group by l_shipmode order by l_shipmode; -- $ID$ -- TPC-H/TPC-R Customer Distribution Query (Q13) -- Functional Query Definition -- Approved February 1998 explain select c_count, count(*) as custdist from ( select c_custkey, count(*) from customer left outer join orders on c_custkey = o_custkey and o_comment not like '%special%request%' group by c_custkey ) as c_orders (c_custkey, c_count) group by c_count order by custdist desc, c_count desc; -- $ID$ -- TPC-H/TPC-R Promotion Effect Query (Q14) -- Functional Query Definition -- Approved February 1998 explain select 100 * sum(case when p_type like 'PROMO%' then l_extendedprice * (1 - l_discount)/10 else 0 end) / sum(l_extendedprice * (1 - l_discount)/1000) as promo_revenue --add /1000 from lineitem, part where l_partkey = p_partkey and l_shipdate >= date '1995-09-01' and l_shipdate < date '1995-09-01' + interval '1 month'; -- $ID$ -- TPC-H/TPC-R Top Supplier Query (Q15) -- Functional Query Definition -- Approved February 1998 explain with revenue (supplier_no, total_revenue) as --change view to cte ( select l_suppkey, sum(l_extendedprice * (1 - l_discount)) from lineitem where l_shipdate >= date '1996-01-01' and l_shipdate < date '1996-01-01' + interval '3 month' group by l_suppkey ) select s_suppkey, s_name, s_address, s_phone, total_revenue from supplier, revenue where s_suppkey = supplier_no and total_revenue = ( select max(total_revenue) from revenue ) order by s_suppkey; -- $ID$ -- TPC-H/TPC-R Parts/Supplier Relationship Query (Q16) -- Functional Query Definition -- Approved February 1998 explain select p_brand, p_type, p_size, count(ps_suppkey) as supplier_cnt --remove distinct from partsupp, part where p_partkey = ps_partkey and p_brand <> 'Brand#45' and p_type not like 'MEDIUM POLISHED%' and p_size in (49, 14, 23, 45, 19, 3, 36, 9) and ps_suppkey not in ( select s_suppkey from supplier where s_comment like '%Customer%Complaints%' ) group by p_brand, p_type, p_size order by supplier_cnt desc, p_brand, p_type, p_size limit 100 ; -- $ID$ -- TPC-H/TPC-R Small-Quantity-Order Revenue Query (Q17) -- Functional Query Definition -- Approved February 1998 -- Query modified: a subquery is moved from WHERE clause to FROM clause. explain select sum(l_extendedprice) / 7.0 as avg_yearly from lineitem, part, (select l_partkey as temp_l_partkey, 0.2 * avg(l_quantity) as temp_avg from lineitem group by l_partkey ) as temp where p_partkey = l_partkey and p_brand = 'Brand#23' and p_container = 'MED BOX' and l_quantity < temp_avg and p_partkey = temp_l_partkey; -- $ID$ -- TPC-H/TPC-R Large Volume Customer Query (Q18) -- Function Query Definition -- Approved February 1998 explain select c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, sum(l_quantity) from customer, orders, lineitem where o_orderkey in ( select l_orderkey from lineitem group by l_orderkey having sum(l_quantity) > 300 ) and c_custkey = o_custkey and o_orderkey = l_orderkey group by c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice order by o_totalprice desc, o_orderdate limit 100; -- $ID$ -- TPC-H/TPC-R Discounted Revenue Query (Q19) -- Functional Query Definition -- Approved February 1998 explain select sum(l_extendedprice* (1 - l_discount)) as revenue from lineitem, part where ( p_partkey = l_partkey and p_brand = 'Brand#12' and p_container in ('SM CASE', 'SM BOX', 'SM PACK', 'SM PKG') and l_quantity >= 1 and l_quantity <= 1 + 10 and p_size between 1 and 5 and l_shipmode in ('AIR', 'AIR REG') and l_shipinstruct = 'DELIVER IN PERSON' ) or ( p_partkey = l_partkey and p_brand = 'Brand#23' and p_container in ('MED BAG', 'MED BOX', 'MED PKG', 'MED PACK') and l_quantity >= 10 and l_quantity <= 10 + 10 and p_size between 1 and 10 and l_shipmode in ('AIR', 'AIR REG') and l_shipinstruct = 'DELIVER IN PERSON' ) or ( p_partkey = l_partkey and p_brand = 'Brand#34' and p_container in ('LG CASE', 'LG BOX', 'LG PACK', 'LG PKG') and l_quantity >= 20 and l_quantity <= 20 + 10 and p_size between 1 and 15 and l_shipmode in ('AIR', 'AIR REG') and l_shipinstruct = 'DELIVER IN PERSON' ); -- $ID$ -- TPC-H/TPC-R Potential Part Promotion Query (Q20) -- Function Query Definition -- Approved February 1998 -- The query has been changed! explain select s_name, s_address from supplier, nation where s_suppkey in ( select ps_suppkey from partsupp, ( select l_partkey as temp_l_partkey, l_suppkey as temp_l_suppkey, 0.5 * sum(l_quantity) as temp_l_quantity from lineitem where l_shipdate >= date '1994-01-01' and l_shipdate < date '1994-01-01' + interval '1 year' group by l_partkey, l_suppkey ) as temp where temp_l_partkey = ps_partkey and temp_l_suppkey = ps_suppkey and ps_partkey in ( select p_partkey from part where p_name like 'forest%' ) and ps_availqty > temp_l_quantity ) and s_nationkey = n_nationkey and n_name = 'CANADA' order by s_name; -- $ID$ -- TPC-H/TPC-R Suppliers Who Kept Orders Waiting Query (Q21) -- Functional Query Definition -- Approved February 1998 explain select s_name, count(*) as numwait from supplier, lineitem l1, orders, nation where s_suppkey = l1.l_suppkey and o_orderkey = l1.l_orderkey and o_orderstatus = 'F' and l1.l_receiptdate > l1.l_commitdate and exists ( select * from lineitem l2 where l2.l_orderkey = l1.l_orderkey and l2.l_suppkey <> l1.l_suppkey ) and not exists ( select * from lineitem l3 where l3.l_orderkey = l1.l_orderkey and l3.l_suppkey <> l1.l_suppkey and l3.l_receiptdate > l3.l_commitdate ) and s_nationkey = n_nationkey and n_name = '<NAME>' group by s_name order by numwait desc, s_name limit 100; -- $ID$ -- TPC-H/TPC-R Global Sales Opportunity Query (Q22) -- Functional Query Definition -- Approved February 1998 explain select cntrycode, count(*) as numcust, sum(c_acctbal) as totacctbal from ( select substring(c_phone from 1 for 2) as cntrycode, c_acctbal from customer where substring(c_phone from 1 for 2) in ('13', '31', '23', '29', '30', '18', '17') and c_acctbal > ( select avg(c_acctbal) from customer where c_acctbal > 0.00 and substring(c_phone from 1 for 2) in ('13', '31', '23', '29', '30', '18', '17') ) and not exists ( select * from orders where o_custkey = c_custkey ) ) as custsale group by cntrycode order by cntrycode; -- Test on append explain select s_name, s_address from supplier, ( (select nation, o_year, sum(amount) as sum_profit from ( select n_nationkey as nation, extract(year from o_orderdate) as o_year, l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity as amount from part, supplier, lineitem, partsupp, orders, nation where s_suppkey = l_suppkey and ps_suppkey = l_suppkey and ps_partkey = l_partkey and p_partkey = l_partkey and o_orderkey = l_orderkey and s_nationkey = n_nationkey and p_name like '%green%' ) as profit group by nation, o_year union all select nation, o_year, sum(amount) as sum_profit from ( select n_nationkey as nation, extract(year from o_orderdate) as o_year, l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity as amount from part, supplier, lineitem, partsupp, orders, nation where s_suppkey = l_suppkey and ps_suppkey = l_suppkey and ps_partkey = l_partkey and p_partkey = l_partkey and o_orderkey = l_orderkey and s_nationkey = n_nationkey and p_name like '%green%' ) as profit group by nation, o_year order by nation, o_year desc) union (select nation, o_year, sum(amount) as sum_profit from ( select n_nationkey as nation, extract(year from o_orderdate) as o_year, l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity as amount from part, supplier, lineitem, partsupp, orders, nation where s_suppkey = l_suppkey and ps_suppkey = l_suppkey and ps_partkey = l_partkey and p_partkey = l_partkey and o_orderkey = l_orderkey and s_nationkey = n_nationkey and p_name like '%green%' ) as profit group by nation, o_year order by nation, o_year desc)) nation where s_suppkey in ( select ps_suppkey from partsupp, ( select l_partkey as temp_l_partkey, l_suppkey as temp_l_suppkey, 0.5 * sum(l_quantity) as temp_l_quantity from lineitem where l_shipdate >= date '1994-01-01' and l_shipdate < date '1994-01-01' + interval '1 year' group by l_partkey, l_suppkey ) as temp where temp_l_partkey = ps_partkey and temp_l_suppkey = ps_suppkey and ps_partkey in ( select p_partkey from part where p_name like 'forest%' ) and ps_availqty > temp_l_quantity ) and s_nationkey = nation order by s_name; -- Test on multi gather explain select s_name, count(*) as numwait from supplier, lineitem l1, orders, nation where s_suppkey = l1.l_suppkey and o_orderkey = l1.l_orderkey and o_orderstatus = 'F' and l1.l_receiptdate > l1.l_commitdate and exists ( select * from lineitem l2 where l2.l_orderkey = l1.l_orderkey and l2.l_suppkey <> l1.l_suppkey ) and not exists ( select * from lineitem l3 where l3.l_orderkey = l1.l_orderkey and l3.l_suppkey <> l1.l_suppkey and l3.l_receiptdate > l3.l_commitdate ) and s_nationkey = n_nationkey and n_name = '<NAME>' group by s_name order by numwait desc, s_name limit (select count(*) as numwait from supplier, lineitem l1, orders, nation where s_suppkey = l1.l_suppkey and o_orderkey = l1.l_orderkey and o_orderstatus = 'F' and l1.l_receiptdate > l1.l_commitdate and exists ( select * from lineitem l2 where l2.l_orderkey = l1.l_orderkey and l2.l_suppkey <> l1.l_suppkey ) and not exists ( select * from lineitem l3 where l3.l_orderkey = l1.l_orderkey and l3.l_suppkey <> l1.l_suppkey and l3.l_receiptdate > l3.l_commitdate ) and s_nationkey = n_nationkey and n_name = '<NAME>'); -- Test on mergejoin set enable_hashjoin=off; set enable_mergejoin=on; set enable_nestloop=off; -- $ID$ -- TPC-H/TPC-R Pricing Summary Report Query (Q1) -- Functional Query Definition -- Approved February 1998 explain select l_returnflag, l_linestatus, sum(l_quantity) as sum_qty, sum(l_extendedprice) as sum_base_price, sum(l_extendedprice * (1 - l_discount)) as sum_disc_price, sum(l_extendedprice * (1 - l_discount) * (1 + l_tax)/1000) as sum_charge, --add /1000 avg(l_quantity) as avg_qty, avg(l_extendedprice) as avg_price, avg(l_discount) as avg_disc, count(*) as count_order from lineitem where l_shipdate <= date '1998-12-01' - interval '3 day' group by l_returnflag, l_linestatus order by l_returnflag, l_linestatus; -- $ID$ -- TPC-H/TPC-R Minimum Cost Supplier Query (Q2) -- Functional Query Definition -- Approved February 1998 explain select s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment from part, supplier, partsupp, nation, region, ( select ps_partkey as temp_ps_partkey, min(ps_supplycost) as temp_min_ps_supplycost from partsupp, supplier, nation, region where s_suppkey = ps_suppkey and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = 'EUROPE' group by ps_partkey ) as temp where p_partkey = temp_ps_partkey and p_partkey = ps_partkey and s_suppkey = ps_suppkey and p_size = 15 and p_type like '%BRASS' and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = 'EUROPE' and ps_supplycost = temp_min_ps_supplycost order by s_acctbal desc, n_name, s_name, p_partkey limit 100 ; -- $ID$ -- TPC-H/TPC-R Shipping Priority Query (Q3) -- Functional Query Definition -- Approved February 1998 explain select l_orderkey, sum(l_extendedprice * (1 - l_discount)) as revenue, o_orderdate, o_shippriority from customer, orders, lineitem where c_mktsegment = 'BUILDING' and c_custkey = o_custkey and l_orderkey = o_orderkey and o_orderdate < '1995-03-15'::date and l_shipdate > '1995-03-15'::date group by l_orderkey, o_orderdate, o_shippriority order by revenue desc, o_orderdate limit 10 ; -- $ID$ -- TPC-H/TPC-R Order Priority Checking Query (Q4) -- Functional Query Definition -- Approved February 1998 explain select o_orderpriority, count(*) as order_count from orders where o_orderdate >= '1993-07-01'::date and o_orderdate < '1993-07-01'::date + interval '3 month' and exists ( select * from lineitem where l_orderkey = o_orderkey and l_commitdate < l_receiptdate ) group by o_orderpriority order by o_orderpriority; -- $ID$ -- TPC-H/TPC-R Local Supplier Volume Query (Q5) -- Functional Query Definition -- Approved February 1998 explain select n_name, sum(l_extendedprice * (1 - l_discount)) as revenue from customer, orders, lineitem, supplier, nation, region where c_custkey = o_custkey and l_orderkey = o_orderkey and l_suppkey = s_suppkey and c_nationkey = s_nationkey and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = 'ASIA' and o_orderdate >= '1994-01-01'::date and o_orderdate < '1994-01-01'::date + interval '1 year' group by n_name order by revenue desc; -- $ID$ -- TPC-H/TPC-R Forecasting Revenue Change Query (Q6) -- Functional Query Definition -- Approved February 1998 explain select sum(l_extendedprice * l_discount) as revenue from lineitem where l_shipdate >= '1994-01-01'::date and l_shipdate < '1994-01-01'::date + interval '1 year' and l_discount between 0.06 - 0.01 and 0.06 + 0.01 and l_quantity < 24; -- $ID$ -- TPC-H/TPC-R Volume Shipping Query (Q7) -- Functional Query Definition -- Approved February 1998 explain select supp_nation, cust_nation, l_year, sum(volume) as revenue from ( select n1.n_name as supp_nation, n2.n_name as cust_nation, extract(year from l_shipdate) as l_year, l_extendedprice * (1 - l_discount) as volume from supplier, lineitem, orders, customer, nation n1, nation n2 where s_suppkey = l_suppkey and o_orderkey = l_orderkey and c_custkey = o_custkey and s_nationkey = n1.n_nationkey and c_nationkey = n2.n_nationkey and ( (n1.n_name = 'FRANCE' and n2.n_name = 'GERMANY') or (n1.n_name = 'GERMANY' and n2.n_name = 'FRANCE') ) and l_shipdate between date '1995-01-01' and date '1996-12-31' ) as shipping group by supp_nation, cust_nation, l_year order by supp_nation, cust_nation, l_year; -- $ID$ -- TPC-H/TPC-R National Market Share Query (Q8) -- Functional Query Definition -- Approved February 1998 explain select o_year, sum(case when nation = 'BRAZIL' then volume else 0 end) / sum(volume) as mkt_share from ( select extract(year from o_orderdate) as o_year, l_extendedprice * (1 - l_discount) as volume, n2.n_name as nation from part, supplier, lineitem, orders, customer, nation n1, nation n2, region where p_partkey = l_partkey and s_suppkey = l_suppkey and l_orderkey = o_orderkey and o_custkey = c_custkey and c_nationkey = n1.n_nationkey and n1.n_regionkey = r_regionkey and r_name = 'AMERICA' and s_nationkey = n2.n_nationkey and o_orderdate between date '1995-01-01' and date '1996-12-31' and p_type = 'ECONOMY ANODIZED STEEL' ) as all_nations group by o_year order by o_year; -- $ID$ -- TPC-H/TPC-R Product Type Profit Measure Query (Q9) -- Functional Query Definition -- Approved February 1998 explain select nation, o_year, sum(amount) as sum_profit from ( select n_name as nation, extract(year from o_orderdate) as o_year, l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity as amount from part, supplier, lineitem, partsupp, orders, nation where s_suppkey = l_suppkey and ps_suppkey = l_suppkey and ps_partkey = l_partkey and p_partkey = l_partkey and o_orderkey = l_orderkey and s_nationkey = n_nationkey and p_name like '%green%' ) as profit group by nation, o_year order by nation, o_year desc; -- $ID$ -- TPC-H/TPC-R Returned Item Reporting Query (Q10) -- Functional Query Definition -- Approved February 1998 explain select c_custkey, c_name, sum(l_extendedprice * (1 - l_discount)) as revenue, c_acctbal, n_name, c_address, c_phone, c_comment from customer, orders, lineitem, nation where c_custkey = o_custkey and l_orderkey = o_orderkey and o_orderdate >= date '1993-10-01' and o_orderdate < date '1993-10-01' + interval '3 month' and l_returnflag = 'R' and c_nationkey = n_nationkey group by c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment order by revenue desc limit 20 ; -- $ID$ -- TPC-H/TPC-R Important Stock Identification Query (Q11) -- Functional Query Definition -- Approved February 1998 explain select ps_partkey, sum(ps_supplycost * ps_availqty) as value from partsupp, supplier, nation where ps_suppkey = s_suppkey and s_nationkey = n_nationkey and n_name = 'GERMANY' group by ps_partkey having sum(ps_supplycost * ps_availqty) > ( select sum(ps_supplycost * ps_availqty) * 0.0001/100 from partsupp, supplier, nation where ps_suppkey = s_suppkey and s_nationkey = n_nationkey and n_name = 'GERMANY' ) order by value desc; -- $ID$ -- TPC-H/TPC-R Shipping Modes and Order Priority Query (Q12) -- Functional Query Definition -- Approved February 1998 explain select l_shipmode, sum(case when o_orderpriority = '1-URGENT' or o_orderpriority = '2-HIGH' then 1 else 0 end) as high_line_count, sum(case when o_orderpriority <> '1-URGENT' and o_orderpriority <> '2-HIGH' then 1 else 0 end) as low_line_count from orders, lineitem where o_orderkey = l_orderkey and l_shipmode in ('MAIL', 'SHIP') and l_commitdate < l_receiptdate and l_shipdate < l_commitdate and l_receiptdate >= date '1994-01-01' and l_receiptdate < date '1994-01-01' + interval '1 year' group by l_shipmode order by l_shipmode; -- $ID$ -- TPC-H/TPC-R Customer Distribution Query (Q13) -- Functional Query Definition -- Approved February 1998 explain select c_count, count(*) as custdist from ( select c_custkey, count(*) from customer left outer join orders on c_custkey = o_custkey and o_comment not like '%special%request%' group by c_custkey ) as c_orders (c_custkey, c_count) group by c_count order by custdist desc, c_count desc; -- $ID$ -- TPC-H/TPC-R Promotion Effect Query (Q14) -- Functional Query Definition -- Approved February 1998 explain select 100 * sum(case when p_type like 'PROMO%' then l_extendedprice * (1 - l_discount)/10 else 0 end) / sum(l_extendedprice * (1 - l_discount)/1000) as promo_revenue --add /1000 from lineitem, part where l_partkey = p_partkey and l_shipdate >= date '1995-09-01' and l_shipdate < date '1995-09-01' + interval '1 month'; -- $ID$ -- TPC-H/TPC-R Top Supplier Query (Q15) -- Functional Query Definition -- Approved February 1998 explain with revenue (supplier_no, total_revenue) as --change view to cte ( select l_suppkey, sum(l_extendedprice * (1 - l_discount)) from lineitem where l_shipdate >= date '1996-01-01' and l_shipdate < date '1996-01-01' + interval '3 month' group by l_suppkey ) select s_suppkey, s_name, s_address, s_phone, total_revenue from supplier, revenue where s_suppkey = supplier_no and total_revenue = ( select max(total_revenue) from revenue ) order by s_suppkey; -- $ID$ -- TPC-H/TPC-R Parts/Supplier Relationship Query (Q16) -- Functional Query Definition -- Approved February 1998 explain select p_brand, p_type, p_size, count(ps_suppkey) as supplier_cnt --remove distinct from partsupp, part where p_partkey = ps_partkey and p_brand <> 'Brand#45' and p_type not like 'MEDIUM POLISHED%' and p_size in (49, 14, 23, 45, 19, 3, 36, 9) and ps_suppkey not in ( select s_suppkey from supplier where s_comment like '%Customer%Complaints%' ) group by p_brand, p_type, p_size order by supplier_cnt desc, p_brand, p_type, p_size limit 100 ; -- $ID$ -- TPC-H/TPC-R Small-Quantity-Order Revenue Query (Q17) -- Functional Query Definition -- Approved February 1998 -- Query modified: a subquery is moved from WHERE clause to FROM clause. explain select sum(l_extendedprice) / 7.0 as avg_yearly from lineitem, part, (select l_partkey as temp_l_partkey, 0.2 * avg(l_quantity) as temp_avg from lineitem group by l_partkey ) as temp where p_partkey = l_partkey and p_brand = 'Brand#23' and p_container = 'MED BOX' and l_quantity < temp_avg and p_partkey = temp_l_partkey; -- $ID$ -- TPC-H/TPC-R Large Volume Customer Query (Q18) -- Function Query Definition -- Approved February 1998 explain select c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, sum(l_quantity) from customer, orders, lineitem where o_orderkey in ( select l_orderkey from lineitem group by l_orderkey having sum(l_quantity) > 300 ) and c_custkey = o_custkey and o_orderkey = l_orderkey group by c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice order by o_totalprice desc, o_orderdate limit 100; -- $ID$ -- TPC-H/TPC-R Discounted Revenue Query (Q19) -- Functional Query Definition -- Approved February 1998 explain select sum(l_extendedprice* (1 - l_discount)) as revenue from lineitem, part where ( p_partkey = l_partkey and p_brand = 'Brand#12' and p_container in ('SM CASE', 'SM BOX', 'SM PACK', 'SM PKG') and l_quantity >= 1 and l_quantity <= 1 + 10 and p_size between 1 and 5 and l_shipmode in ('AIR', 'AIR REG') and l_shipinstruct = 'DELIVER IN PERSON' ) or ( p_partkey = l_partkey and p_brand = 'Brand#23' and p_container in ('MED BAG', 'MED BOX', 'MED PKG', 'MED PACK') and l_quantity >= 10 and l_quantity <= 10 + 10 and p_size between 1 and 10 and l_shipmode in ('AIR', 'AIR REG') and l_shipinstruct = 'DELIVER IN PERSON' ) or ( p_partkey = l_partkey and p_brand = 'Brand#34' and p_container in ('LG CASE', 'LG BOX', 'LG PACK', 'LG PKG') and l_quantity >= 20 and l_quantity <= 20 + 10 and p_size between 1 and 15 and l_shipmode in ('AIR', 'AIR REG') and l_shipinstruct = 'DELIVER IN PERSON' ); -- $ID$ -- TPC-H/TPC-R Potential Part Promotion Query (Q20) -- Function Query Definition -- Approved February 1998 -- The query has been changed! explain select s_name, s_address from supplier, nation where s_suppkey in ( select ps_suppkey from partsupp, ( select l_partkey as temp_l_partkey, l_suppkey as temp_l_suppkey, 0.5 * sum(l_quantity) as temp_l_quantity from lineitem where l_shipdate >= date '1994-01-01' and l_shipdate < date '1994-01-01' + interval '1 year' group by l_partkey, l_suppkey ) as temp where temp_l_partkey = ps_partkey and temp_l_suppkey = ps_suppkey and ps_partkey in ( select p_partkey from part where p_name like 'forest%' ) and ps_availqty > temp_l_quantity ) and s_nationkey = n_nationkey and n_name = 'CANADA' order by s_name; -- $ID$ -- TPC-H/TPC-R Suppliers Who Kept Orders Waiting Query (Q21) -- Functional Query Definition -- Approved February 1998 explain select s_name, count(*) as numwait from supplier, lineitem l1, orders, nation where s_suppkey = l1.l_suppkey and o_orderkey = l1.l_orderkey and o_orderstatus = 'F' and l1.l_receiptdate > l1.l_commitdate and exists ( select * from lineitem l2 where l2.l_orderkey = l1.l_orderkey and l2.l_suppkey <> l1.l_suppkey ) and not exists ( select * from lineitem l3 where l3.l_orderkey = l1.l_orderkey and l3.l_suppkey <> l1.l_suppkey and l3.l_receiptdate > l3.l_commitdate ) and s_nationkey = n_nationkey and n_name = '<NAME>' group by s_name order by numwait desc, s_name limit 100; -- $ID$ -- TPC-H/TPC-R Global Sales Opportunity Query (Q22) -- Functional Query Definition -- Approved February 1998 explain select cntrycode, count(*) as numcust, sum(c_acctbal) as totacctbal from ( select substring(c_phone from 1 for 2) as cntrycode, c_acctbal from customer where substring(c_phone from 1 for 2) in ('13', '31', '23', '29', '30', '18', '17') and c_acctbal > ( select avg(c_acctbal) from customer where c_acctbal > 0.00 and substring(c_phone from 1 for 2) in ('13', '31', '23', '29', '30', '18', '17') ) and not exists ( select * from orders where o_custkey = c_custkey ) ) as custsale group by cntrycode order by cntrycode; -- Test on nestloop set enable_hashjoin=off; set enable_mergejoin=off; set enable_nestloop=on; -- $ID$ -- TPC-H/TPC-R Pricing Summary Report Query (Q1) -- Functional Query Definition -- Approved February 1998 explain select l_returnflag, l_linestatus, sum(l_quantity) as sum_qty, sum(l_extendedprice) as sum_base_price, sum(l_extendedprice * (1 - l_discount)) as sum_disc_price, sum(l_extendedprice * (1 - l_discount) * (1 + l_tax)/1000) as sum_charge, --add /1000 avg(l_quantity) as avg_qty, avg(l_extendedprice) as avg_price, avg(l_discount) as avg_disc, count(*) as count_order from lineitem where l_shipdate <= date '1998-12-01' - interval '3 day' group by l_returnflag, l_linestatus order by l_returnflag, l_linestatus; -- $ID$ -- TPC-H/TPC-R Minimum Cost Supplier Query (Q2) -- Functional Query Definition -- Approved February 1998 explain select s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment from part, supplier, partsupp, nation, region, ( select ps_partkey as temp_ps_partkey, min(ps_supplycost) as temp_min_ps_supplycost from partsupp, supplier, nation, region where s_suppkey = ps_suppkey and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = 'EUROPE' group by ps_partkey ) as temp where p_partkey = temp_ps_partkey and p_partkey = ps_partkey and s_suppkey = ps_suppkey and p_size = 15 and p_type like '%BRASS' and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = 'EUROPE' and ps_supplycost = temp_min_ps_supplycost order by s_acctbal desc, n_name, s_name, p_partkey limit 100 ; -- $ID$ -- TPC-H/TPC-R Shipping Priority Query (Q3) -- Functional Query Definition -- Approved February 1998 explain select l_orderkey, sum(l_extendedprice * (1 - l_discount)) as revenue, o_orderdate, o_shippriority from customer, orders, lineitem where c_mktsegment = 'BUILDING' and c_custkey = o_custkey and l_orderkey = o_orderkey and o_orderdate < '1995-03-15'::date and l_shipdate > '1995-03-15'::date group by l_orderkey, o_orderdate, o_shippriority order by revenue desc, o_orderdate limit 10 ; -- $ID$ -- TPC-H/TPC-R Order Priority Checking Query (Q4) -- Functional Query Definition -- Approved February 1998 explain select o_orderpriority, count(*) as order_count from orders where o_orderdate >= '1993-07-01'::date and o_orderdate < '1993-07-01'::date + interval '3 month' and exists ( select * from lineitem where l_orderkey = o_orderkey and l_commitdate < l_receiptdate ) group by o_orderpriority order by o_orderpriority; -- $ID$ -- TPC-H/TPC-R Local Supplier Volume Query (Q5) -- Functional Query Definition -- Approved February 1998 explain select n_name, sum(l_extendedprice * (1 - l_discount)) as revenue from customer, orders, lineitem, supplier, nation, region where c_custkey = o_custkey and l_orderkey = o_orderkey and l_suppkey = s_suppkey and c_nationkey = s_nationkey and s_nationkey = n_nationkey and n_regionkey = r_regionkey and r_name = 'ASIA' and o_orderdate >= '1994-01-01'::date and o_orderdate < '1994-01-01'::date + interval '1 year' group by n_name order by revenue desc; -- $ID$ -- TPC-H/TPC-R Forecasting Revenue Change Query (Q6) -- Functional Query Definition -- Approved February 1998 explain select sum(l_extendedprice * l_discount) as revenue from lineitem where l_shipdate >= '1994-01-01'::date and l_shipdate < '1994-01-01'::date + interval '1 year' and l_discount between 0.06 - 0.01 and 0.06 + 0.01 and l_quantity < 24; -- $ID$ -- TPC-H/TPC-R Volume Shipping Query (Q7) -- Functional Query Definition -- Approved February 1998 explain select supp_nation, cust_nation, l_year, sum(volume) as revenue from ( select n1.n_name as supp_nation, n2.n_name as cust_nation, extract(year from l_shipdate) as l_year, l_extendedprice * (1 - l_discount) as volume from supplier, lineitem, orders, customer, nation n1, nation n2 where s_suppkey = l_suppkey and o_orderkey = l_orderkey and c_custkey = o_custkey and s_nationkey = n1.n_nationkey and c_nationkey = n2.n_nationkey and ( (n1.n_name = 'FRANCE' and n2.n_name = 'GERMANY') or (n1.n_name = 'GERMANY' and n2.n_name = 'FRANCE') ) and l_shipdate between date '1995-01-01' and date '1996-12-31' ) as shipping group by supp_nation, cust_nation, l_year order by supp_nation, cust_nation, l_year; -- $ID$ -- TPC-H/TPC-R National Market Share Query (Q8) -- Functional Query Definition -- Approved February 1998 explain select o_year, sum(case when nation = 'BRAZIL' then volume else 0 end) / sum(volume) as mkt_share from ( select extract(year from o_orderdate) as o_year, l_extendedprice * (1 - l_discount) as volume, n2.n_name as nation from part, supplier, lineitem, orders, customer, nation n1, nation n2, region where p_partkey = l_partkey and s_suppkey = l_suppkey and l_orderkey = o_orderkey and o_custkey = c_custkey and c_nationkey = n1.n_nationkey and n1.n_regionkey = r_regionkey and r_name = 'AMERICA' and s_nationkey = n2.n_nationkey and o_orderdate between date '1995-01-01' and date '1996-12-31' and p_type = 'ECONOMY ANODIZED STEEL' ) as all_nations group by o_year order by o_year; -- $ID$ -- TPC-H/TPC-R Product Type Profit Measure Query (Q9) -- Functional Query Definition -- Approved February 1998 explain select nation, o_year, sum(amount) as sum_profit from ( select n_name as nation, extract(year from o_orderdate) as o_year, l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity as amount from part, supplier, lineitem, partsupp, orders, nation where s_suppkey = l_suppkey and ps_suppkey = l_suppkey and ps_partkey = l_partkey and p_partkey = l_partkey and o_orderkey = l_orderkey and s_nationkey = n_nationkey and p_name like '%green%' ) as profit group by nation, o_year order by nation, o_year desc; -- $ID$ -- TPC-H/TPC-R Returned Item Reporting Query (Q10) -- Functional Query Definition -- Approved February 1998 explain select c_custkey, c_name, sum(l_extendedprice * (1 - l_discount)) as revenue, c_acctbal, n_name, c_address, c_phone, c_comment from customer, orders, lineitem, nation where c_custkey = o_custkey and l_orderkey = o_orderkey and o_orderdate >= date '1993-10-01' and o_orderdate < date '1993-10-01' + interval '3 month' and l_returnflag = 'R' and c_nationkey = n_nationkey group by c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment order by revenue desc limit 20 ; -- $ID$ -- TPC-H/TPC-R Important Stock Identification Query (Q11) -- Functional Query Definition -- Approved February 1998 explain select ps_partkey, sum(ps_supplycost * ps_availqty) as value from partsupp, supplier, nation where ps_suppkey = s_suppkey and s_nationkey = n_nationkey and n_name = 'GERMANY' group by ps_partkey having sum(ps_supplycost * ps_availqty) > ( select sum(ps_supplycost * ps_availqty) * 0.0001/100 from partsupp, supplier, nation where ps_suppkey = s_suppkey and s_nationkey = n_nationkey and n_name = 'GERMANY' ) order by value desc; -- $ID$ -- TPC-H/TPC-R Shipping Modes and Order Priority Query (Q12) -- Functional Query Definition -- Approved February 1998 explain select l_shipmode, sum(case when o_orderpriority = '1-URGENT' or o_orderpriority = '2-HIGH' then 1 else 0 end) as high_line_count, sum(case when o_orderpriority <> '1-URGENT' and o_orderpriority <> '2-HIGH' then 1 else 0 end) as low_line_count from orders, lineitem where o_orderkey = l_orderkey and l_shipmode in ('MAIL', 'SHIP') and l_commitdate < l_receiptdate and l_shipdate < l_commitdate and l_receiptdate >= date '1994-01-01' and l_receiptdate < date '1994-01-01' + interval '1 year' group by l_shipmode order by l_shipmode; -- $ID$ -- TPC-H/TPC-R Customer Distribution Query (Q13) -- Functional Query Definition -- Approved February 1998 explain select c_count, count(*) as custdist from ( select c_custkey, count(*) from customer left outer join orders on c_custkey = o_custkey and o_comment not like '%special%request%' group by c_custkey ) as c_orders (c_custkey, c_count) group by c_count order by custdist desc, c_count desc; -- $ID$ -- TPC-H/TPC-R Promotion Effect Query (Q14) -- Functional Query Definition -- Approved February 1998 explain select 100 * sum(case when p_type like 'PROMO%' then l_extendedprice * (1 - l_discount)/10 else 0 end) / sum(l_extendedprice * (1 - l_discount)/1000) as promo_revenue --add /1000 from lineitem, part where l_partkey = p_partkey and l_shipdate >= date '1995-09-01' and l_shipdate < date '1995-09-01' + interval '1 month'; -- $ID$ -- TPC-H/TPC-R Top Supplier Query (Q15) -- Functional Query Definition -- Approved February 1998 explain with revenue (supplier_no, total_revenue) as --change view to cte ( select l_suppkey, sum(l_extendedprice * (1 - l_discount)) from lineitem where l_shipdate >= date '1996-01-01' and l_shipdate < date '1996-01-01' + interval '3 month' group by l_suppkey ) select s_suppkey, s_name, s_address, s_phone, total_revenue from supplier, revenue where s_suppkey = supplier_no and total_revenue = ( select max(total_revenue) from revenue ) order by s_suppkey; -- $ID$ -- TPC-H/TPC-R Parts/Supplier Relationship Query (Q16) -- Functional Query Definition -- Approved February 1998 explain select p_brand, p_type, p_size, count(ps_suppkey) as supplier_cnt --remove distinct from partsupp, part where p_partkey = ps_partkey and p_brand <> 'Brand#45' and p_type not like 'MEDIUM POLISHED%' and p_size in (49, 14, 23, 45, 19, 3, 36, 9) and ps_suppkey not in ( select s_suppkey from supplier where s_comment like '%Customer%Complaints%' ) group by p_brand, p_type, p_size order by supplier_cnt desc, p_brand, p_type, p_size limit 100 ; -- $ID$ -- TPC-H/TPC-R Small-Quantity-Order Revenue Query (Q17) -- Functional Query Definition -- Approved February 1998 -- Query modified: a subquery is moved from WHERE clause to FROM clause. explain select sum(l_extendedprice) / 7.0 as avg_yearly from lineitem, part, (select l_partkey as temp_l_partkey, 0.2 * avg(l_quantity) as temp_avg from lineitem group by l_partkey ) as temp where p_partkey = l_partkey and p_brand = 'Brand#23' and p_container = 'MED BOX' and l_quantity < temp_avg and p_partkey = temp_l_partkey; -- $ID$ -- TPC-H/TPC-R Large Volume Customer Query (Q18) -- Function Query Definition -- Approved February 1998 explain select c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, sum(l_quantity) from customer, orders, lineitem where o_orderkey in ( select l_orderkey from lineitem group by l_orderkey having sum(l_quantity) > 300 ) and c_custkey = o_custkey and o_orderkey = l_orderkey group by c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice order by o_totalprice desc, o_orderdate limit 100; -- $ID$ -- TPC-H/TPC-R Discounted Revenue Query (Q19) -- Functional Query Definition -- Approved February 1998 explain select sum(l_extendedprice* (1 - l_discount)) as revenue from lineitem, part where ( p_partkey = l_partkey and p_brand = 'Brand#12' and p_container in ('SM CASE', 'SM BOX', 'SM PACK', 'SM PKG') and l_quantity >= 1 and l_quantity <= 1 + 10 and p_size between 1 and 5 and l_shipmode in ('AIR', 'AIR REG') and l_shipinstruct = 'DELIVER IN PERSON' ) or ( p_partkey = l_partkey and p_brand = 'Brand#23' and p_container in ('MED BAG', 'MED BOX', 'MED PKG', 'MED PACK') and l_quantity >= 10 and l_quantity <= 10 + 10 and p_size between 1 and 10 and l_shipmode in ('AIR', 'AIR REG') and l_shipinstruct = 'DELIVER IN PERSON' ) or ( p_partkey = l_partkey and p_brand = 'Brand#34' and p_container in ('LG CASE', 'LG BOX', 'LG PACK', 'LG PKG') and l_quantity >= 20 and l_quantity <= 20 + 10 and p_size between 1 and 15 and l_shipmode in ('AIR', 'AIR REG') and l_shipinstruct = 'DELIVER IN PERSON' ); -- $ID$ -- TPC-H/TPC-R Potential Part Promotion Query (Q20) -- Function Query Definition -- Approved February 1998 -- The query has been changed! explain select s_name, s_address from supplier, nation where s_suppkey in ( select ps_suppkey from partsupp, ( select l_partkey as temp_l_partkey, l_suppkey as temp_l_suppkey, 0.5 * sum(l_quantity) as temp_l_quantity from lineitem where l_shipdate >= date '1994-01-01' and l_shipdate < date '1994-01-01' + interval '1 year' group by l_partkey, l_suppkey ) as temp where temp_l_partkey = ps_partkey and temp_l_suppkey = ps_suppkey and ps_partkey in ( select p_partkey from part where p_name like 'forest%' ) and ps_availqty > temp_l_quantity ) and s_nationkey = n_nationkey and n_name = 'CANADA' order by s_name; -- $ID$ -- TPC-H/TPC-R Suppliers Who Kept Orders Waiting Query (Q21) -- Functional Query Definition -- Approved February 1998 explain select s_name, count(*) as numwait from supplier, lineitem l1, orders, nation where s_suppkey = l1.l_suppkey and o_orderkey = l1.l_orderkey and o_orderstatus = 'F' and l1.l_receiptdate > l1.l_commitdate and exists ( select * from lineitem l2 where l2.l_orderkey = l1.l_orderkey and l2.l_suppkey <> l1.l_suppkey ) and not exists ( select * from lineitem l3 where l3.l_orderkey = l1.l_orderkey and l3.l_suppkey <> l1.l_suppkey and l3.l_receiptdate > l3.l_commitdate ) and s_nationkey = n_nationkey and n_name = '<NAME>' group by s_name order by numwait desc, s_name limit 100; -- $ID$ -- TPC-H/TPC-R Global Sales Opportunity Query (Q22) -- Functional Query Definition -- Approved February 1998 explain select cntrycode, count(*) as numcust, sum(c_acctbal) as totacctbal from ( select substring(c_phone from 1 for 2) as cntrycode, c_acctbal from customer where substring(c_phone from 1 for 2) in ('13', '31', '23', '29', '30', '18', '17') and c_acctbal > ( select avg(c_acctbal) from customer where c_acctbal > 0.00 and substring(c_phone from 1 for 2) in ('13', '31', '23', '29', '30', '18', '17') ) and not exists ( select * from orders where o_custkey = c_custkey ) ) as custsale group by cntrycode order by cntrycode; \o
<gh_stars>0 -- MySQL dump 10.14 Distrib 5.5.52-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: troyhsco_sweettime -- ------------------------------------------------------ -- Server version 5.5.52-MariaDB /*!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 `employees` -- DROP TABLE IF EXISTS `employees`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `employees` ( `ID` mediumint(9) NOT NULL AUTO_INCREMENT, `firstName` varchar(20) DEFAULT NULL, `lastName` varchar(20) DEFAULT NULL, `eMail` varchar(35) DEFAULT NULL, `employeeTitle` varchar(20) DEFAULT NULL, `password` varchar(255) DEFAULT NULL, `adminFlag` enum('Yes','No') DEFAULT NULL, `rate` decimal(6,2) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `employees` -- LOCK TABLES `employees` WRITE; /*!40000 ALTER TABLE `employees` DISABLE KEYS */; INSERT INTO `employees` (`ID`, `firstName`, `lastName`, `eMail`, `employeeTitle`, `password`, `adminFlag`, `rate`) VALUES (7,'Sam','Sample','<EMAIL>','Tax Preparer','$2y$10$n0WFcYzl/g1hEtLeY2E2Dum6tNt3M/OVyrWkalOJLmc2WhHpM4I7S','No',17.00),(8,'Troy','Scott','<EMAIL>','Developer','$2y$10$uKWQZl8TJOeYo67LShWveOoqiL/4bntgv0/o7Alaa1QXyna2Yv6RK','Yes',17.00); /*!40000 ALTER TABLE `employees` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `timecards` -- DROP TABLE IF EXISTS `timecards`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `timecards` ( `ID` mediumint(9) NOT NULL AUTO_INCREMENT, `payPeriodStart` date DEFAULT NULL, `payPeriodEnd` date DEFAULT NULL, `subTotalRegWk1Tax` decimal(4,2) DEFAULT NULL, `subTotalRegWk1Edu` decimal(4,2) DEFAULT NULL, `subTotalOTWk1Tax` decimal(4,2) DEFAULT NULL, `subTotalOTWk1Edu` decimal(4,2) DEFAULT NULL, `subTotalRegWk2Tax` decimal(4,2) DEFAULT NULL, `subTotalRegWk2Edu` decimal(4,2) DEFAULT NULL, `subTotalOTWk2Tax` decimal(4,2) DEFAULT NULL, `subTotalOTWk2Edu` decimal(4,2) DEFAULT NULL, `twoWeekTotalRegTax` decimal(4,2) DEFAULT NULL, `twoWeekTotalRegEdu` decimal(4,2) DEFAULT NULL, `twoWeekTotalOTTax` decimal(4,2) DEFAULT NULL, `twoWeekTotalOTEdu` decimal(4,2) DEFAULT NULL, `twoWeekTotalComb` decimal(5,2) DEFAULT NULL, `employeeId` mediumint(9) DEFAULT NULL, `payRate` decimal(6,2) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `timecards` -- LOCK TABLES `timecards` WRITE; /*!40000 ALTER TABLE `timecards` DISABLE KEYS */; INSERT INTO `timecards` (`ID`, `payPeriodStart`, `payPeriodEnd`, `subTotalRegWk1Tax`, `subTotalRegWk1Edu`, `subTotalOTWk1Tax`, `subTotalOTWk1Edu`, `subTotalRegWk2Tax`, `subTotalRegWk2Edu`, `subTotalOTWk2Tax`, `subTotalOTWk2Edu`, `twoWeekTotalRegTax`, `twoWeekTotalRegEdu`, `twoWeekTotalOTTax`, `twoWeekTotalOTEdu`, `twoWeekTotalComb`, `employeeId`, `payRate`) VALUES (4,'2016-10-01',NULL,40.00,0.00,4.25,0.00,0.00,0.00,0.00,0.00,40.00,0.00,4.25,0.00,44.25,2,45.00),(7,'2016-10-15',NULL,0.00,8.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,8.00,0.00,0.00,8.00,2,45.00),(8,'2016-10-29',NULL,19.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,19.00,0.00,0.00,0.00,19.00,2,45.00),(9,'2016-10-01',NULL,24.75,5.25,0.00,0.00,37.00,3.00,0.00,5.75,61.75,8.25,0.00,5.75,75.75,7,17.00),(10,'2016-10-15',NULL,20.25,8.00,0.00,0.00,0.00,0.00,0.00,0.00,20.25,8.00,0.00,0.00,28.25,7,17.00),(11,'2016-10-29',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,7,17.00); /*!40000 ALTER TABLE `timecards` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `timerecords` -- DROP TABLE IF EXISTS `timerecords`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `timerecords` ( `ID` mediumint(9) NOT NULL AUTO_INCREMENT, `date` date DEFAULT NULL, `timeInAM` time DEFAULT NULL, `timeOutAM` time DEFAULT NULL, `timeInPM` time DEFAULT NULL, `timeOUtPM` time DEFAULT NULL, `hrsAM` decimal(4,2) DEFAULT NULL, `hrsPM` decimal(4,2) DEFAULT NULL, `notes` text, `workType` enum('Tax','Edu') DEFAULT NULL, `payRate` decimal(6,2) DEFAULT NULL, `hrsTax` decimal(4,2) DEFAULT NULL, `hrsEdu` decimal(4,2) DEFAULT NULL, `timecardId` mediumint(9) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=155 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `timerecords` -- LOCK TABLES `timerecords` WRITE; /*!40000 ALTER TABLE `timerecords` DISABLE KEYS */; INSERT INTO `timerecords` (`ID`, `date`, `timeInAM`, `timeOutAM`, `timeInPM`, `timeOUtPM`, `hrsAM`, `hrsPM`, `notes`, `workType`, `payRate`, `hrsTax`, `hrsEdu`, `timecardId`) VALUES (43,'2016-10-01','08:00:00','11:45:00','13:00:00','18:00:00',3.75,5.00,'Tax prep for Smith','Tax',NULL,8.75,0.00,4),(44,'2016-10-02','08:00:00','12:00:00','13:00:00','18:00:00',4.00,5.00,'','Tax',NULL,9.00,0.00,4),(45,'2016-10-03','08:00:00','12:00:00','13:00:00','18:00:00',4.00,5.00,'','Tax',NULL,9.00,0.00,4),(46,'2016-10-04','08:00:00','12:00:00','12:30:00','17:30:00',4.00,5.00,'','Tax',NULL,9.00,0.00,4),(47,'2016-10-05','07:45:00','11:30:00','12:15:00','17:00:00',3.75,4.75,'','Tax',NULL,8.50,0.00,4),(48,'2016-10-06',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,4),(49,'2016-10-07',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,4),(50,'2016-10-08',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,4),(51,'2016-10-09',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,4),(52,'2016-10-10',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,4),(53,'2016-10-11',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,4),(54,'2016-10-12',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,4),(55,'2016-10-13',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,4),(56,'2016-10-14',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,4),(85,'2016-10-15','07:45:00','11:45:00',NULL,NULL,4.00,NULL,'','Edu',NULL,0.00,4.00,7),(86,'2016-10-16','07:00:00','11:00:00',NULL,NULL,4.00,NULL,'','Edu',NULL,0.00,4.00,7),(87,'2016-10-17',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,7),(88,'2016-10-18',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,7),(89,'2016-10-19',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,7),(90,'2016-10-20',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,7),(91,'2016-10-21',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,7),(92,'2016-10-22',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,7),(93,'2016-10-23',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,7),(94,'2016-10-24',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,7),(95,'2016-10-25',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,7),(96,'2016-10-26',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,7),(97,'2016-10-27',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,7),(98,'2016-10-28',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,7),(99,'2016-10-29','06:00:00','12:00:00',NULL,NULL,6.00,NULL,'','Tax',NULL,6.00,0.00,8),(100,'2016-10-30','06:00:00','12:00:00',NULL,NULL,6.00,NULL,'','Tax',NULL,6.00,0.00,8),(101,'2016-10-31','06:00:00','13:00:00',NULL,NULL,7.00,NULL,'','Tax',NULL,7.00,0.00,8),(102,'2016-11-01',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,8),(103,'2016-11-02',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,8),(104,'2016-11-03',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,8),(105,'2016-11-04',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,8),(106,'2016-11-05',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,8),(107,'2016-11-06',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,8),(108,'2016-11-07',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,8),(109,'2016-11-08',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,8),(110,'2016-11-09',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,8),(111,'2016-11-10',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,8),(112,'2016-11-11',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,8),(113,'2016-10-01',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,9),(114,'2016-10-02',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,9),(115,'2016-10-03','08:15:00','11:30:00','12:30:00','15:15:00',3.25,2.75,'Twain','Tax',NULL,6.00,0.00,9),(116,'2016-10-04','07:30:00','11:00:00','12:00:00','16:45:00',3.50,4.75,'Fitzgerald','Tax',NULL,8.25,0.00,9),(117,'2016-10-05','08:30:00','11:45:00','13:00:00','17:15:00',3.25,4.25,'Hemingway','Tax',NULL,7.50,0.00,9),(118,'2016-10-06','09:00:00','12:00:00',NULL,NULL,3.00,NULL,'Steinbeck','Tax',NULL,3.00,0.00,9),(119,'2016-10-07',NULL,NULL,'13:00:00','18:15:00',NULL,5.25,'JLS research','Edu',NULL,0.00,5.25,9),(120,'2016-10-08',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,9),(121,'2016-10-09',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,9),(122,'2016-10-10','09:00:00','11:45:00','13:00:00','18:15:00',2.75,5.25,'Hawthorne','Tax',NULL,8.00,0.00,9),(123,'2016-10-11','08:45:00','12:15:00','13:00:00','19:00:00',3.50,6.00,'Poe','Tax',NULL,9.50,0.00,9),(124,'2016-10-12','06:00:00','11:00:00','12:00:00','17:15:00',5.00,5.25,'London','Tax',NULL,10.25,0.00,9),(125,'2016-10-13','07:00:00','12:00:00','12:30:00','16:45:00',5.00,4.25,'Vonnegut','Tax',NULL,9.25,0.00,9),(126,'2016-10-14','08:00:00','11:30:00','12:15:00','17:30:00',3.50,5.25,'Re/MAX worksheets','Edu',NULL,0.00,8.75,9),(127,'2016-10-15',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,10),(128,'2016-10-16',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,10),(129,'2016-10-17','08:00:00','11:45:00','13:00:00','17:00:00',3.75,4.00,'Updike','Tax',NULL,7.75,0.00,10),(130,'2016-10-18','07:30:00','11:45:00',NULL,NULL,4.25,NULL,'Lewis','Edu',NULL,0.00,4.25,10),(131,'2016-10-19',NULL,NULL,'13:00:00','17:30:00',NULL,4.50,'McCarthy','Tax',NULL,4.50,0.00,10),(132,'2016-10-20','08:00:00','12:00:00','13:00:00','17:00:00',4.00,4.00,'Ellison','Tax',NULL,8.00,0.00,10),(133,'2016-10-21',NULL,NULL,'13:00:00','16:45:00',NULL,3.75,'Capote','Edu',NULL,0.00,3.75,10),(134,'2016-10-22',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,10),(135,'2016-10-23',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,10),(136,'2016-10-24',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,10),(137,'2016-10-25',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,10),(138,'2016-10-26',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,10),(139,'2016-10-27',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,10),(140,'2016-10-28',NULL,NULL,NULL,NULL,NULL,NULL,'','Tax',NULL,NULL,NULL,10),(141,'2016-10-29',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,11),(142,'2016-10-30',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,11),(143,'2016-10-31',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,11),(144,'2016-11-01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,11),(145,'2016-11-02',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,11),(146,'2016-11-03',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,11),(147,'2016-11-04',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,11),(148,'2016-11-05',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,11),(149,'2016-11-06',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,11),(150,'2016-11-07',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,11),(151,'2016-11-08',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,11),(152,'2016-11-09',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,11),(153,'2016-11-10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,11),(154,'2016-11-11',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,11); /*!40000 ALTER TABLE `timerecords` ENABLE KEYS */; UNLOCK TABLES; -- -- Dumping events for database 'troyhsco_sweettime' -- -- -- Dumping routines for database 'troyhsco_sweettime' -- /*!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 2016-10-10 17:34:49
/* 175. Combine Two Tables https://leetcode-cn.com/problems/combine-two-tables/ Create table Person (PersonId int, FirstName varchar(255), LastName varchar(255)); Create table Address (AddressId int, PersonId int, City varchar(255), State varchar(255)); Truncate table Person; insert into Person (PersonId, LastName, FirstName) values ('1', 'Wang', 'Allen'); Truncate table Address; insert into Address (AddressId, PersonId, City, State) values ('1', '2', 'New York City', 'New York'); */ -- Write your MySQL query statement below select p.FirstName, p.LastName, a.City, a.State from Person as p left join Address as a on p.PersonId = a.PersonId
<reponame>uptonking/datable TRUNCATE TABLE `user`; INSERT INTO `user` VALUES ('1', 'admin', 'admin');
CREATE SEQUENCE IF NOT EXISTS tb_product_id_seq; CREATE TABLE IF NOT EXISTS TB_PRODUCT( ID INTEGER PRIMARY KEY NOT NULL DEFAULT NEXTVAL('tb_product_id_seq'), BRAND_ID INTEGER NOT NULL REFERENCES TB_BRAND(ID), MEASUREMENT_UNIT_ID INTEGER NOT NULL REFERENCES TB_MEASUREMENT_UNIT(ID), NAME VARCHAR(255) NOT NULL, MODEL VARCHAR(255) NOT NULL, SERIAL VARCHAR(255) NOT NULL, CREATED_AT TIMESTAMP WITHOUT TIME ZONE DEFAULT TO_CHAR(now(), 'yyyy-MM-dd HH24:mm:ss')::timestamp, UPDATED_AT TIMESTAMP WITHOUT TIME ZONE DEFAULT TO_CHAR(now(), 'yyyy-MM-dd HH24:mm:ss')::timestamp );
<reponame>uk-gov-mirror/hmcts.am-judicial-booking-service DELETE FROM role_assignment_request; INSERT INTO public.role_assignment_request (id, correlation_id, client_id, authenticated_user_id, requester_id, request_type, status, process, reference, replace_existing, last_updated, created) VALUES('11334a2b-79ce-44eb-9168-2d49a744be9c', 'correlation_id', 'client_id', '41334a2b-79ce-44eb-9168-2d49a744beaa', '41334a2b-79ce-44eb-9168-2d49a744bebb', 'request_type', 'created', 'process', 'reference', false, now(), now()); INSERT INTO public.role_assignment_request (id, correlation_id, client_id, authenticated_user_id, requester_id, request_type, status, process, reference, replace_existing, last_updated, created) VALUES('21334a2b-79ce-44eb-9168-2d49a744be9c', 'correlation_id', 'client_id', '41334a2b-79ce-44eb-9168-2d49a744beaa', '41334a2b-79ce-44eb-9168-2d49a744bebb', 'request_type', 'APPROVED', 'process', 'reference', false, now(), now()); INSERT INTO public.role_assignment_request (id, correlation_id, client_id, authenticated_user_id, requester_id, request_type, status, process, reference, replace_existing, last_updated, created) VALUES('31334a2b-79ce-44eb-9168-2d49a744be9c', 'correlation_id', 'client_id', '41334a2b-79ce-44eb-9168-2d49a744beaa', '41334a2b-79ce-44eb-9168-2d49a744bebb', 'request_type', 'created', 'process', 'reference', false, now(), now()); INSERT INTO public.role_assignment_request (id, correlation_id, client_id, authenticated_user_id, requester_id, request_type, status, process, reference, replace_existing, last_updated, created) VALUES('51334a2b-79ce-44eb-9168-2d49a744be9c', 'correlation_id', 'client_id', '41334a2b-79ce-44eb-9168-2d49a744beaa', '41334a2b-79ce-44eb-9168-2d49a744bebb', 'request_type', 'created', 'process', 'reference', false, now(), now()); INSERT INTO public.role_assignment_request (id, correlation_id, client_id, authenticated_user_id, requester_id, request_type, status, process, reference, replace_existing, last_updated, created) VALUES('61334a2b-79ce-44eb-9168-2d49a744be9c', 'correlation_id', 'client_id', '41334a2b-79ce-44eb-9168-2d49a744beaa', '41334a2b-79ce-44eb-9168-2d49a744bebb', 'request_type', 'created', 'process', 'reference', false, now(), now());
-- Highest budget movie by year by country WITH expensive_movies AS ( SELECT release_year, country_id, MAX(budget) AS max_budget FROM movies GROUP BY release_year, country_id ) SELECT c.country_name, m.release_year, m.title, m.budget FROM movies m JOIN expensive_movies em ON m.release_year = em.release_year AND m.country_id = em.country_id AND m.budget = em.max_budget JOIN countries c ON m.country_id = c.id ORDER BY m.country_id, m.release_year DESC;
<gh_stars>1-10 SET DEFINE OFF; CREATE INDEX AFW_21_PLUGN_ARBRE_FK2 ON AFW_21_PLUGN_ARBRE (REF_PLUGN_ARBRE_NOEUD) LOGGING /
WITH strassenname AS ( SELECT lokalisation.t_id AS lok_t_id, lokalisationsname.atext AS strassenname FROM agi_dm01avso24.gebaeudeadressen_lokalisation AS lokalisation LEFT JOIN agi_dm01avso24.gebaeudeadressen_lokalisationsname AS lokalisationsname ON lokalisationsname.benannte = lokalisation.t_id WHERE lokalisation.istoffiziellebezeichnung = 'ja' ), aimport AS ( SELECT max(importdate) AS importdate, dataset FROM agi_dm01avso24.t_ili2db_import GROUP BY dataset ), gebaeudeeingang AS ( SELECT gebauedeeingang.gebaeudeeingang_von AS lok_t_id, gebauedeeingang.hoehenlage, gebauedeeingang.lage, gebauedeeingang.hausnummer, gebauedeeingang.gwr_egid AS egid, gebauedeeingang.gwr_edid AS edid, gebauedeeingang.astatus AS astatus, CASE WHEN istoffiziellebezeichnung = 'ja' THEN TRUE ELSE FALSE END AS ist_offizielle_bezeichnung, aname.atext AS gebaeudename, -- always empty? CAST(gebauedeeingang.t_datasetname AS INT) AS bfs_nr, CASE WHEN hausnummer.ori IS NULL THEN (100 - 100) * 0.9 ELSE (100 - hausnummer.ori) * 0.9 END AS orientierung, CASE WHEN hausnummer.hali IS NULL THEN 'Center' ELSE hausnummer.hali END AS hali, CASE WHEN hausnummer.vali IS NULL THEN 'Half' ELSE hausnummer.vali END AS vali, aimport.importdate AS importdatum, nachfuehrung.gueltigereintrag AS nachfuehrung, hausnummer.pos FROM agi_dm01avso24.gebaeudeadressen_gebaeudeeingang AS gebauedeeingang LEFT JOIN agi_dm01avso24.gebaeudeadressen_hausnummerpos AS hausnummer ON hausnummer.hausnummerpos_von = gebauedeeingang.t_id LEFT JOIN agi_dm01avso24.gebaeudeadressen_gebnachfuehrung AS nachfuehrung ON gebauedeeingang.entstehung = nachfuehrung.t_id LEFT JOIN agi_dm01avso24.gebaeudeadressen_gebaeudename AS aname ON aname.gebaeudename_von = gebauedeeingang.t_id LEFT JOIN agi_dm01avso24.t_ili2db_basket AS basket ON gebauedeeingang.t_basket = basket.t_id LEFT JOIN aimport ON basket.dataset = aimport.dataset ), gebaeudeeingang_strassenname AS ( SELECT strassenname.lok_t_id, strassenname.strassenname, gebaeudeeingang.hoehenlage, gebaeudeeingang.lage, gebaeudeeingang.hausnummer, gebaeudeeingang.egid, gebaeudeeingang.edid, gebaeudeeingang.astatus, gebaeudeeingang.ist_offizielle_bezeichnung, gebaeudeeingang.gebaeudename, gebaeudeeingang.bfs_nr, gebaeudeeingang.orientierung, gebaeudeeingang.hali, gebaeudeeingang.vali, gebaeudeeingang.importdatum, gebaeudeeingang.nachfuehrung, gebaeudeeingang.pos FROM strassenname RIGHT JOIN gebaeudeeingang ON strassenname.lok_t_id = gebaeudeeingang.lok_t_id ), gebaeudeeingang_strassenname_plz_ortschaft AS ( SELECT gebaeudeeingang_strassenname.lok_t_id, gebaeudeeingang_strassenname.strassenname, gebaeudeeingang_strassenname.hoehenlage, gebaeudeeingang_strassenname.lage, gebaeudeeingang_strassenname.hausnummer, gebaeudeeingang_strassenname.egid, gebaeudeeingang_strassenname.edid, gebaeudeeingang_strassenname.astatus, gebaeudeeingang_strassenname.ist_offizielle_bezeichnung, gebaeudeeingang_strassenname.gebaeudename, gebaeudeeingang_strassenname.bfs_nr, gebaeudeeingang_strassenname.orientierung, gebaeudeeingang_strassenname.hali, gebaeudeeingang_strassenname.vali, gebaeudeeingang_strassenname.importdatum, gebaeudeeingang_strassenname.nachfuehrung, gebaeudeeingang_strassenname.pos, plz.plz, ortschaftsname.atext AS ortschaft FROM gebaeudeeingang_strassenname LEFT JOIN agi_plz_ortschaften.plzortschaft_plz6 AS plz ON ST_Intersects(gebaeudeeingang_strassenname.lage, plz.flaeche) LEFT JOIN agi_plz_ortschaften.plzortschaft_ortschaft AS ortschaft ON plz.plz6_von = ortschaft.t_id LEFT JOIN agi_plz_ortschaften.plzortschaft_ortschaftsname AS ortschaftsname ON ortschaftsname.ortschaftsname_von = ortschaft.t_id WHERE plz.astatus != 'vergangen' AND ortschaft.astatus != 'vergangen' ) SELECT gebaeudeeingang_strassenname_plz_ortschaft.strassenname, gebaeudeeingang_strassenname_plz_ortschaft.hausnummer, gebaeudeeingang_strassenname_plz_ortschaft.egid, gebaeudeeingang_strassenname_plz_ortschaft.edid, gebaeudeeingang_strassenname_plz_ortschaft.plz, gebaeudeeingang_strassenname_plz_ortschaft.ortschaft, gebaeudeeingang_strassenname_plz_ortschaft.astatus AS astatus, gebaeudeeingang_strassenname_plz_ortschaft.ist_offizielle_bezeichnung, gebaeudeeingang_strassenname_plz_ortschaft.hoehenlage, gebaeudeeingang_strassenname_plz_ortschaft.gebaeudename, gebaeudeeingang_strassenname_plz_ortschaft.bfs_nr, gebaeudeeingang_strassenname_plz_ortschaft.orientierung, gebaeudeeingang_strassenname_plz_ortschaft.hali, gebaeudeeingang_strassenname_plz_ortschaft.vali, gebaeudeeingang_strassenname_plz_ortschaft.importdatum, gebaeudeeingang_strassenname_plz_ortschaft.nachfuehrung, gebaeudeeingang_strassenname_plz_ortschaft.lage, gebaeudeeingang_strassenname_plz_ortschaft.pos FROM gebaeudeeingang_strassenname_plz_ortschaft ;
/* Process: lastcontracts sp create_tmp_tbl .import trim possible_chg(diff) insert real_chg RELEASE */ savepoint "sp_xxxx1"; CREATE temp TABLE "t_buf" ( "tradingday" INTEGER NOT NULL, "instrumentid" TEXT UNIQUE NOT NULL ); .separator ',' .import 'param_last.csv' "t_buf" UPDATE "t_buf" set "instrumentid" = trim("instrumentid"); select "tradingday", "instrumentid" from "t_buf" except select "tradingday", "instrumentid" from "lastcontracts"; INSERT INTO "lastcontracts" ("tradingday", "instrumentid", "manual_flag", "update_time") select "tradingday", "instrumentid", 0, datetime() from ( select "tradingday", "instrumentid" from "t_buf" except select "tradingday", "instrumentid" from "lastcontracts"); select "tradingday", "instrumentid" from "t_buf" except select "tradingday", "instrumentid" from "lastcontracts"; select * from "lastcontracts" order by "update_time" desc limit 30; RELEASE SAVEPOINT "sp_xxxx1"; /* Process: newcontracts sp create_tmp_tbl .import trim possible_chg(diff) insert real_chg RELEASE */ savepoint "sp_xxxx"; CREATE temp TABLE "t_buf" ( "tradingday" INTEGER NOT NULL, "instrumentid" TEXT UNIQUE NOT NULL ); .separator ',' .import 'monthly_parameters.csv' "t_buf" UPDATE "t_buf" set "instrumentid" = trim("instrumentid"); select "tradingday", "instrumentid" from "t_buf" except select "tradingday", "instrumentid" from "newcontracts"; INSERT OR IGNORE INTO "newcontracts" ("tradingday", "instrumentid", "manual_flag", "update_time") select "tradingday", "instrumentid", 0, datetime() from "t_buf" order by "tradingday"; select "tradingday", "instrumentid" from "t_buf" except select "tradingday", "instrumentid" from "newcontracts"; select * from "newcontracts" order by "update_time" desc limit 30; -- RELEASE SAVEPOINT "sp_xxxx"; /* Check consistency: ------------------------------------------------------------------------------------- newcontracts against XXXXins in date_listed lastcontracts against XXXXins in date_last ------------------------------------------------------------------------------------- */ select "instrumentid", "tradingday" from "newcontracts" except select "instrumentid", "date_listed" from "XXXXins"; select date_listed, count(*) cnt from XXXXins group by date_listed order by date_listed; select date_last, count(*) cnt from XXXXins group by date_last order by date_last; select "instrumentid", "tradingday" from "lastcontracts" except select "instrumentid", "date_last" from "XXXXins"; /* exchange for physical: */ savepoint "sp_efg"; CREATE temp TABLE "t_buf" ( "tradingday" INTEGER NOT NULL, "instrumentid" TEXT NOT NULL, "volume" INTEGER NOT NULL CHECK (0< "volume") ); .separator '|' .import 'tmp_exch4physical.txt' "t_buf" UPDATE "t_buf" set "instrumentid" = trim("instrumentid"); select "tradingday", "instrumentid", "volume" from "t_buf" except select "tradingday", "instrumentid", "volume" from "exch4physical"; INSERT INTO "exch4physical" ("tradingday", "instrumentid", "volume") select "tradingday", "instrumentid", "volume" from ( select "tradingday", "instrumentid", "volume" from "t_buf" except select "tradingday", "instrumentid", "volume" from "exch4physical" ); select "tradingday", "instrumentid", "volume" from "t_buf" except select "tradingday", "instrumentid", "volume" from "exch4physical"; select * from "exch4physical" order by "tradingday" desc limit 30; -- RELEASE SAVEPOINT "sp_efg";
-- Dropar uma tabela. DROP TABLE TABELA;
ALTER TABLE "public"."users" ADD COLUMN "pubkey" text; ALTER TABLE "public"."users" ALTER COLUMN "pubkey" DROP NOT NULL;
<gh_stars>100-1000 -- -- This code is free software; you can redistribute it and/or modify it under -- the terms of the GNU General Public License as published by the Free Software -- Foundation, version 2 -- -- -- Currently unused! -- DELIMITER $$ DROP procedure IF EXISTS _rdebug_wait_for_breakpoint_clock $$ CREATE procedure _rdebug_wait_for_breakpoint_clock() DETERMINISTIC NO SQL SQL SECURITY INVOKER main_body: BEGIN declare have_waited bool default false; -- In case no breakpoint lock is taken (e.g. the worker hasn't started execution yet) -- then wait for one lock to appear then exit. while is_used_lock(_rdebug_get_lock_name(@_rdebug_recipient_id, 'breakpoint_tic')) is null and is_used_lock(_rdebug_get_lock_name(@_rdebug_recipient_id, 'breakpoint_toc')) is null do do sleep(0.1); set have_waited := true; end while; if have_waited then leave main_body; end if; -- apparently one lock is taken. Wait! if is_used_lock(_rdebug_get_lock_name(@_rdebug_recipient_id, 'breakpoint_tic')) then while is_used_lock(_rdebug_get_lock_name(@_rdebug_recipient_id, 'breakpoint_tic')) = @_rdebug_recipient_id do do sleep(0.1); end while; else while is_used_lock(_rdebug_get_lock_name(@_rdebug_recipient_id, 'breakpoint_toc')) = @_rdebug_recipient_id do do sleep(0.1); end while; end if; END $$ DELIMITER ;
CREATE OR REPLACE FUNCTION public.add_year_2021_if_not_exists() RETURNS VOID LANGUAGE 'plpgsql' VOLATILE AS $BODY$ DECLARE v_year_exists BOOLEAN; BEGIN select exists(select 1 from C_Year where FiscalYear='2021' and IsActive='Y' and C_Calendar_ID=1000000) INTO v_year_exists; IF (v_year_exists) THEN RAISE NOTICE 'There already exists a C_Year "2021" for C_Calendar_ID=1000000; Nothing to do'; RETURN; END IF; -- 2020-01-01T18:58:28.744Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Year (AD_Client_ID,AD_Org_ID,C_Calendar_ID,Created,CreatedBy,C_Year_ID,FiscalYear,IsActive,Processing,Updated,UpdatedBy) VALUES (1000000,0,1000000,TO_TIMESTAMP('2020-01-01 19:58:28','YYYY-MM-DD HH24:MI:SS'),100,540015,'2021','Y','N',TO_TIMESTAMP('2020-01-01 19:58:28','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:31.164Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period (AD_Client_ID,AD_Org_ID,C_Period_ID,Created,CreatedBy,C_Year_ID,EndDate,IsActive,Name,PeriodNo,PeriodType,Processing,StartDate,Updated,UpdatedBy) VALUES (1000000,0,540146,TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100,540015,TO_TIMESTAMP('2021-01-31','YYYY-MM-DD'),'Y','Jan-21',1,'S','N',TO_TIMESTAMP('2021-01-01','YYYY-MM-DD'),TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:31.167Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period_Trl (AD_Language,C_Period_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.C_Period_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_Period t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.C_Period_ID=540146 AND NOT EXISTS (SELECT 1 FROM C_Period_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_Period_ID=t.C_Period_ID) ; -- 2020-01-01T18:58:31.257Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545138,540146,TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100,'AVI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:31.337Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545139,540146,TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100,'API','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:31.433Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545140,540146,TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100,'HRP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:31.512Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545141,540146,TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100,'DOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:31.597Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545142,540146,TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100,'MCC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:31.684Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545143,540146,TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100,'AEI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:31.759Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545144,540146,TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100,'GLJ','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:31.836Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545145,540146,TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100,'ARC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:31.918Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545146,540146,TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100,'MXI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:31.996Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545147,540146,TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100,'MXP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:32.076Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545148,540146,TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100,'POR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:31','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:32.163Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545149,540146,TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100,'MMM','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:32.243Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545150,540146,TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100,'MMP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:32.328Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545151,540146,TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100,'PJI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:32.418Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545152,540146,TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100,'GLD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:32.503Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545153,540146,TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100,'ARF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:32.589Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545154,540146,TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100,'APC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:32.665Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545155,540146,TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100,'CMA','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:32.779Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545156,540146,TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100,'MMS','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:32.853Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545157,540146,TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100,'POO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:32.936Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545158,540146,TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100,'SOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:33.009Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545159,540146,TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100,'ARI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:32','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:33.081Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545160,540146,TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100,'MMR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:33.161Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545161,540146,TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100,'CON','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:33.236Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545162,540146,TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100,'MST','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:33.312Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545163,540146,TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100,'MMI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:33.385Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545164,540146,TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100,'CMB','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:33.458Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545165,540146,TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100,'ARR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:33.534Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545166,540146,TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100,'APP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:33.608Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545167,540146,TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100,'MQO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:33.692Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545168,540146,TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100,'MOP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:33.771Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545169,540146,TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100,'MOF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:33.848Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545170,540146,TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100,'DUN','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:33.927Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545171,540146,TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100,'SDC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:34.011Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545172,540146,TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100,'SDD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:34.085Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545173,540146,TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100,'CUI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:34.162Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period (AD_Client_ID,AD_Org_ID,C_Period_ID,Created,CreatedBy,C_Year_ID,EndDate,IsActive,Name,PeriodNo,PeriodType,Processing,StartDate,Updated,UpdatedBy) VALUES (1000000,0,540147,TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100,540015,TO_TIMESTAMP('2021-02-28','YYYY-MM-DD'),'Y','Feb-21',2,'S','N',TO_TIMESTAMP('2021-02-01','YYYY-MM-DD'),TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:34.163Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period_Trl (AD_Language,C_Period_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.C_Period_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_Period t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.C_Period_ID=540147 AND NOT EXISTS (SELECT 1 FROM C_Period_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_Period_ID=t.C_Period_ID) ; -- 2020-01-01T18:58:34.248Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545174,540147,TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100,'AVI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:34.329Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545175,540147,TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100,'API','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:34.411Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545176,540147,TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100,'HRP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:34.484Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545177,540147,TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100,'DOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:34.573Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545178,540147,TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100,'MCC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:34.652Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545179,540147,TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100,'AEI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:34.737Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545180,540147,TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100,'GLJ','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:34.809Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545181,540147,TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100,'ARC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:34.915Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545182,540147,TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100,'MXI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:34.988Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545183,540147,TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100,'MXP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:35.069Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545184,540147,TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100,'POR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:35.153Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545185,540147,TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100,'MMM','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:35.228Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545186,540147,TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100,'MMP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:35.318Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545187,540147,TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100,'PJI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:35.395Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545188,540147,TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100,'GLD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:35.488Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545189,540147,TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100,'ARF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:35.560Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545190,540147,TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100,'APC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:35.638Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545191,540147,TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100,'CMA','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:35.718Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545192,540147,TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100,'MMS','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:35.797Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545193,540147,TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100,'POO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:35.884Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545194,540147,TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100,'SOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:35.956Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545195,540147,TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100,'ARI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:36.049Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545196,540147,TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100,'MMR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:35','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:36.130Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545197,540147,TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100,'CON','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:36.212Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545198,540147,TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100,'MST','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:36.301Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545199,540147,TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100,'MMI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:36.388Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545200,540147,TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100,'CMB','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:36.466Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545201,540147,TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100,'ARR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:36.540Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545202,540147,TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100,'APP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:36.624Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545203,540147,TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100,'MQO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:36.712Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545204,540147,TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100,'MOP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:36.792Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545205,540147,TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100,'MOF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:36.874Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545206,540147,TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100,'DUN','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:36.954Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545207,540147,TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100,'SDC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:37.049Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545208,540147,TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100,'SDD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:36','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:37.127Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545209,540147,TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100,'CUI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:37.213Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period (AD_Client_ID,AD_Org_ID,C_Period_ID,Created,CreatedBy,C_Year_ID,EndDate,IsActive,Name,PeriodNo,PeriodType,Processing,StartDate,Updated,UpdatedBy) VALUES (1000000,0,540148,TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100,540015,TO_TIMESTAMP('2021-03-31','YYYY-MM-DD'),'Y','Mär-21',3,'S','N',TO_TIMESTAMP('2021-03-01','YYYY-MM-DD'),TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:37.217Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period_Trl (AD_Language,C_Period_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.C_Period_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_Period t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.C_Period_ID=540148 AND NOT EXISTS (SELECT 1 FROM C_Period_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_Period_ID=t.C_Period_ID) ; -- 2020-01-01T18:58:37.307Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545210,540148,TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100,'AVI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:37.378Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545211,540148,TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100,'API','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:37.466Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545212,540148,TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100,'HRP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:37.561Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545213,540148,TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100,'DOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:37.645Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545214,540148,TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100,'MCC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:37.716Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545215,540148,TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100,'AEI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:37.790Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545216,540148,TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100,'GLJ','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:37.863Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545217,540148,TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100,'ARC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:37.942Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545218,540148,TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100,'MXI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:38.027Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545219,540148,TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100,'MXP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:37','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:38.116Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545220,540148,TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100,'POR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:38.204Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545221,540148,TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100,'MMM','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:38.290Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545222,540148,TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100,'MMP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:38.377Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545223,540148,TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100,'PJI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:38.458Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545224,540148,TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100,'GLD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:38.535Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545225,540148,TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100,'ARF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:38.614Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545226,540148,TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100,'APC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:38.696Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545227,540148,TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100,'CMA','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:38.776Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545228,540148,TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100,'MMS','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:38.855Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545229,540148,TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100,'POO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:38.932Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545230,540148,TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100,'SOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:39.017Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545231,540148,TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100,'ARI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:38','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:39.100Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545232,540148,TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100,'MMR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:39.215Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545233,540148,TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100,'CON','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:39.291Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545234,540148,TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100,'MST','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:39.368Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545235,540148,TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100,'MMI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:39.448Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545236,540148,TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100,'CMB','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:39.525Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545237,540148,TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100,'ARR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:39.613Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545238,540148,TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100,'APP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:39.691Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545239,540148,TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100,'MQO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:39.775Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545240,540148,TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100,'MOP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:39.862Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545241,540148,TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100,'MOF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:39.949Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545242,540148,TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100,'DUN','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:40.034Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545243,540148,TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100,'SDC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:39','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:40.108Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545244,540148,TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100,'SDD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:40.193Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545245,540148,TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100,'CUI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:40.287Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period (AD_Client_ID,AD_Org_ID,C_Period_ID,Created,CreatedBy,C_Year_ID,EndDate,IsActive,Name,PeriodNo,PeriodType,Processing,StartDate,Updated,UpdatedBy) VALUES (1000000,0,540149,TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100,540015,TO_TIMESTAMP('2021-04-30','YYYY-MM-DD'),'Y','Apr-21',4,'S','N',TO_TIMESTAMP('2021-04-01','YYYY-MM-DD'),TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:40.288Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period_Trl (AD_Language,C_Period_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.C_Period_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_Period t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.C_Period_ID=540149 AND NOT EXISTS (SELECT 1 FROM C_Period_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_Period_ID=t.C_Period_ID) ; -- 2020-01-01T18:58:40.373Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545246,540149,TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100,'AVI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:40.458Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545247,540149,TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100,'API','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:40.528Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545248,540149,TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100,'HRP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:40.628Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545249,540149,TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100,'DOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:40.704Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545250,540149,TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100,'MCC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:40.786Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545251,540149,TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100,'AEI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:40.873Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545252,540149,TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100,'GLJ','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:40.951Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545253,540149,TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100,'ARC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:41.070Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545254,540149,TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100,'MXI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:41.171Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545255,540149,TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100,'MXP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:41.268Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545256,540149,TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100,'POR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:41.377Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545257,540149,TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100,'MMM','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:41.473Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545258,540149,TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100,'MMP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:41.569Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545259,540149,TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100,'PJI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:41.638Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545260,540149,TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100,'GLD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:41.715Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545261,540149,TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100,'ARF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:41.791Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545262,540149,TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100,'APC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:41.876Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545263,540149,TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100,'CMA','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:41.955Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545264,540149,TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100,'MMS','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:42.037Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545265,540149,TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100,'POO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:41','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:42.114Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545266,540149,TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100,'SOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:42.197Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545267,540149,TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100,'ARI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:42.278Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545268,540149,TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100,'MMR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:42.368Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545269,540149,TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100,'CON','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:42.434Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545270,540149,TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100,'MST','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:42.507Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545271,540149,TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100,'MMI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:42.582Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545272,540149,TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100,'CMB','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:42.663Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545273,540149,TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100,'ARR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:42.741Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545274,540149,TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100,'APP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:42.824Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545275,540149,TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100,'MQO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:42.904Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545276,540149,TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100,'MOP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:42.985Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545277,540149,TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100,'MOF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:43.065Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545278,540149,TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100,'DUN','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:42','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:43.150Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545279,540149,TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100,'SDC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:43.241Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545280,540149,TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100,'SDD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:43.318Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545281,540149,TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100,'CUI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:43.401Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period (AD_Client_ID,AD_Org_ID,C_Period_ID,Created,CreatedBy,C_Year_ID,EndDate,IsActive,Name,PeriodNo,PeriodType,Processing,StartDate,Updated,UpdatedBy) VALUES (1000000,0,540150,TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100,540015,TO_TIMESTAMP('2021-05-31','YYYY-MM-DD'),'Y','Mai-21',5,'S','N',TO_TIMESTAMP('2021-05-01','YYYY-MM-DD'),TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:43.403Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period_Trl (AD_Language,C_Period_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.C_Period_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_Period t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.C_Period_ID=540150 AND NOT EXISTS (SELECT 1 FROM C_Period_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_Period_ID=t.C_Period_ID) ; -- 2020-01-01T18:58:43.493Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545282,540150,TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100,'AVI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:43.601Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545283,540150,TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100,'API','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:43.677Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545284,540150,TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100,'HRP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:43.751Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545285,540150,TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100,'DOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:43.825Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545286,540150,TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100,'MCC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:43.899Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545287,540150,TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100,'AEI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:43.978Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545288,540150,TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100,'GLJ','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:44.052Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545289,540150,TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100,'ARC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:43','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:44.140Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545290,540150,TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100,'MXI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:44.220Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545291,540150,TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100,'MXP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:44.303Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545292,540150,TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100,'POR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:44.388Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545293,540150,TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100,'MMM','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:44.466Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545294,540150,TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100,'MMP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:44.539Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545295,540150,TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100,'PJI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:44.636Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545296,540150,TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100,'GLD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:44.716Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545297,540150,TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100,'ARF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:44.798Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545298,540150,TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100,'APC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:44.877Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545299,540150,TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100,'CMA','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:44.955Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545300,540150,TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100,'MMS','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:45.032Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545301,540150,TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100,'POO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:44','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:45.094Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545302,540150,TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100,'SOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:45.162Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545303,540150,TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100,'ARI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:45.236Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545304,540150,TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100,'MMR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:45.313Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545305,540150,TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100,'CON','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:45.406Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545306,540150,TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100,'MST','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:45.484Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545307,540150,TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100,'MMI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:45.567Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545308,540150,TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100,'CMB','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:45.643Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545309,540150,TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100,'ARR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:45.705Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545310,540150,TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100,'APP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:45.806Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545311,540150,TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100,'MQO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:45.880Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545312,540150,TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100,'MOP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:45.957Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545313,540150,TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100,'MOF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:46.038Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545314,540150,TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100,'DUN','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:45','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:46.129Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545315,540150,TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100,'SDC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:46.208Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545316,540150,TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100,'SDD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:46.288Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545317,540150,TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100,'CUI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:46.381Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period (AD_Client_ID,AD_Org_ID,C_Period_ID,Created,CreatedBy,C_Year_ID,EndDate,IsActive,Name,PeriodNo,PeriodType,Processing,StartDate,Updated,UpdatedBy) VALUES (1000000,0,540151,TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100,540015,TO_TIMESTAMP('2021-06-30','YYYY-MM-DD'),'Y','Jun-21',6,'S','N',TO_TIMESTAMP('2021-06-01','YYYY-MM-DD'),TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:46.382Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period_Trl (AD_Language,C_Period_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.C_Period_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_Period t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.C_Period_ID=540151 AND NOT EXISTS (SELECT 1 FROM C_Period_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_Period_ID=t.C_Period_ID) ; -- 2020-01-01T18:58:46.484Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545318,540151,TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100,'AVI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:46.575Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545319,540151,TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100,'API','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:46.666Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545320,540151,TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100,'HRP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:46.749Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545321,540151,TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100,'DOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:46.828Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545322,540151,TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100,'MCC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:46.912Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545323,540151,TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100,'AEI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:46.993Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545324,540151,TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100,'GLJ','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:47.075Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545325,540151,TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100,'ARC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:46','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:47.152Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545326,540151,TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100,'MXI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:47.236Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545327,540151,TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100,'MXP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:47.319Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545328,540151,TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100,'POR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:47.400Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545329,540151,TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100,'MMM','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:47.512Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545330,540151,TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100,'MMP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:47.589Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545331,540151,TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100,'PJI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:47.669Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545332,540151,TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100,'GLD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:47.751Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545333,540151,TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100,'ARF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:47.838Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545334,540151,TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100,'APC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:47.916Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545335,540151,TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100,'CMA','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:48.006Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545336,540151,TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100,'MMS','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:47','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:48.084Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545337,540151,TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100,'POO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:48.147Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545338,540151,TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100,'SOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:48.239Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545339,540151,TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100,'ARI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:48.312Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545340,540151,TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100,'MMR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:48.385Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545341,540151,TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100,'CON','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:48.457Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545342,540151,TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100,'MST','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:48.525Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545343,540151,TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100,'MMI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:48.606Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545344,540151,TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100,'CMB','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:48.683Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545345,540151,TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100,'ARR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:48.749Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545346,540151,TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100,'APP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:48.812Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545347,540151,TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100,'MQO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:48.897Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545348,540151,TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100,'MOP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:48.970Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545349,540151,TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100,'MOF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:49.048Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545350,540151,TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100,'DUN','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:48','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:49.128Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545351,540151,TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100,'SDC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:49.213Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545352,540151,TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100,'SDD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:49.288Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545353,540151,TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100,'CUI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:49.366Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period (AD_Client_ID,AD_Org_ID,C_Period_ID,Created,CreatedBy,C_Year_ID,EndDate,IsActive,Name,PeriodNo,PeriodType,Processing,StartDate,Updated,UpdatedBy) VALUES (1000000,0,540152,TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100,540015,TO_TIMESTAMP('2021-07-31','YYYY-MM-DD'),'Y','Jul-21',7,'S','N',TO_TIMESTAMP('2021-07-01','YYYY-MM-DD'),TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:49.368Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period_Trl (AD_Language,C_Period_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.C_Period_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_Period t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.C_Period_ID=540152 AND NOT EXISTS (SELECT 1 FROM C_Period_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_Period_ID=t.C_Period_ID) ; -- 2020-01-01T18:58:49.457Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545354,540152,TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100,'AVI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:49.545Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545355,540152,TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100,'API','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:49.620Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545356,540152,TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100,'HRP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:49.699Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545357,540152,TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100,'DOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:49.776Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545358,540152,TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100,'MCC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:49.851Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545359,540152,TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100,'AEI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:49.936Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545360,540152,TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100,'GLJ','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:50.025Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545361,540152,TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100,'ARC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:49','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:50.137Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545362,540152,TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100,'MXI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:50.206Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545363,540152,TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100,'MXP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:50.269Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545364,540152,TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100,'POR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:50.336Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545365,540152,TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100,'MMM','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:50.405Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545366,540152,TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100,'MMP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:50.489Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545367,540152,TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100,'PJI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:50.558Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545368,540152,TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100,'GLD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:50.635Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545369,540152,TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100,'ARF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:50.726Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545370,540152,TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100,'APC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:50.805Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545371,540152,TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100,'CMA','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:50.883Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545372,540152,TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100,'MMS','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:50.959Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545373,540152,TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100,'POO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:51.032Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545374,540152,TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100,'SOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:50','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:51.109Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545375,540152,TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100,'ARI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:51.187Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545376,540152,TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100,'MMR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:51.260Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545377,540152,TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100,'CON','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:51.345Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545378,540152,TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100,'MST','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:51.424Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545379,540152,TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100,'MMI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:51.505Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545380,540152,TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100,'CMB','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:51.595Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545381,540152,TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100,'ARR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:51.685Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545382,540152,TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100,'APP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:51.766Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545383,540152,TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100,'MQO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:51.840Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545384,540152,TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100,'MOP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:51.918Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545385,540152,TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100,'MOF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:52.014Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545386,540152,TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100,'DUN','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:51','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:52.094Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545387,540152,TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100,'SDC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:52.173Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545388,540152,TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100,'SDD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:52.252Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545389,540152,TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100,'CUI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:52.351Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period (AD_Client_ID,AD_Org_ID,C_Period_ID,Created,CreatedBy,C_Year_ID,EndDate,IsActive,Name,PeriodNo,PeriodType,Processing,StartDate,Updated,UpdatedBy) VALUES (1000000,0,540153,TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100,540015,TO_TIMESTAMP('2021-08-31','YYYY-MM-DD'),'Y','Aug-21',8,'S','N',TO_TIMESTAMP('2021-08-01','YYYY-MM-DD'),TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:52.354Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period_Trl (AD_Language,C_Period_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.C_Period_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_Period t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.C_Period_ID=540153 AND NOT EXISTS (SELECT 1 FROM C_Period_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_Period_ID=t.C_Period_ID) ; -- 2020-01-01T18:58:52.443Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545390,540153,TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100,'AVI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:52.526Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545391,540153,TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100,'API','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:52.607Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545392,540153,TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100,'HRP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:52.685Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545393,540153,TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100,'DOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:52.758Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545394,540153,TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100,'MCC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:52.835Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545395,540153,TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100,'AEI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:52.916Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545396,540153,TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100,'GLJ','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:52.992Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545397,540153,TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100,'ARC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:53.065Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545398,540153,TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100,'MXI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:52','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:53.138Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545399,540153,TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100,'MXP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:53.214Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545400,540153,TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100,'POR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:53.279Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545401,540153,TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100,'MMM','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:53.361Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545402,540153,TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100,'MMP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:53.446Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545403,540153,TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100,'PJI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:53.524Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545404,540153,TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100,'GLD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:53.613Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545405,540153,TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100,'ARF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:53.706Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545406,540153,TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100,'APC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:53.784Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545407,540153,TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100,'CMA','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:53.870Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545408,540153,TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100,'MMS','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:53.947Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545409,540153,TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100,'POO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:54.021Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545410,540153,TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100,'SOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:53','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:54.106Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545411,540153,TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100,'ARI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:54.189Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545412,540153,TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100,'MMR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:54.264Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545413,540153,TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100,'CON','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:54.352Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545414,540153,TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100,'MST','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:54.476Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545415,540153,TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100,'MMI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:54.562Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545416,540153,TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100,'CMB','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:54.634Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545417,540153,TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100,'ARR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:54.712Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545418,540153,TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100,'APP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:54.791Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545419,540153,TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100,'MQO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:54.868Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545420,540153,TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100,'MOP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:54.966Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545421,540153,TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100,'MOF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:55.055Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545422,540153,TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100,'DUN','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:54','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:55.137Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545423,540153,TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100,'SDC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:55.222Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545424,540153,TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100,'SDD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:55.301Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545425,540153,TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100,'CUI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:55.388Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period (AD_Client_ID,AD_Org_ID,C_Period_ID,Created,CreatedBy,C_Year_ID,EndDate,IsActive,Name,PeriodNo,PeriodType,Processing,StartDate,Updated,UpdatedBy) VALUES (1000000,0,540154,TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100,540015,TO_TIMESTAMP('2021-09-30','YYYY-MM-DD'),'Y','Sep-21',9,'S','N',TO_TIMESTAMP('2021-09-01','YYYY-MM-DD'),TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:55.389Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period_Trl (AD_Language,C_Period_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.C_Period_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_Period t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.C_Period_ID=540154 AND NOT EXISTS (SELECT 1 FROM C_Period_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_Period_ID=t.C_Period_ID) ; -- 2020-01-01T18:58:55.467Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545426,540154,TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100,'AVI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:55.570Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545427,540154,TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100,'API','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:55.646Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545428,540154,TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100,'HRP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:55.710Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545429,540154,TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100,'DOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:55.795Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545430,540154,TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100,'MCC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:55.890Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545431,540154,TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100,'AEI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:55.976Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545432,540154,TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100,'GLJ','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:56.062Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545433,540154,TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100,'ARC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:55','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:56.145Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545434,540154,TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100,'MXI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:56.232Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545435,540154,TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100,'MXP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:56.311Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545436,540154,TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100,'POR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:56.394Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545437,540154,TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100,'MMM','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:56.478Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545438,540154,TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100,'MMP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:56.555Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545439,540154,TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100,'PJI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:56.664Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545440,540154,TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100,'GLD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:56.737Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545441,540154,TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100,'ARF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:56.817Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545442,540154,TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100,'APC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:56.894Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545443,540154,TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100,'CMA','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:56.980Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545444,540154,TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100,'MMS','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:57.052Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545445,540154,TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100,'POO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:56','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:57.133Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545446,540154,TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100,'SOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:57.235Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545447,540154,TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100,'ARI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:57.320Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545448,540154,TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100,'MMR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:57.396Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545449,540154,TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100,'CON','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:57.492Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545450,540154,TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100,'MST','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:57.586Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545451,540154,TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100,'MMI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:57.671Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545452,540154,TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100,'CMB','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:57.744Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545453,540154,TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100,'ARR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:57.814Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545454,540154,TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100,'APP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:57.900Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545455,540154,TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100,'MQO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:58.006Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545456,540154,TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100,'MOP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:57','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:58.080Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545457,540154,TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100,'MOF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:58.160Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545458,540154,TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100,'DUN','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:58.245Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545459,540154,TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100,'SDC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:58.337Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545460,540154,TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100,'SDD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:58.430Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545461,540154,TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100,'CUI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:58.510Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period (AD_Client_ID,AD_Org_ID,C_Period_ID,Created,CreatedBy,C_Year_ID,EndDate,IsActive,Name,PeriodNo,PeriodType,Processing,StartDate,Updated,UpdatedBy) VALUES (1000000,0,540155,TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100,540015,TO_TIMESTAMP('2021-10-31','YYYY-MM-DD'),'Y','Okt-21',10,'S','N',TO_TIMESTAMP('2021-10-01','YYYY-MM-DD'),TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:58.511Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period_Trl (AD_Language,C_Period_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.C_Period_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_Period t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.C_Period_ID=540155 AND NOT EXISTS (SELECT 1 FROM C_Period_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_Period_ID=t.C_Period_ID) ; -- 2020-01-01T18:58:58.595Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545462,540155,TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100,'AVI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:58.683Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545463,540155,TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100,'API','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:58.799Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545464,540155,TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100,'HRP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:58.867Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545465,540155,TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100,'DOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:58.956Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545466,540155,TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100,'MCC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:59.038Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545467,540155,TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100,'AEI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:58','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:59.120Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545468,540155,TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100,'GLJ','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:59.198Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545469,540155,TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100,'ARC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:59.279Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545470,540155,TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100,'MXI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:59.356Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545471,540155,TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100,'MXP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:59.436Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545472,540155,TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100,'POR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:59.517Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545473,540155,TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100,'MMM','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:59.601Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545474,540155,TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100,'MMP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:59.693Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545475,540155,TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100,'PJI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:59.773Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545476,540155,TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100,'GLD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:59.849Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545477,540155,TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100,'ARF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:58:59.927Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545478,540155,TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100,'APC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:00.004Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545479,540155,TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100,'CMA','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:58:59','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:00.101Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545480,540155,TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100,'MMS','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:00.186Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545481,540155,TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100,'POO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:00.268Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545482,540155,TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100,'SOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:00.350Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545483,540155,TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100,'ARI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:00.433Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545484,540155,TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100,'MMR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:00.516Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545485,540155,TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100,'CON','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:00.595Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545486,540155,TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100,'MST','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:00.682Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545487,540155,TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100,'MMI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:00.760Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545488,540155,TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100,'CMB','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:00.835Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545489,540155,TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100,'ARR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:00.937Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545490,540155,TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100,'APP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:01.019Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545491,540155,TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100,'MQO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:00','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:01.106Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545492,540155,TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100,'MOP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:01.190Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545493,540155,TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100,'MOF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:01.264Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545494,540155,TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100,'DUN','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:01.336Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545495,540155,TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100,'SDC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:01.419Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545496,540155,TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100,'SDD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:01.519Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545497,540155,TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100,'CUI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:01.612Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period (AD_Client_ID,AD_Org_ID,C_Period_ID,Created,CreatedBy,C_Year_ID,EndDate,IsActive,Name,PeriodNo,PeriodType,Processing,StartDate,Updated,UpdatedBy) VALUES (1000000,0,540156,TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100,540015,TO_TIMESTAMP('2021-11-30','YYYY-MM-DD'),'Y','Nov-21',11,'S','N',TO_TIMESTAMP('2021-11-01','YYYY-MM-DD'),TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:01.613Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period_Trl (AD_Language,C_Period_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.C_Period_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_Period t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.C_Period_ID=540156 AND NOT EXISTS (SELECT 1 FROM C_Period_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_Period_ID=t.C_Period_ID) ; -- 2020-01-01T18:59:01.698Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545498,540156,TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100,'AVI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:01.772Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545499,540156,TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100,'API','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:01.845Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545500,540156,TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100,'HRP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:01.931Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545501,540156,TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100,'DOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:02.001Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545502,540156,TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100,'MCC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:01','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:02.086Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545503,540156,TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100,'AEI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:02.172Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545504,540156,TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100,'GLJ','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:02.260Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545505,540156,TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100,'ARC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:02.353Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545506,540156,TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100,'MXI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:02.437Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545507,540156,TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100,'MXP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:02.509Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545508,540156,TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100,'POR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:02.601Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545509,540156,TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100,'MMM','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:02.679Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545510,540156,TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100,'MMP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:02.762Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545511,540156,TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100,'PJI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:02.839Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545512,540156,TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100,'GLD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:02.924Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545513,540156,TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100,'ARF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:03.018Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545514,540156,TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100,'APC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:02','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:03.094Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545515,540156,TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100,'CMA','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:03.221Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545516,540156,TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100,'MMS','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:03.307Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545517,540156,TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100,'POO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:03.386Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545518,540156,TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100,'SOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:03.472Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545519,540156,TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100,'ARI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:03.549Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545520,540156,TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100,'MMR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:03.626Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545521,540156,TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100,'CON','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:03.711Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545522,540156,TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100,'MST','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:03.802Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545523,540156,TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100,'MMI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:03.877Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545524,540156,TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100,'CMB','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:03.988Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545525,540156,TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100,'ARR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:04.060Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545526,540156,TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100,'APP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:03','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:04.136Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545527,540156,TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100,'MQO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:04.219Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545528,540156,TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100,'MOP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:04.301Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545529,540156,TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100,'MOF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:04.382Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545530,540156,TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100,'DUN','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:04.479Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545531,540156,TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100,'SDC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:04.556Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545532,540156,TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100,'SDD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:04.633Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545533,540156,TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100,'CUI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:04.712Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period (AD_Client_ID,AD_Org_ID,C_Period_ID,Created,CreatedBy,C_Year_ID,EndDate,IsActive,Name,PeriodNo,PeriodType,Processing,StartDate,Updated,UpdatedBy) VALUES (1000000,0,540157,TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100,540015,TO_TIMESTAMP('2021-12-31','YYYY-MM-DD'),'Y','Dez-21',12,'S','N',TO_TIMESTAMP('2021-12-01','YYYY-MM-DD'),TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:04.713Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_Period_Trl (AD_Language,C_Period_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.C_Period_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_Period t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.C_Period_ID=540157 AND NOT EXISTS (SELECT 1 FROM C_Period_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_Period_ID=t.C_Period_ID) ; -- 2020-01-01T18:59:04.788Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545534,540157,TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100,'AVI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:04.865Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545535,540157,TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100,'API','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:04.953Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545536,540157,TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100,'HRP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:05.026Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545537,540157,TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100,'DOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:04','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:05.102Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545538,540157,TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100,'MCC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:05.179Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545539,540157,TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100,'AEI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:05.261Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545540,540157,TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100,'GLJ','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:05.376Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545541,540157,TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100,'ARC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:05.469Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545542,540157,TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100,'MXI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:05.562Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545543,540157,TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100,'MXP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:05.657Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545544,540157,TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100,'POR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:05.744Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545545,540157,TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100,'MMM','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:05.828Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545546,540157,TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100,'MMP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:05.908Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545547,540157,TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100,'PJI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:05.981Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545548,540157,TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100,'GLD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:06.057Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545549,540157,TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100,'ARF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:06.134Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545550,540157,TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100,'APC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:06.214Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545551,540157,TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100,'CMA','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:06.299Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545552,540157,TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100,'MMS','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:06.383Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545553,540157,TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100,'POO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:06.458Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545554,540157,TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100,'SOO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:06.542Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545555,540157,TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100,'ARI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:06.625Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545556,540157,TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100,'MMR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:06.703Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545557,540157,TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100,'CON','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:06.777Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545558,540157,TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100,'MST','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:06.841Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545559,540157,TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100,'MMI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:06.913Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545560,540157,TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100,'CMB','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:06.990Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545561,540157,TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100,'ARR','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:07.070Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545562,540157,TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100,'APP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:07.143Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545563,540157,TO_TIMESTAMP('2020-01-01 19:59:07','YYYY-MM-DD HH24:MI:SS'),100,'MQO','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:07','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:07.226Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545564,540157,TO_TIMESTAMP('2020-01-01 19:59:07','YYYY-MM-DD HH24:MI:SS'),100,'MOP','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:07','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:07.318Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545565,540157,TO_TIMESTAMP('2020-01-01 19:59:07','YYYY-MM-DD HH24:MI:SS'),100,'MOF','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:07','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:07.405Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545566,540157,TO_TIMESTAMP('2020-01-01 19:59:07','YYYY-MM-DD HH24:MI:SS'),100,'DUN','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:07','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:07.527Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545567,540157,TO_TIMESTAMP('2020-01-01 19:59:07','YYYY-MM-DD HH24:MI:SS'),100,'SDC','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:07','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:07.621Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545568,540157,TO_TIMESTAMP('2020-01-01 19:59:07','YYYY-MM-DD HH24:MI:SS'),100,'SDD','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:07','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-01-01T18:59:07.700Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PeriodControl (AD_Client_ID,AD_Org_ID,C_PeriodControl_ID,C_Period_ID,Created,CreatedBy,DocBaseType,IsActive,PeriodAction,PeriodStatus,Processing,Updated,UpdatedBy) VALUES (1000000,0,545569,540157,TO_TIMESTAMP('2020-01-01 19:59:07','YYYY-MM-DD HH24:MI:SS'),100,'CUI','Y','N','N','N',TO_TIMESTAMP('2020-01-01 19:59:07','YYYY-MM-DD HH24:MI:SS'),100) ; RAISE NOTICE 'successfully created C_Year "2021" for C_Calendar_ID=1000000, with C_Period and C_PeriodControl records'; END; $BODY$; select public.add_year_2021_if_not_exists();
<gh_stars>0 -- ObligationsUndeliveredOrdersUnpaidTotal (FYB) = USSGL(4801) for the same TAS/DEFC combination. -- This applies to the award level. SELECT row_number, obligations_undelivered_or_fyb, ussgl480100_undelivered_or_fyb, COALESCE(obligations_undelivered_or_fyb, 0) - COALESCE(ussgl480100_undelivered_or_fyb, 0) AS "difference", display_tas AS "uniqueid_TAS", disaster_emergency_fund_code AS "uniqueid_DisasterEmergencyFundCode", piid AS "uniqueid_PIID", fain AS "uniqueid_FAIN", uri AS "uniqueid_URI" FROM award_financial WHERE submission_id = {0} AND COALESCE(obligations_undelivered_or_fyb, 0) <> COALESCE(ussgl480100_undelivered_or_fyb, 0);
<reponame>onlymaker/taurus drop table if exists report_upload; create table report_upload ( id int unsigned not null auto_increment primary key, data json, oid varchar(100) generated always as (data ->> '$.trace_id'), guid char(36) not null default '', gnum int unsigned not null default 0, report_order_status tinyint(1) unsigned not null default 0, report_order_log int unsigned not null default 0, report_logistics_status tinyint(1) unsigned not null default 0, report_logistics_log int unsigned not null default 0, report_receipts_status tinyint(1) unsigned not null default 0, report_receipts_log int unsigned not null default 0, report_inventory_status tinyint(1) unsigned not null default 0, report_inventory_log int unsigned not null default 0, report_waybill_status tinyint(1) unsigned not null default 0, report_waybill_log int unsigned not null default 0, create_time timestamp not null default current_timestamp, unique index export_upload_oid (oid) ); drop table if exists report_log; create table report_log ( id int unsigned not null auto_increment primary key, type varchar(10) not null,#order,logistics,receipts,inventory,waybill content text, response text, status varchar(10), message varchar(1000), create_time timestamp not null default current_timestamp );
{{ config( materialized='table' ) }} SELECT o.order_id, o.status, o.tracking_id, o.shipping_service, o.promo_id, o.discount, o.order_cost FROM {{ ref('int_order_promos') }} o
<filename>village_addtosample.sql INSERT INTO zaf.tbl_sampling_201602 ( village_name, village_code, main_place_name, main_place_code, municipality_name, municipality_code, municipality_mdb_c, district_name, district_code, district_mdb_c, province_name, province_code, province_mdb_c, lz_code, survey) SELECT sp_name, sp_code, mp_name, mp_code, mn_name, mn_code, mn_mdb_c, dc_name, dc_code, dc_mdb_c, pr_name, pr_code, pr_mdb_c, lz_code, 'continuum' FROM zaf.demog_sas WHERE sp_code = 5920255 ;
<reponame>kenliu/peer-acks-v2 CREATE USER IF NOT EXISTS peeracks; CREATE DATABASE peeracks; GRANT ALL ON DATABASE peeracks to peeracks;
<reponame>dbmi-pitt/DIKB-EvidenceBase<gh_stars>0 -- -- 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 = ohdsi, pg_catalog; SET default_tablespace = ''; SET default_with_oids = false; -- -- Name: source; Type: TABLE; Schema: ohdsi; Owner: rdb20; Tablespace: -- CREATE TABLE source ( source_id integer NOT NULL, source_name character varying(255) NOT NULL, source_key character varying(50) NOT NULL, source_connection character varying(8000) NOT NULL, source_dialect character varying(255) NOT NULL ); ALTER TABLE source OWNER TO dikb; -- -- Data for Name: source; Type: TABLE DATA; Schema: ohdsi; Owner: dikb -- INSERT INTO source (source_id, source_name, source_key, source_connection, source_dialect) VALUES (1, 'DIKB', 'POSTGRES-DIKB', 'jdbc:postgresql://localhost:5432/dikb?user=<username>&password=<password>', 'postgresql'); -- -- Name: pk_source; Type: CONSTRAINT; Schema: ohdsi; Owner: dikb; Tablespace: -- -- ALTER TABLE ONLY source -- ADD CONSTRAINT pk_source PRIMARY KEY (source_id); -- -- PostgreSQL database dump complete --
create database if not exists hive_native; drop table if exists hive_native.fewtypes_null_hive; create external table hive_native.fewtypes_null_hive ( int_col int, bigint_col bigint, date_col string, time_col string, timestamp_col string, interval_col string, varchar_col string, float_col float, double_col double, bool_col boolean ) stored as parquet location '/drill/testdata/hive_storage/hive_native/drillgen_fewtypes_null'; drop table if exists hive_native.drill_supported_hivetypes; create external table hive_native.drill_supported_hivetypes ( c1 int, c2 boolean, c3 double, c4 string, c9 tinyint, c10 smallint, c11 float, c12 bigint, c17 timestamp, c19 string, c20 string ) stored as parquet location '/drill/testdata/hive_storage/hive_native/drill_supported_hivetypes'; drop table if exists hive_native.hivegen_fewtypes_null_hive; create external table hive_native.hivegen_fewtypes_null_hive ( int_col int, bigint_col bigint, date_col string, time_col string, timestamp_col timestamp, interval_col string, varchar_col string, float_col float, double_col double, bool_col boolean ) stored as parquet location '/drill/testdata/hive_storage/hive_native/hivegen_fewtypes_null';
<reponame>daniimd/CRUD-InterAlpha CREATE DATABASE CRUD USE CRUD GO CREATE TABLE Clientes ( ClienteId INT IDENTITY (1,1), Nome VARCHAR(50) NOT NULL, CPF VARCHAR(11) NOT NULL, Sexo VARCHAR(10) NOT NULL, Endereco VARCHAR(50) NULL, Bairro VARCHAR(30) NULL, Telefone CHAR(9) NULL, Email VARCHAR(30) NULL CONSTRAINT ClienteId_PK PRIMARY KEY (ClienteId) ) CREATE TABLE Produtos( ProdutoId INT IDENTITY (1,1), Nome VARCHAR(30), Descricao VARCHAR(50), Preco DECIMAL(10,2) , Tipo VARCHAR(10), CONSTRAINT ProdutoId_PK PRIMARY KEY (ProdutoId) ) CREATE TABLE ProdCli( ProdCliId INT IDENTITY(1,1), ClienteId INT, ProdutoId INT, CONSTRAINT ProdCli_PK PRIMARY KEY(ProdCliId), CONSTRAINT Cliente_FK FOREIGN KEY (ClienteId) REFERENCES Clientes (ClienteId), CONSTRAINT Produto_PK FOREIGN KEY (ProdutoId) REFERENCES Produtos (ProdutoId) ) SELECT * FROM CLIENTES SELECT * FROM PRODUTOS SELECT * FROM PRODCLI
<filename>gpff-sql/procedures/help/procReadHelp.sql --drop PROCEDURE GPSQLWEB.procReadHelp CREATE PROCEDURE GPSQLWEB.procReadHelp ( IN P_COD_TABLA VARCHAR(15), IN P_CODE VARCHAR(50), IN P_DESCRIPTION VARCHAR(150), IN P_PARENTCODE VARCHAR(150), IN P_FIRSTRESULT INTEGER, IN P_MAXRESULT INTEGER, IN P_SORT VARCHAR(255), IN P_USERNAME VARCHAR(50), IN P_IPADDRESS VARCHAR(255), IN P_USERAGENT VARCHAR(32000) ) RESULT SET 1 LANGUAGE SQL BEGIN Declare StringSQL VARCHAR(32000) Not Null Default ''; Declare WhereClause VARCHAR(32000) Not Null Default ''; Declare SortClause VARCHAR(32000) Not Null Default ''; DECLARE Tabla VARCHAR(100) Not Null Default ''; Declare FieldCod VARCHAR(50) Not Null Default ''; Declare FieldDescription VARCHAR(50) Not Null Default ''; Declare FieldParent VARCHAR(50) Not Null Default ''; DECLARE c1 CURSOR WITH RETURN FOR s1; IF P_SORT IS NOT NULL AND LENGTH(P_SORT) > 0 THEN Set SortClause = ' ORDER BY ' || P_SORT ; END IF; SELECT TABLENAME, TABLECODE, TABLEDESC, TABLEPARENT INTO Tabla, FieldCod, FieldDescription, FieldParent FROM GPSQLWEB.TableHelp where CODE= P_COD_TABLA; IF P_CODE IS NOT NULL AND LENGTH(P_CODE) > 0 THEN Set WhereClause = ' AND ' || FieldCod || ' = ' || P_CODE; END IF; IF P_DESCRIPTION IS NOT NULL AND LENGTH(P_DESCRIPTION) > 0 THEN Set WhereClause = ' AND ' || FieldDescription || ' like ''%' || P_DESCRIPTION || '%'' '; END IF; IF FieldParent IS NOT NULL AND LENGTH(FieldParent) > 0 AND P_PARENTCODE IS NOT NULL AND LENGTH(P_PARENTCODE) > 0 THEN Set WhereClause = ' AND ' || FieldParent || ' = ' || P_PARENTCODE ; END IF; IF P_FIRSTRESULT > 0 AND P_MAXRESULT > 0 THEN Set StringSQL = 'SELECT * FROM ( SELECT ROW_NUMBER() OVER() AS ROW__NUMBER, ' || FieldCod || ' AS CODE,' || FieldDescription || ' AS DESC FROM ' || Tabla || ' WHERE 1=1 ' || WhereClause || ' ) AS LIMITED__TABLE WHERE ROW__NUMBER BETWEEN '|| P_FIRSTRESULT || ' and '|| ((P_MAXRESULT+P_FIRSTRESULT) -1) || SortClause ; ELSE IF P_MAXRESULT > 0 THEN Set StringSQL = 'SELECT ' || FieldCod || ' AS CODE ,' || FieldDescription || ' AS DESC FROM ' || Tabla || ' WHERE 1=1 ' || WhereClause || SortClause || ' FETCH FIRST '|| P_MAXRESULT ||' ROWS ONLY '; ELSE Set StringSQL = 'SELECT ' || FieldCod || ' AS CODE,' || FieldDescription || ' AS DESC FROM ' || Tabla || ' WHERE 1=1 ' || WhereClause || SortClause; END IF; END IF; CALL GPSQLWEB.procCreateWebAudit (P_IPADDRESS, P_USERAGENT, P_USERNAME, 'Leer', 'procReadHelp', StringSQL); PREPARE s1 FROM StringSQL; OPEN c1; END --call GPSQLWEB.procReadHelp('04','','','',0,0,'','','','')
<gh_stars>1-10 /****** Object: Table [dbo].[T_Creation_Option_Values] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[T_Creation_Option_Values]( [Value_ID] [int] IDENTITY(1,1) NOT NULL, [Value_String] [varchar](64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [Display] [varchar](128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [Description] [varchar](250) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [Keyword_ID] [int] NOT NULL, CONSTRAINT [PK_T_Creation_Option_Values] PRIMARY KEY CLUSTERED ( [Value_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO
<reponame>lauracristinaes/aula-java<filename>hibernate-release-5.3.7.Final/project/documentation/src/main/asciidoc/userguide/chapters/domain/extras/collections/collections-array-binary-example.sql CREATE TABLE Person ( id BIGINT NOT NULL , phones VARBINARY(255) , PRIMARY KEY ( id ) )
{% macro get_page_part(page_url) %} -- reverse((left(reverse(page_url), position('/' in reverse(page_url))-1))) reverse(split_part(reverse(page_url), '-', 1)) {% endmacro %}
<gh_stars>0 CREATE VIEW `v_encounter` AS SELECT `a`.`appt_id` AS `id`,`c`.`encounter_id` AS `encounter_id`,CONCAT(`a`.`status_date`,' ',`a`.`status_time`) AS `date`,CASE `a`.`appt_status` WHEN 'B' THEN 'Booked' WHEN 'A' THEN 'Arrived' WHEN 'S' THEN 'Seen' WHEN 'C' THEN 'Cancelled' ELSE NULL END AS `type`,'\nOP' AS `details`,CONCAT(`b`.`title_code`,`b`.`name`) AS `doctor`,`c`.`patient_id` AS `patient_id`,`d`.`patient_guid` AS `patient_guid`,`c`.`encounter_type` AS `encounter_type`,`c`.`status` AS `status`,`a`.`status_date` AS `date_time`,`a`.`appt_status` AS `row_sts`,0 AS `is_swap`,`a`.`consultant_id` AS `consultant_id`,`a`.`tenant_id` AS `tenant_id`,`t`.`tenant_name` AS `tenant_name` FROM ((((`pat_appointment` `a` JOIN `co_user` `b` ON(`b`.`user_id` = `a`.`consultant_id`)) JOIN `pat_encounter` `c` ON(`c`.`encounter_id` = `a`.`encounter_id`)) JOIN `pat_patient` `d` ON(`d`.`patient_id` = `c`.`patient_id`)) JOIN `co_tenant` `t` ON(`t`.`tenant_id` = `a`.`tenant_id`)) UNION ALL SELECT `a`.`admn_id` AS `id`,`c`.`encounter_id` AS `encounter_id`,`a`.`status_date` AS `date`,CASE `a`.`admission_status` WHEN 'A' THEN 'Admission' WHEN 'D' THEN 'Administrative Discharge' WHEN 'CD' THEN 'Clinical Discharge' WHEN 'TR' THEN 'Transfer (Room)' WHEN 'TD' THEN 'Transfer (Doctor)' WHEN 'C' THEN 'Cancelled' WHEN 'AC' THEN 'Admission Cancelled' ELSE NULL END AS `type`,CONCAT('IP: ',`d`.`floor_name`,' > ',`e`.`ward_name`,' > ',`f`.`bed_name`,' (',`g`.`room_type_name`,')') AS `details`,CONCAT(`b`.`title_code`,`b`.`name`) AS `doctor`,`c`.`patient_id` AS `patient_id`,`h`.`patient_guid` AS `patient_guid`,`c`.`encounter_type` AS `encounter_type`,`c`.`status` AS `status`,`a`.`status_date` AS `date_time`,`a`.`admission_status` AS `row_sts`,`a`.`is_swap` AS `is_swap`,`a`.`consultant_id` AS `consultant_id`,`a`.`tenant_id` AS `tenant_id`,`t`.`tenant_name` AS `tenant_name` FROM ((((((((`pat_admission` `a` JOIN `co_user` `b` ON(`b`.`user_id` = `a`.`consultant_id`)) JOIN `pat_encounter` `c` ON(`c`.`encounter_id` = `a`.`encounter_id`)) LEFT JOIN `co_floor` `d` ON(`d`.`floor_id` = `a`.`floor_id`)) LEFT JOIN `co_ward` `e` ON(`e`.`ward_id` = `a`.`ward_id`)) LEFT JOIN `co_room` `f` ON(`f`.`room_id` = `a`.`room_id`)) LEFT JOIN `co_room_type` `g` ON(`g`.`room_type_id` = `a`.`room_type_id`)) JOIN `pat_patient` `h` ON(`h`.`patient_id` = `c`.`patient_id`)) JOIN `co_tenant` `t` ON(`t`.`tenant_id` = `a`.`tenant_id`)) WHERE `a`.`status` = '1' ORDER BY `encounter_id` DESC,`date_time`
<reponame>LasseWolter/clowdr ALTER TABLE "public"."RequiredContentItem" ADD COLUMN "uploadsRemaining" integer NULL;
<reponame>carmour24/UnitOfWork -- Inserting some useful data INSERT INTO public.tbl2( foreign_name) VALUES ('foreign test'); INSERT INTO public.tbl1( foreign_name, name) VALUES (1, 'test');
--SELECT "Motos_1"."Marca" AS "Datos (copia)", "Motos_1"."Medio" AS "Medio", SUM("Motos_1"."InversionUS") AS "TEMP(TC_)(2622528870)(0)", SUM("Motos_1"."InversionUS") AS "sum:Calculation_0061002123102817:ok", SUM("Motos_1"."InversionQ") AS "sum:InversionQ:ok", TABLEAU.TO_DATETIME(DATE_TRUNC('YEAR', TABLEAU.NORMALIZE_DATETIME("Motos_1"."FECHA")), "Motos_1"."FECHA") AS "tyr:FECHA:ok" FROM "Motos_1" WHERE (('Cerrar' = 'Cerrar') AND ("Motos_1"."Medio" = 'RADIO') AND ("Motos_1"."Categoria" IN ('CAMIONES', 'CAMIONES, BUSES Y PANELES', 'MOTOCICLETAS', 'PICK UPS, VANS Y JEEPS', 'PICK-UPS', 'SUV Y JEEPS', 'VEHICULOS NUEVOS')) AND (CAST(EXTRACT(YEAR FROM "Motos_1"."FECHA") AS BIGINT) >= 2010) AND (CAST(EXTRACT(YEAR FROM "Motos_1"."FECHA") AS BIGINT) <= 2015) AND ("Motos_1"."Categoria" = 'MOTOCICLETAS')) GROUP BY 1, 2, 6;
BEGIN; TRUNCATE TABLE todos; COMMIT;
<reponame>SkillsFundingAgency/DC-Data-Postcodes CREATE TABLE [Staging].[HMPP_Postcodes] ( [Postcode] NVARCHAR(10) NOT NULL , [UKPRN] BIGINT NOT NULL, [EffectiveFrom] DATE NOT NULL, [EffectiveTo] DATE NULL ) GO GRANT ALTER ON OBJECT::Staging.HMPP_Postcodes TO [PostCode_RW_User];
CREATE DATABASE bd_user; CREATE TABLE tb_user(`nome` varchar(20),`senha` varchar(8),`adm` varchar(3));
<reponame>gatesyp/GymGo<filename>GymGo.sql -- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 20, 2016 at 11:35 PM -- Server version: 5.5.47-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.14 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: `GymGo` -- -- -------------------------------------------------------- -- -- Table structure for table `issues` -- CREATE TABLE IF NOT EXISTS `issues` ( `id` int(63) NOT NULL AUTO_INCREMENT, `user_name` varchar(255) NOT NULL, `exercise_name` varchar(255) NOT NULL, `created_at` varchar(255) NOT NULL, `updated_at` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `issues` -- INSERT INTO `issues` (`id`, `user_name`, `exercise_name`, `created_at`, `updated_at`) VALUES (1, 'steven', 'squats', '', ''); -- -------------------------------------------------------- -- -- Table structure for table `registered_trainers` -- CREATE TABLE IF NOT EXISTS `registered_trainers` ( `id` int(63) NOT NULL AUTO_INCREMENT, `trainer` varchar(255) NOT NULL, `created_at` varchar(255) NOT NULL, `updated_at` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `trainer` (`trainer`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -- Dumping data for table `registered_trainers` -- INSERT INTO `registered_trainers` (`id`, `trainer`, `created_at`, `updated_at`) VALUES (1, 'steven', '2016-02-20 08:09:38', '2016-02-20 08:09:38'), (3, 'john', '2016-02-20 13:45:41', '2016-02-20 13:45:41'); -- -------------------------------------------------------- -- -- Table structure for table `registered_users` -- CREATE TABLE IF NOT EXISTS `registered_users` ( `id` int(63) NOT NULL AUTO_INCREMENT, `google_id` varchar(255) NOT NULL, `user` varchar(255) NOT NULL, `gender` varchar(255) NOT NULL, `updated_at` varchar(255) NOT NULL, `created_at` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=33 ; -- -- Dumping data for table `registered_users` -- INSERT INTO `registered_users` (`id`, `google_id`, `user`, `gender`, `updated_at`, `created_at`) VALUES (7, '11029394112', 'Steven', 'men', '2016-02-20 07:55:23', '2016-02-20 07:55:23'), (8, '1412341231', 'Matt', 'men', '2016-02-21 00:01:37', '2016-02-21 00:01:37'), (9, '15231314', 'Aaron', 'men', '2016-02-21 00:02:03', '2016-02-21 00:02:03'), (10, '15231314', 'Noah', 'men', '2016-02-21 00:02:24', '2016-02-21 00:02:24'), (11, '123156745', 'Aliya', 'women', '2016-02-21 00:02:41', '2016-02-21 00:02:41'), (12, '8243572', 'Megan', 'women', '2016-02-21 00:02:50', '2016-02-21 00:02:50'), (13, '0912840523', 'Sammy', 'women', '2016-02-21 00:03:03', '2016-02-21 00:03:03'), (14, '0912840523', 'Daisy', 'women', '2016-02-21 00:04:18', '2016-02-21 00:04:18'), (15, '0912840523', 'Bernie', 'men', '2016-02-21 00:04:41', '2016-02-21 00:04:41'), (16, '0912840523', 'Sanders', 'men', '2016-02-21 00:04:51', '2016-02-21 00:04:51'), (17, '0912840523', 'Ted', 'men', '2016-02-21 00:05:09', '2016-02-21 00:05:09'), (18, '0912840523', 'Emerson', 'men', '2016-02-21 00:05:13', '2016-02-21 00:05:13'), (19, '0912840523', 'Alex', 'men', '2016-02-21 00:05:41', '2016-02-21 00:05:41'), (20, '0912840523', 'Grace', 'women', '2016-02-21 00:05:44', '2016-02-21 00:05:44'), (21, '0912840523', 'Russel', 'men', '2016-02-21 00:05:48', '2016-02-21 00:05:48'), (22, '0912840523', 'Trevor', 'men', '2016-02-21 00:05:53', '2016-02-21 00:05:53'), (23, '0912840523', 'Kayla', 'women', '2016-02-21 00:05:58', '2016-02-21 00:05:58'), (24, '0912840523', 'Laqiusha', 'women', '2016-02-21 00:06:26', '2016-02-21 00:06:26'), (25, '0912840523', 'Lateesha', 'women', '2016-02-21 00:06:37', '2016-02-21 00:06:37'), (26, '0912840523', 'Lashonda', 'women', '2016-02-21 00:06:40', '2016-02-21 00:06:40'), (27, '0912840523', 'Samantha', 'women', '2016-02-21 00:07:10', '2016-02-21 00:07:10'), (28, '0912840523', 'Ronda', 'women', '2016-02-21 00:07:13', '2016-02-21 00:07:13'), (29, '0912840523', 'Bill', 'men', '2016-02-21 00:07:17', '2016-02-21 00:07:17'), (30, '0912840523', 'Nick', 'men', '2016-02-21 00:07:29', '2016-02-21 00:07:29'), (31, '0912840523', 'Shelby', 'women', '2016-02-21 00:08:20', '2016-02-21 00:08:20'); -- -------------------------------------------------------- -- -- Table structure for table `trainer_preferences` -- CREATE TABLE IF NOT EXISTS `trainer_preferences` ( `id` int(63) NOT NULL AUTO_INCREMENT, `user_id` int(63) NOT NULL, `trainer_id` int(63) NOT NULL, `updated_at` varchar(255) NOT NULL, `created_at` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -- Dumping data for table `trainer_preferences` -- INSERT INTO `trainer_preferences` (`id`, `user_id`, `trainer_id`, `updated_at`, `created_at`) VALUES (1, 1, 2, '', ''), (2, 1, 1, '2016-02-20 13:47:35', '2016-02-20 13:47:35'); -- -------------------------------------------------------- -- -- Table structure for table `workouts` -- CREATE TABLE IF NOT EXISTS `workouts` ( `id` int(63) NOT NULL AUTO_INCREMENT, `user_id` int(63) NOT NULL, `exercise_name` varchar(255) NOT NULL, `created_at` varchar(255) NOT NULL, `updated_at` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -- Dumping data for table `workouts` -- INSERT INTO `workouts` (`id`, `user_id`, `exercise_name`, `created_at`, `updated_at`) VALUES (1, 3, 'Squats', '2016-02-20 14:29:18', '2016-02-20 14:29:18'), (2, 3, 'Deadlift', '', ''), (3, 3, 'Benching', '', ''); /*!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 */;
/* Navicat Premium Data Transfer Source Server : localhost_laragon Source Server Type : MySQL Source Server Version : 50724 Source Host : localhost:3306 Source Schema : newoa Target Server Type : MySQL Target Server Version : 50724 File Encoding : 65001 Date: 21/07/2020 14:54:12 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for admin_menu -- ---------------------------- DROP TABLE IF EXISTS `admin_menu`; CREATE TABLE `admin_menu` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `parent_id` int(11) NOT NULL DEFAULT 0, `order` int(11) NOT NULL DEFAULT 0, `title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `icon` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `uri` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, `permission` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of admin_menu -- ---------------------------- INSERT INTO `admin_menu` VALUES (1, 0, 1, '首页', 'fa-bar-chart', '/', NULL, NULL, NULL); INSERT INTO `admin_menu` VALUES (2, 0, 2, '后台管理', 'fa-tasks', '', NULL, NULL, NULL); INSERT INTO `admin_menu` VALUES (3, 2, 5, '员工管理', 'fa-user', 'auth/users', NULL, NULL, '2020-07-20 10:45:50'); INSERT INTO `admin_menu` VALUES (4, 2, 6, '角色管理', 'fa-user', 'auth/roles', NULL, NULL, '2020-07-20 10:45:50'); INSERT INTO `admin_menu` VALUES (5, 2, 7, '权限管理', 'fa-ban', 'auth/permissions', NULL, NULL, '2020-07-20 10:45:50'); INSERT INTO `admin_menu` VALUES (6, 2, 3, '菜单管理', 'fa-bars', 'auth/menu', NULL, NULL, NULL); INSERT INTO `admin_menu` VALUES (7, 2, 4, '操作记录', 'fa-history', 'auth/logs', NULL, NULL, NULL); INSERT INTO `admin_menu` VALUES (8, 0, 14, '客户管理', 'fa-users', NULL, NULL, '2020-07-20 10:27:13', '2020-07-20 10:45:50'); INSERT INTO `admin_menu` VALUES (9, 8, 15, '客户列表', 'fa-bars', '/customers', NULL, '2020-07-20 10:27:37', '2020-07-20 10:45:50'); INSERT INTO `admin_menu` VALUES (10, 8, 16, '客户需求管理', 'fa-bars', '/customer-demands', NULL, '2020-07-20 10:28:18', '2020-07-20 10:45:50'); INSERT INTO `admin_menu` VALUES (11, 8, 17, '客户联系人管理', 'fa-bars', 'customer-contacts', NULL, '2020-07-20 10:29:01', '2020-07-20 10:45:50'); INSERT INTO `admin_menu` VALUES (12, 0, 8, '综合管理', 'fa-bars', NULL, NULL, '2020-07-20 10:30:26', '2020-07-20 10:45:50'); INSERT INTO `admin_menu` VALUES (13, 12, 10, '渠道管理', 'fa-bars', 'channels', NULL, '2020-07-20 10:42:31', '2020-07-20 10:46:49'); INSERT INTO `admin_menu` VALUES (14, 12, 11, '名片模板管理', 'fa-bars', 'cart-templates', NULL, '2020-07-20 10:42:55', '2020-07-20 10:46:49'); INSERT INTO `admin_menu` VALUES (15, 12, 12, '参数管理', 'fa-bars', 'params', NULL, '2020-07-20 10:43:13', '2020-07-20 10:46:49'); INSERT INTO `admin_menu` VALUES (16, 12, 13, '产品参数管理', 'fa-bars', 'product-params', NULL, '2020-07-20 10:43:30', '2020-07-20 10:46:49'); INSERT INTO `admin_menu` VALUES (17, 12, 9, '部门管理', 'fa-bars', 'departments', NULL, '2020-07-20 10:43:58', '2020-07-20 10:46:49'); INSERT INTO `admin_menu` VALUES (18, 8, 18, '联系人名片管理', 'fa-bars', 'customer-contact-cards', NULL, '2020-07-20 10:44:14', '2020-07-20 10:45:50'); INSERT INTO `admin_menu` VALUES (19, 0, 19, '订单管理', 'fa-bars', NULL, NULL, '2020-07-20 10:44:31', '2020-07-20 10:45:50'); INSERT INTO `admin_menu` VALUES (20, 19, 20, '订单列表', 'fa-bars', 'orders', NULL, '2020-07-20 10:44:53', '2020-07-20 10:45:50'); INSERT INTO `admin_menu` VALUES (21, 19, 21, '订单日志', 'fa-bars', 'orders-logs', NULL, '2020-07-20 10:45:34', '2020-07-20 10:45:50'); INSERT INTO `admin_menu` VALUES (22, 12, 0, '产品管理', 'fa-bars', 'products', NULL, '2020-07-20 11:40:32', '2020-07-20 11:40:32'); -- ---------------------------- -- Table structure for admin_operation_log -- ---------------------------- DROP TABLE IF EXISTS `admin_operation_log`; CREATE TABLE `admin_operation_log` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `input` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, INDEX `admin_operation_log_user_id_index`(`user_id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 631 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of admin_operation_log -- ---------------------------- INSERT INTO `admin_operation_log` VALUES (1, 1, 'admin', 'GET', '127.0.0.1', '[]', '2020-07-16 14:28:18', '2020-07-16 14:28:18'); INSERT INTO `admin_operation_log` VALUES (2, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 14:28:23', '2020-07-16 14:28:23'); INSERT INTO `admin_operation_log` VALUES (3, 1, 'admin/auth/roles', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 14:28:28', '2020-07-16 14:28:28'); INSERT INTO `admin_operation_log` VALUES (4, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 14:28:30', '2020-07-16 14:28:30'); INSERT INTO `admin_operation_log` VALUES (5, 1, 'admin/auth/users/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 14:44:37', '2020-07-16 14:44:37'); INSERT INTO `admin_operation_log` VALUES (6, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 14:45:06', '2020-07-16 14:45:06'); INSERT INTO `admin_operation_log` VALUES (7, 1, 'admin/auth/users/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 15:09:13', '2020-07-16 15:09:13'); INSERT INTO `admin_operation_log` VALUES (8, 1, 'admin/auth/users/create', 'GET', '127.0.0.1', '[]', '2020-07-16 15:10:35', '2020-07-16 15:10:35'); INSERT INTO `admin_operation_log` VALUES (9, 1, 'admin/auth/users/create', 'GET', '127.0.0.1', '[]', '2020-07-16 15:10:51', '2020-07-16 15:10:51'); INSERT INTO `admin_operation_log` VALUES (10, 1, 'admin/auth/users/create', 'GET', '127.0.0.1', '[]', '2020-07-16 15:11:37', '2020-07-16 15:11:37'); INSERT INTO `admin_operation_log` VALUES (11, 1, 'admin/auth/users/create', 'GET', '127.0.0.1', '[]', '2020-07-16 15:12:08', '2020-07-16 15:12:08'); INSERT INTO `admin_operation_log` VALUES (12, 1, 'admin/auth/users/create', 'GET', '127.0.0.1', '[]', '2020-07-16 15:12:23', '2020-07-16 15:12:23'); INSERT INTO `admin_operation_log` VALUES (13, 1, 'admin/auth/users/create', 'GET', '127.0.0.1', '[]', '2020-07-16 16:16:46', '2020-07-16 16:16:46'); INSERT INTO `admin_operation_log` VALUES (14, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 16:55:07', '2020-07-16 16:55:07'); INSERT INTO `admin_operation_log` VALUES (15, 1, 'admin/auth/users', 'GET', '127.0.0.1', '[]', '2020-07-16 16:56:12', '2020-07-16 16:56:12'); INSERT INTO `admin_operation_log` VALUES (16, 1, 'admin/auth/users/1/edit', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 16:56:16', '2020-07-16 16:56:16'); INSERT INTO `admin_operation_log` VALUES (17, 1, 'admin/auth/users/1', 'PUT', '127.0.0.1', '{\"name\":\"Administrator\",\"phone\":\"15700064975\",\"username\":\"admin\",\"password\":\"<PASSWORD>\",\"password_<PASSWORD>\":\"<PASSWORD>\",\"entry_time\":\"2020\\u5e7407\\u670816\\u65e5\",\"roles\":[\"1\",null],\"permissions\":[null],\"sex\":\"0\",\"birthday\":null,\"is_job\":\"0\",\"quit_time\":null,\"_token\":\"<KEY>\",\"_method\":\"PUT\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/auth\\/users\"}', '2020-07-16 16:57:07', '2020-07-16 16:57:07'); INSERT INTO `admin_operation_log` VALUES (18, 1, 'admin/auth/users', 'GET', '127.0.0.1', '[]', '2020-07-16 16:57:08', '2020-07-16 16:57:08'); INSERT INTO `admin_operation_log` VALUES (19, 1, 'admin/auth/users/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 16:57:12', '2020-07-16 16:57:12'); INSERT INTO `admin_operation_log` VALUES (20, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 16:57:16', '2020-07-16 16:57:16'); INSERT INTO `admin_operation_log` VALUES (21, 1, 'admin/auth/users/1/edit', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 16:57:19', '2020-07-16 16:57:19'); INSERT INTO `admin_operation_log` VALUES (22, 1, 'admin/auth/users/1/edit', 'GET', '127.0.0.1', '[]', '2020-07-16 17:32:32', '2020-07-16 17:32:32'); INSERT INTO `admin_operation_log` VALUES (23, 1, 'admin/auth/users/1/edit', 'GET', '127.0.0.1', '[]', '2020-07-16 17:48:20', '2020-07-16 17:48:20'); INSERT INTO `admin_operation_log` VALUES (24, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 18:03:48', '2020-07-16 18:03:48'); INSERT INTO `admin_operation_log` VALUES (25, 1, 'admin/auth/users/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 18:03:54', '2020-07-16 18:03:54'); INSERT INTO `admin_operation_log` VALUES (26, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 18:04:00', '2020-07-16 18:04:00'); INSERT INTO `admin_operation_log` VALUES (27, 1, 'admin/auth/users/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 18:04:58', '2020-07-16 18:04:58'); INSERT INTO `admin_operation_log` VALUES (28, 1, 'admin/auth/users/1', 'GET', '127.0.0.1', '[]', '2020-07-16 18:05:27', '2020-07-16 18:05:27'); INSERT INTO `admin_operation_log` VALUES (29, 1, 'admin/auth/users/1', 'GET', '127.0.0.1', '[]', '2020-07-16 18:06:19', '2020-07-16 18:06:19'); INSERT INTO `admin_operation_log` VALUES (30, 1, 'admin/auth/users/1', 'GET', '127.0.0.1', '[]', '2020-07-16 18:08:11', '2020-07-16 18:08:11'); INSERT INTO `admin_operation_log` VALUES (31, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 18:08:14', '2020-07-16 18:08:14'); INSERT INTO `admin_operation_log` VALUES (32, 1, 'admin/auth/users/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 18:23:34', '2020-07-16 18:23:34'); INSERT INTO `admin_operation_log` VALUES (33, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 18:23:42', '2020-07-16 18:23:42'); INSERT INTO `admin_operation_log` VALUES (34, 1, 'admin/auth/users', 'GET', '127.0.0.1', '[]', '2020-07-16 18:25:49', '2020-07-16 18:25:49'); INSERT INTO `admin_operation_log` VALUES (35, 1, 'admin/auth/users', 'GET', '127.0.0.1', '[]', '2020-07-16 18:26:09', '2020-07-16 18:26:09'); INSERT INTO `admin_operation_log` VALUES (36, 1, 'admin/auth/users', 'GET', '127.0.0.1', '[]', '2020-07-16 18:30:21', '2020-07-16 18:30:21'); INSERT INTO `admin_operation_log` VALUES (37, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"name\":null,\"entry_time\":null,\"birthday\":\"11\\u6708\",\"_pjax\":\"#pjax-container\"}', '2020-07-16 18:30:29', '2020-07-16 18:30:29'); INSERT INTO `admin_operation_log` VALUES (38, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 18:30:33', '2020-07-16 18:30:33'); INSERT INTO `admin_operation_log` VALUES (39, 1, 'admin/auth/users/1/edit', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 18:30:35', '2020-07-16 18:30:35'); INSERT INTO `admin_operation_log` VALUES (40, 1, 'admin/auth/users/1', 'PUT', '127.0.0.1', '{\"name\":\"Administrator\",\"phone\":\"15700064975\",\"username\":\"admin\",\"password\":\"<PASSWORD>\",\"password_confirmation\":\"<PASSWORD>\",\"entry_time\":\"2020\\u5e7407\\u670816\\u65e5\",\"roles\":[\"1\",null],\"permissions\":[null],\"sex\":\"0\",\"birthday\":\"1995\\u5e7411\\u670805\\u65e5\",\"is_job\":\"0\",\"quit_time\":null,\"_token\":\"<KEY>\",\"_method\":\"PUT\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/auth\\/users\"}', '2020-07-16 18:31:10', '2020-07-16 18:31:10'); INSERT INTO `admin_operation_log` VALUES (41, 1, 'admin/auth/users', 'GET', '127.0.0.1', '[]', '2020-07-16 18:31:11', '2020-07-16 18:31:11'); INSERT INTO `admin_operation_log` VALUES (42, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"name\":null,\"entry_time\":null,\"birthday\":\"11\\u6708\",\"_pjax\":\"#pjax-container\"}', '2020-07-16 18:31:19', '2020-07-16 18:31:19'); INSERT INTO `admin_operation_log` VALUES (43, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\",\"name\":null,\"entry_time\":null,\"birthday\":\"11\\u6708\"}', '2020-07-16 18:33:42', '2020-07-16 18:33:42'); INSERT INTO `admin_operation_log` VALUES (44, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"name\":null,\"entry_time\":null,\"birthday\":\"11\\u6708\"}', '2020-07-16 18:34:56', '2020-07-16 18:34:56'); INSERT INTO `admin_operation_log` VALUES (45, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"birthday\":\"11\\u6708\",\"_export_\":\"page:1\"}', '2020-07-16 18:35:13', '2020-07-16 18:35:13'); INSERT INTO `admin_operation_log` VALUES (46, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"name\":null,\"entry_time\":null,\"birthday\":\"11\\u6708\"}', '2020-07-16 18:36:26', '2020-07-16 18:36:26'); INSERT INTO `admin_operation_log` VALUES (47, 1, 'admin/auth/users/1/edit', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-16 18:36:29', '2020-07-16 18:36:29'); INSERT INTO `admin_operation_log` VALUES (48, 1, 'admin', 'GET', '127.0.0.1', '[]', '2020-07-20 10:26:47', '2020-07-20 10:26:47'); INSERT INTO `admin_operation_log` VALUES (49, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 10:26:51', '2020-07-20 10:26:51'); INSERT INTO `admin_operation_log` VALUES (50, 1, 'admin/auth/menu', 'POST', '127.0.0.1', '{\"parent_id\":\"0\",\"title\":\"\\u5ba2\\u6237\\u7ba1\\u7406\",\"icon\":\"fa-users\",\"uri\":null,\"roles\":[null],\"permission\":null,\"_token\":\"<KEY>}', '2020-07-20 10:27:12', '2020-07-20 10:27:12'); INSERT INTO `admin_operation_log` VALUES (51, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 10:27:13', '2020-07-20 10:27:13'); INSERT INTO `admin_operation_log` VALUES (52, 1, 'admin/auth/menu', 'POST', '127.0.0.1', '{\"parent_id\":\"8\",\"title\":\"\\u5ba2\\u6237\\u5217\\u8868\",\"icon\":\"fa-bars\",\"uri\":\"\\/customers\",\"roles\":[null],\"permission\":null,\"_token\":\"<KEY>}', '2020-07-20 10:27:37', '2020-07-20 10:27:37'); INSERT INTO `admin_operation_log` VALUES (53, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 10:27:38', '2020-07-20 10:27:38'); INSERT INTO `admin_operation_log` VALUES (54, 1, 'admin/auth/menu', 'POST', '127.0.0.1', '{\"parent_id\":\"8\",\"title\":\"\\u5ba2\\u6237\\u9700\\u6c42\",\"icon\":\"fa-bars\",\"uri\":\"\\/customer-demands\",\"roles\":[null],\"permission\":null,\"_token\":\"<KEY>}', '2020-07-20 10:28:18', '2020-07-20 10:28:18'); INSERT INTO `admin_operation_log` VALUES (55, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 10:28:18', '2020-07-20 10:28:18'); INSERT INTO `admin_operation_log` VALUES (56, 1, 'admin/auth/menu', 'POST', '127.0.0.1', '{\"parent_id\":\"8\",\"title\":\"\\u5ba2\\u6237\\u8054\\u7cfb\\u4eba\\u7ba1\\u7406\",\"icon\":\"fa-bars\",\"uri\":\"customer-contacts\",\"roles\":[null],\"permission\":null,\"_token\":\"<KEY>}', '2020-07-20 10:29:01', '2020-07-20 10:29:01'); INSERT INTO `admin_operation_log` VALUES (57, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 10:29:02', '2020-07-20 10:29:02'); INSERT INTO `admin_operation_log` VALUES (58, 1, 'admin/auth/menu/10/edit', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 10:29:10', '2020-07-20 10:29:10'); INSERT INTO `admin_operation_log` VALUES (59, 1, 'admin/auth/menu/10', 'PUT', '127.0.0.1', '{\"parent_id\":\"8\",\"title\":\"\\u5ba2\\u6237\\u9700\\u6c42\\u7ba1\\u7406\",\"icon\":\"fa-bars\",\"uri\":\"\\/customer-demands\",\"roles\":[null],\"permission\":null,\"_token\":\"<KEY>\",\"_method\":\"PUT\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/auth\\/menu\"}', '2020-07-20 10:29:16', '2020-07-20 10:29:16'); INSERT INTO `admin_operation_log` VALUES (60, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 10:29:17', '2020-07-20 10:29:17'); INSERT INTO `admin_operation_log` VALUES (61, 1, 'admin/auth/menu', 'POST', '127.0.0.1', '{\"parent_id\":\"0\",\"title\":\"\\u7efc\\u5408\\u7ba1\\u7406\",\"icon\":\"fa-bars\",\"uri\":null,\"roles\":[null],\"permission\":null,\"_token\":\"<KEY>\"}', '2020-07-20 10:30:26', '2020-07-20 10:30:26'); INSERT INTO `admin_operation_log` VALUES (62, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 10:30:27', '2020-07-20 10:30:27'); INSERT INTO `admin_operation_log` VALUES (63, 1, 'admin/auth/menu', 'POST', '127.0.0.1', '{\"parent_id\":\"12\",\"title\":\"\\u6e20\\u9053\\u7ba1\\u7406\",\"icon\":\"fa-bars\",\"uri\":\"channels\",\"roles\":[null],\"permission\":null,\"_token\":\"<KEY>\"}', '2020-07-20 10:42:31', '2020-07-20 10:42:31'); INSERT INTO `admin_operation_log` VALUES (64, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 10:42:32', '2020-07-20 10:42:32'); INSERT INTO `admin_operation_log` VALUES (65, 1, 'admin/auth/menu', 'POST', '127.0.0.1', '{\"parent_id\":\"12\",\"title\":\"\\u540d\\u7247\\u6a21\\u677f\\u7ba1\\u7406\",\"icon\":\"fa-bars\",\"uri\":\"cart-templates\",\"roles\":[null],\"permission\":null,\"_token\":\"<KEY>}', '2020-07-20 10:42:55', '2020-07-20 10:42:55'); INSERT INTO `admin_operation_log` VALUES (66, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 10:42:56', '2020-07-20 10:42:56'); INSERT INTO `admin_operation_log` VALUES (67, 1, 'admin/auth/menu', 'POST', '127.0.0.1', '{\"parent_id\":\"12\",\"title\":\"\\u53c2\\u6570\\u7ba1\\u7406\",\"icon\":\"fa-bars\",\"uri\":\"params\",\"roles\":[null],\"permission\":null,\"_token\":\"<KEY>}', '2020-07-20 10:43:13', '2020-07-20 10:43:13'); INSERT INTO `admin_operation_log` VALUES (68, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 10:43:14', '2020-07-20 10:43:14'); INSERT INTO `admin_operation_log` VALUES (69, 1, 'admin/auth/menu', 'POST', '127.0.0.1', '{\"parent_id\":\"12\",\"title\":\"\\u4ea7\\u54c1\\u53c2\\u6570\\u7ba1\\u7406\",\"icon\":\"fa-bars\",\"uri\":\"product-params\",\"roles\":[null],\"permission\":null,\"_token\":\"<KEY>}', '2020-07-20 10:43:30', '2020-07-20 10:43:30'); INSERT INTO `admin_operation_log` VALUES (70, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 10:43:31', '2020-07-20 10:43:31'); INSERT INTO `admin_operation_log` VALUES (71, 1, 'admin/auth/menu', 'POST', '127.0.0.1', '{\"parent_id\":\"12\",\"title\":\"\\u90e8\\u95e8\\u7ba1\\u7406\",\"icon\":\"fa-bars\",\"uri\":\"departments\",\"roles\":[null],\"permission\":null,\"_token\":\"<KEY>}', '2020-07-20 10:43:58', '2020-07-20 10:43:58'); INSERT INTO `admin_operation_log` VALUES (72, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 10:43:59', '2020-07-20 10:43:59'); INSERT INTO `admin_operation_log` VALUES (73, 1, 'admin/auth/menu', 'POST', '127.0.0.1', '{\"parent_id\":\"8\",\"title\":\"\\u8054\\u7cfb\\u4eba\\u540d\\u7247\\u7ba1\\u7406\",\"icon\":\"fa-bars\",\"uri\":\"customer-contact-cards\",\"roles\":[null],\"permission\":null,\"_token\":\"<KEY>}', '2020-07-20 10:44:13', '2020-07-20 10:44:13'); INSERT INTO `admin_operation_log` VALUES (74, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 10:44:14', '2020-07-20 10:44:14'); INSERT INTO `admin_operation_log` VALUES (75, 1, 'admin/auth/menu', 'POST', '127.0.0.1', '{\"parent_id\":\"0\",\"title\":\"\\u8ba2\\u5355\\u7ba1\\u7406\",\"icon\":\"fa-bars\",\"uri\":null,\"roles\":[null],\"permission\":null,\"_token\":\"<KEY>}', '2020-07-20 10:44:31', '2020-07-20 10:44:31'); INSERT INTO `admin_operation_log` VALUES (76, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 10:44:32', '2020-07-20 10:44:32'); INSERT INTO `admin_operation_log` VALUES (77, 1, 'admin/auth/menu', 'POST', '127.0.0.1', '{\"parent_id\":\"19\",\"title\":\"\\u8ba2\\u5355\\u5217\\u8868\",\"icon\":\"fa-bars\",\"uri\":\"orders\",\"roles\":[null],\"permission\":null,\"_token\":\"<KEY>}', '2020-07-20 10:44:53', '2020-07-20 10:44:53'); INSERT INTO `admin_operation_log` VALUES (78, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 10:44:54', '2020-07-20 10:44:54'); INSERT INTO `admin_operation_log` VALUES (79, 1, 'admin/auth/menu', 'POST', '127.0.0.1', '{\"parent_id\":\"19\",\"title\":\"\\u8ba2\\u5355\\u65e5\\u5fd7\",\"icon\":\"fa-bars\",\"uri\":\"orders-logs\",\"roles\":[\"1\",null],\"permission\":null,\"_token\":\"<KEY>}', '2020-07-20 10:45:34', '2020-07-20 10:45:34'); INSERT INTO `admin_operation_log` VALUES (80, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 10:45:35', '2020-07-20 10:45:35'); INSERT INTO `admin_operation_log` VALUES (81, 1, 'admin/auth/menu', 'POST', '127.0.0.1', '{\"_token\":\"<KEY>\",\"_order\":\"[{\\\"id\\\":1},{\\\"id\\\":2,\\\"children\\\":[{\\\"id\\\":6},{\\\"id\\\":7},{\\\"id\\\":3},{\\\"id\\\":4},{\\\"id\\\":5}]},{\\\"id\\\":12,\\\"children\\\":[{\\\"id\\\":13},{\\\"id\\\":14},{\\\"id\\\":15},{\\\"id\\\":16},{\\\"id\\\":17}]},{\\\"id\\\":8,\\\"children\\\":[{\\\"id\\\":9},{\\\"id\\\":10},{\\\"id\\\":11},{\\\"id\\\":18}]},{\\\"id\\\":19,\\\"children\\\":[{\\\"id\\\":20},{\\\"id\\\":21}]}]\"}', '2020-07-20 10:45:50', '2020-07-20 10:45:50'); INSERT INTO `admin_operation_log` VALUES (82, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 10:45:51', '2020-07-20 10:45:51'); INSERT INTO `admin_operation_log` VALUES (83, 1, 'admin/auth/menu', 'POST', '127.0.0.1', '{\"_token\":\"<KEY>\",\"_order\":\"[{\\\"id\\\":1},{\\\"id\\\":2,\\\"children\\\":[{\\\"id\\\":6},{\\\"id\\\":7},{\\\"id\\\":3},{\\\"id\\\":4},{\\\"id\\\":5}]},{\\\"id\\\":12,\\\"children\\\":[{\\\"id\\\":17},{\\\"id\\\":13},{\\\"id\\\":14},{\\\"id\\\":15},{\\\"id\\\":16}]},{\\\"id\\\":8,\\\"children\\\":[{\\\"id\\\":9},{\\\"id\\\":10},{\\\"id\\\":11},{\\\"id\\\":18}]},{\\\"id\\\":19,\\\"children\\\":[{\\\"id\\\":20},{\\\"id\\\":21}]}]\"}', '2020-07-20 10:46:49', '2020-07-20 10:46:49'); INSERT INTO `admin_operation_log` VALUES (84, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 10:46:50', '2020-07-20 10:46:50'); INSERT INTO `admin_operation_log` VALUES (85, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 10:46:52', '2020-07-20 10:46:52'); INSERT INTO `admin_operation_log` VALUES (86, 1, 'admin/departments', 'GET', '127.0.0.1', '[]', '2020-07-20 10:48:11', '2020-07-20 10:48:11'); INSERT INTO `admin_operation_log` VALUES (87, 1, 'admin/channels', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 10:48:16', '2020-07-20 10:48:16'); INSERT INTO `admin_operation_log` VALUES (88, 1, 'admin/cart-templates', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 10:48:18', '2020-07-20 10:48:18'); INSERT INTO `admin_operation_log` VALUES (89, 1, 'admin/params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 10:48:19', '2020-07-20 10:48:19'); INSERT INTO `admin_operation_log` VALUES (90, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 10:48:21', '2020-07-20 10:48:21'); INSERT INTO `admin_operation_log` VALUES (91, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 10:48:25', '2020-07-20 10:48:25'); INSERT INTO `admin_operation_log` VALUES (92, 1, 'admin/customer-demands', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 10:48:27', '2020-07-20 10:48:27'); INSERT INTO `admin_operation_log` VALUES (93, 1, 'admin/customer-contacts', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 10:48:28', '2020-07-20 10:48:28'); INSERT INTO `admin_operation_log` VALUES (94, 1, 'admin/customer-contact-cards', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 10:48:30', '2020-07-20 10:48:30'); INSERT INTO `admin_operation_log` VALUES (95, 1, 'admin/customer-contact-cards', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 10:48:30', '2020-07-20 10:48:30'); INSERT INTO `admin_operation_log` VALUES (96, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 10:49:57', '2020-07-20 10:49:57'); INSERT INTO `admin_operation_log` VALUES (97, 1, 'admin/orders-logs', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 11:19:37', '2020-07-20 11:19:37'); INSERT INTO `admin_operation_log` VALUES (98, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 11:19:40', '2020-07-20 11:19:40'); INSERT INTO `admin_operation_log` VALUES (99, 1, 'admin/departments', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 11:19:47', '2020-07-20 11:19:47'); INSERT INTO `admin_operation_log` VALUES (100, 1, 'admin/departments', 'GET', '127.0.0.1', '[]', '2020-07-20 11:26:44', '2020-07-20 11:26:44'); INSERT INTO `admin_operation_log` VALUES (101, 1, 'admin/departments', 'GET', '127.0.0.1', '[]', '2020-07-20 11:27:26', '2020-07-20 11:27:26'); INSERT INTO `admin_operation_log` VALUES (102, 1, 'admin/departments/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 11:27:32', '2020-07-20 11:27:32'); INSERT INTO `admin_operation_log` VALUES (103, 1, 'admin/channels', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 11:27:39', '2020-07-20 11:27:39'); INSERT INTO `admin_operation_log` VALUES (104, 1, 'admin/departments', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 11:27:42', '2020-07-20 11:27:42'); INSERT INTO `admin_operation_log` VALUES (105, 1, 'admin/channels', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 11:29:21', '2020-07-20 11:29:21'); INSERT INTO `admin_operation_log` VALUES (106, 1, 'admin/channels/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 11:29:24', '2020-07-20 11:29:24'); INSERT INTO `admin_operation_log` VALUES (107, 1, 'admin/cart-templates', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 11:29:28', '2020-07-20 11:29:28'); INSERT INTO `admin_operation_log` VALUES (108, 1, 'admin/params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 11:29:45', '2020-07-20 11:29:45'); INSERT INTO `admin_operation_log` VALUES (109, 1, 'admin/params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 11:33:50', '2020-07-20 11:33:50'); INSERT INTO `admin_operation_log` VALUES (110, 1, 'admin/params/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 11:34:21', '2020-07-20 11:34:21'); INSERT INTO `admin_operation_log` VALUES (111, 1, 'admin/params/create', 'GET', '127.0.0.1', '[]', '2020-07-20 11:36:49', '2020-07-20 11:36:49'); INSERT INTO `admin_operation_log` VALUES (112, 1, 'admin/params/create', 'GET', '127.0.0.1', '[]', '2020-07-20 11:37:58', '2020-07-20 11:37:58'); INSERT INTO `admin_operation_log` VALUES (113, 1, 'admin/params/create', 'GET', '127.0.0.1', '[]', '2020-07-20 11:38:33', '2020-07-20 11:38:33'); INSERT INTO `admin_operation_log` VALUES (114, 1, 'admin/params', 'POST', '127.0.0.1', '{\"title\":\"\\u670d\\u52a1\\u5668IP\",\"alias\":\"website_ip\",\"type\":\"0\",\"type_params\":null,\"sort\":\"1\",\"is_required\":\"1\",\"remark\":\"\\u4f8b\\u5982\\uff1a192.168.1.1\",\"_token\":\"<KEY>}', '2020-07-20 11:39:31', '2020-07-20 11:39:31'); INSERT INTO `admin_operation_log` VALUES (115, 1, 'admin/params', 'GET', '127.0.0.1', '[]', '2020-07-20 11:39:32', '2020-07-20 11:39:32'); INSERT INTO `admin_operation_log` VALUES (116, 1, 'admin/params/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 11:39:50', '2020-07-20 11:39:50'); INSERT INTO `admin_operation_log` VALUES (117, 1, 'admin/params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 11:39:55', '2020-07-20 11:39:55'); INSERT INTO `admin_operation_log` VALUES (118, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 11:40:12', '2020-07-20 11:40:12'); INSERT INTO `admin_operation_log` VALUES (119, 1, 'admin/auth/menu', 'POST', '127.0.0.1', '{\"parent_id\":\"12\",\"title\":\"\\u4ea7\\u54c1\\u7ba1\\u7406\",\"icon\":\"fa-bars\",\"uri\":\"products\",\"roles\":[null],\"permission\":null,\"_token\":\"<KEY>}', '2020-07-20 11:40:32', '2020-07-20 11:40:32'); INSERT INTO `admin_operation_log` VALUES (120, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 11:40:33', '2020-07-20 11:40:33'); INSERT INTO `admin_operation_log` VALUES (121, 1, 'admin/auth/menu/22/edit', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 11:40:38', '2020-07-20 11:40:38'); INSERT INTO `admin_operation_log` VALUES (122, 1, 'admin/auth/menu/22', 'PUT', '127.0.0.1', '{\"parent_id\":\"12\",\"title\":\"\\u4ea7\\u54c1\\u7ba1\\u7406\",\"icon\":\"fa-bars\",\"uri\":\"products\",\"roles\":[null],\"permission\":null,\"_token\":\"<KEY>\",\"_method\":\"PUT\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/auth\\/menu\"}', '2020-07-20 11:40:42', '2020-07-20 11:40:42'); INSERT INTO `admin_operation_log` VALUES (123, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 11:40:43', '2020-07-20 11:40:43'); INSERT INTO `admin_operation_log` VALUES (124, 1, 'admin/auth/menu', 'GET', '127.0.0.1', '[]', '2020-07-20 11:40:46', '2020-07-20 11:40:46'); INSERT INTO `admin_operation_log` VALUES (125, 1, 'admin/products', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 13:13:50', '2020-07-20 13:13:50'); INSERT INTO `admin_operation_log` VALUES (126, 1, 'admin/departments', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 13:13:54', '2020-07-20 13:13:54'); INSERT INTO `admin_operation_log` VALUES (127, 1, 'admin/channels', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 13:13:56', '2020-07-20 13:13:56'); INSERT INTO `admin_operation_log` VALUES (128, 1, 'admin/params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 13:14:03', '2020-07-20 13:14:03'); INSERT INTO `admin_operation_log` VALUES (129, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 13:15:01', '2020-07-20 13:15:01'); INSERT INTO `admin_operation_log` VALUES (130, 1, 'admin/customer-demands', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 13:15:03', '2020-07-20 13:15:03'); INSERT INTO `admin_operation_log` VALUES (131, 1, 'admin/customer-contacts', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 13:15:05', '2020-07-20 13:15:05'); INSERT INTO `admin_operation_log` VALUES (132, 1, 'admin/customer-contact-cards', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 13:15:07', '2020-07-20 13:15:07'); INSERT INTO `admin_operation_log` VALUES (133, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 13:15:09', '2020-07-20 13:15:09'); INSERT INTO `admin_operation_log` VALUES (134, 1, 'admin/orders-logs', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 13:15:13', '2020-07-20 13:15:13'); INSERT INTO `admin_operation_log` VALUES (135, 1, 'admin/orders-logs', 'GET', '127.0.0.1', '[]', '2020-07-20 13:17:10', '2020-07-20 13:17:10'); INSERT INTO `admin_operation_log` VALUES (136, 1, 'admin', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 13:17:26', '2020-07-20 13:17:26'); INSERT INTO `admin_operation_log` VALUES (137, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 13:17:56', '2020-07-20 13:17:56'); INSERT INTO `admin_operation_log` VALUES (138, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 13:17:58', '2020-07-20 13:17:58'); INSERT INTO `admin_operation_log` VALUES (139, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 13:54:57', '2020-07-20 13:54:57'); INSERT INTO `admin_operation_log` VALUES (140, 1, 'admin/products', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 13:54:59', '2020-07-20 13:54:59'); INSERT INTO `admin_operation_log` VALUES (141, 1, 'admin/products/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 13:55:01', '2020-07-20 13:55:01'); INSERT INTO `admin_operation_log` VALUES (142, 1, 'admin/products', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:06:17', '2020-07-20 14:06:17'); INSERT INTO `admin_operation_log` VALUES (143, 1, 'admin/products', 'GET', '127.0.0.1', '[]', '2020-07-20 14:07:37', '2020-07-20 14:07:37'); INSERT INTO `admin_operation_log` VALUES (144, 1, 'admin/products/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:07:43', '2020-07-20 14:07:43'); INSERT INTO `admin_operation_log` VALUES (145, 1, 'admin/products', 'POST', '127.0.0.1', '{\"PID\":\"0\",\"title\":\"ITO\\u8fd0\\u7ef4\\u670d\\u52a1\",\"sort\":\"1\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/products\"}', '2020-07-20 14:08:51', '2020-07-20 14:08:51'); INSERT INTO `admin_operation_log` VALUES (146, 1, 'admin/products', 'GET', '127.0.0.1', '[]', '2020-07-20 14:08:51', '2020-07-20 14:08:51'); INSERT INTO `admin_operation_log` VALUES (147, 1, 'admin/products/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:08:56', '2020-07-20 14:08:56'); INSERT INTO `admin_operation_log` VALUES (148, 1, 'admin/products', 'POST', '127.0.0.1', '{\"PID\":\"1\",\"title\":\"\\u7f51\\u7ad9\\u6280\\u672f\\u5916\\u5305\",\"sort\":\"1\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/products\"}', '2020-07-20 14:09:15', '2020-07-20 14:09:15'); INSERT INTO `admin_operation_log` VALUES (149, 1, 'admin/products', 'GET', '127.0.0.1', '[]', '2020-07-20 14:09:16', '2020-07-20 14:09:16'); INSERT INTO `admin_operation_log` VALUES (150, 1, 'admin/products/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:09:18', '2020-07-20 14:09:18'); INSERT INTO `admin_operation_log` VALUES (151, 1, 'admin/products', 'POST', '127.0.0.1', '{\"PID\":\"1\",\"title\":\"\\u7f51\\u7ad9\\u4f18\\u5316\",\"sort\":\"2\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/products\"}', '2020-07-20 14:09:29', '2020-07-20 14:09:29'); INSERT INTO `admin_operation_log` VALUES (152, 1, 'admin/products', 'GET', '127.0.0.1', '[]', '2020-07-20 14:09:29', '2020-07-20 14:09:29'); INSERT INTO `admin_operation_log` VALUES (153, 1, 'admin/products/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:12:01', '2020-07-20 14:12:01'); INSERT INTO `admin_operation_log` VALUES (154, 1, 'admin/departments', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:12:04', '2020-07-20 14:12:04'); INSERT INTO `admin_operation_log` VALUES (155, 1, 'admin/channels', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:12:06', '2020-07-20 14:12:06'); INSERT INTO `admin_operation_log` VALUES (156, 1, 'admin/departments', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:12:12', '2020-07-20 14:12:12'); INSERT INTO `admin_operation_log` VALUES (157, 1, 'admin/channels', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:15:47', '2020-07-20 14:15:47'); INSERT INTO `admin_operation_log` VALUES (158, 1, 'admin/cart-templates', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:15:49', '2020-07-20 14:15:49'); INSERT INTO `admin_operation_log` VALUES (159, 1, 'admin/params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:15:51', '2020-07-20 14:15:51'); INSERT INTO `admin_operation_log` VALUES (160, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:15:59', '2020-07-20 14:15:59'); INSERT INTO `admin_operation_log` VALUES (161, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:21:38', '2020-07-20 14:21:38'); INSERT INTO `admin_operation_log` VALUES (162, 1, 'admin/departments', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:22:29', '2020-07-20 14:22:29'); INSERT INTO `admin_operation_log` VALUES (163, 1, 'admin/departments/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:22:32', '2020-07-20 14:22:32'); INSERT INTO `admin_operation_log` VALUES (164, 1, 'admin/departments', 'POST', '127.0.0.1', '{\"PID\":\"0\",\"title\":\"\\u8fd0\\u7ef4\\u90e8\",\"sort\":\"1\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/departments\"}', '2020-07-20 14:24:43', '2020-07-20 14:24:43'); INSERT INTO `admin_operation_log` VALUES (165, 1, 'admin/departments', 'GET', '127.0.0.1', '[]', '2020-07-20 14:24:44', '2020-07-20 14:24:44'); INSERT INTO `admin_operation_log` VALUES (166, 1, 'admin/departments/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:24:46', '2020-07-20 14:24:46'); INSERT INTO `admin_operation_log` VALUES (167, 1, 'admin/departments', 'POST', '127.0.0.1', '{\"PID\":\"0\",\"title\":\"\\u5546\\u52a1\\u90e8\",\"sort\":\"1\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/departments\"}', '2020-07-20 14:24:55', '2020-07-20 14:24:55'); INSERT INTO `admin_operation_log` VALUES (168, 1, 'admin/departments', 'GET', '127.0.0.1', '[]', '2020-07-20 14:24:56', '2020-07-20 14:24:56'); INSERT INTO `admin_operation_log` VALUES (169, 1, 'admin/departments/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:24:58', '2020-07-20 14:24:58'); INSERT INTO `admin_operation_log` VALUES (170, 1, 'admin/departments', 'POST', '127.0.0.1', '{\"PID\":\"0\",\"title\":\"\\u9500\\u552e\\u90e8\",\"sort\":\"1\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/departments\"}', '2020-07-20 14:25:07', '2020-07-20 14:25:07'); INSERT INTO `admin_operation_log` VALUES (171, 1, 'admin/departments', 'GET', '127.0.0.1', '[]', '2020-07-20 14:25:08', '2020-07-20 14:25:08'); INSERT INTO `admin_operation_log` VALUES (172, 1, 'admin/departments/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:25:12', '2020-07-20 14:25:12'); INSERT INTO `admin_operation_log` VALUES (173, 1, 'admin/departments', 'POST', '127.0.0.1', '{\"PID\":\"3\",\"title\":\"\\u9500\\u552e\\u4e00\\u90e8\",\"sort\":\"1\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/departments\"}', '2020-07-20 14:25:24', '2020-07-20 14:25:24'); INSERT INTO `admin_operation_log` VALUES (174, 1, 'admin/departments', 'GET', '127.0.0.1', '[]', '2020-07-20 14:25:25', '2020-07-20 14:25:25'); INSERT INTO `admin_operation_log` VALUES (175, 1, 'admin/departments/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:25:30', '2020-07-20 14:25:30'); INSERT INTO `admin_operation_log` VALUES (176, 1, 'admin/departments', 'POST', '127.0.0.1', '{\"PID\":\"3\",\"title\":\"\\u9500\\u552e\\u4e8c\\u90e8\",\"sort\":\"1\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/departments\"}', '2020-07-20 14:25:37', '2020-07-20 14:25:37'); INSERT INTO `admin_operation_log` VALUES (177, 1, 'admin/departments', 'GET', '127.0.0.1', '[]', '2020-07-20 14:25:38', '2020-07-20 14:25:38'); INSERT INTO `admin_operation_log` VALUES (178, 1, 'admin/departments/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:25:40', '2020-07-20 14:25:40'); INSERT INTO `admin_operation_log` VALUES (179, 1, 'admin/departments', 'POST', '127.0.0.1', '{\"PID\":\"3\",\"title\":\"\\u9500\\u552e\\u4e09\\u90e8\",\"sort\":\"1\",\"_token\":\"xMk5ZqcUOlIMjhXqx2XOgFLStnDXmPYaXiV2iDtD\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/departments\"}', '2020-07-20 14:25:48', '2020-07-20 14:25:48'); INSERT INTO `admin_operation_log` VALUES (180, 1, 'admin/departments', 'GET', '127.0.0.1', '[]', '2020-07-20 14:25:48', '2020-07-20 14:25:48'); INSERT INTO `admin_operation_log` VALUES (181, 1, 'admin/products', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:25:54', '2020-07-20 14:25:54'); INSERT INTO `admin_operation_log` VALUES (182, 1, 'admin/departments', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:25:56', '2020-07-20 14:25:56'); INSERT INTO `admin_operation_log` VALUES (183, 1, 'admin/channels', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:25:57', '2020-07-20 14:25:57'); INSERT INTO `admin_operation_log` VALUES (184, 1, 'admin/products', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:26:41', '2020-07-20 14:26:41'); INSERT INTO `admin_operation_log` VALUES (185, 1, 'admin/channels', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:27:29', '2020-07-20 14:27:29'); INSERT INTO `admin_operation_log` VALUES (186, 1, 'admin/channels/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:27:31', '2020-07-20 14:27:31'); INSERT INTO `admin_operation_log` VALUES (187, 1, 'admin/channels', 'POST', '127.0.0.1', '{\"PID\":\"0\",\"title\":\"\\u72ec\\u7acb\\u5f00\\u53d1\",\"sort\":\"1\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/channels\"}', '2020-07-20 14:27:48', '2020-07-20 14:27:48'); INSERT INTO `admin_operation_log` VALUES (188, 1, 'admin/channels', 'GET', '127.0.0.1', '[]', '2020-07-20 14:27:48', '2020-07-20 14:27:48'); INSERT INTO `admin_operation_log` VALUES (189, 1, 'admin/channels/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:27:52', '2020-07-20 14:27:52'); INSERT INTO `admin_operation_log` VALUES (190, 1, 'admin/channels', 'POST', '127.0.0.1', '{\"PID\":\"0\",\"title\":\"\\u5e7f\\u544a\\u63a8\\u5e7f\",\"sort\":\"1\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/channels\"}', '2020-07-20 14:27:59', '2020-07-20 14:27:59'); INSERT INTO `admin_operation_log` VALUES (191, 1, 'admin/channels', 'GET', '127.0.0.1', '[]', '2020-07-20 14:28:00', '2020-07-20 14:28:00'); INSERT INTO `admin_operation_log` VALUES (192, 1, 'admin/channels/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:28:02', '2020-07-20 14:28:02'); INSERT INTO `admin_operation_log` VALUES (193, 1, 'admin/channels', 'POST', '127.0.0.1', '{\"PID\":\"0\",\"title\":\"\\u5ba2\\u6237\\u4ecb\\u7ecd\",\"sort\":\"1\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/channels\"}', '2020-07-20 14:28:08', '2020-07-20 14:28:08'); INSERT INTO `admin_operation_log` VALUES (194, 1, 'admin/channels', 'GET', '127.0.0.1', '[]', '2020-07-20 14:28:08', '2020-07-20 14:28:08'); INSERT INTO `admin_operation_log` VALUES (195, 1, 'admin/channels/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:28:10', '2020-07-20 14:28:10'); INSERT INTO `admin_operation_log` VALUES (196, 1, 'admin/channels', 'POST', '127.0.0.1', '{\"PID\":\"0\",\"title\":\"\\u4fc3\\u9500\\u6d3b\\u52a8\",\"sort\":\"1\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/channels\"}', '2020-07-20 14:28:16', '2020-07-20 14:28:16'); INSERT INTO `admin_operation_log` VALUES (197, 1, 'admin/channels', 'GET', '127.0.0.1', '[]', '2020-07-20 14:28:16', '2020-07-20 14:28:16'); INSERT INTO `admin_operation_log` VALUES (198, 1, 'admin/channels/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:28:18', '2020-07-20 14:28:18'); INSERT INTO `admin_operation_log` VALUES (199, 1, 'admin/channels', 'POST', '127.0.0.1', '{\"PID\":\"0\",\"title\":\"\\u516c\\u5f00\\u62db\\u6807\",\"sort\":\"1\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/channels\"}', '2020-07-20 14:28:24', '2020-07-20 14:28:24'); INSERT INTO `admin_operation_log` VALUES (200, 1, 'admin/channels', 'GET', '127.0.0.1', '[]', '2020-07-20 14:28:25', '2020-07-20 14:28:25'); INSERT INTO `admin_operation_log` VALUES (201, 1, 'admin/channels/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:28:27', '2020-07-20 14:28:27'); INSERT INTO `admin_operation_log` VALUES (202, 1, 'admin/channels', 'POST', '127.0.0.1', '{\"PID\":\"0\",\"title\":\"\\u7535\\u8bdd\\u6765\\u8bbf\",\"sort\":\"1\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/channels\"}', '2020-07-20 14:28:31', '2020-07-20 14:28:31'); INSERT INTO `admin_operation_log` VALUES (203, 1, 'admin/channels', 'GET', '127.0.0.1', '[]', '2020-07-20 14:28:32', '2020-07-20 14:28:32'); INSERT INTO `admin_operation_log` VALUES (204, 1, 'admin/channels/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:28:34', '2020-07-20 14:28:34'); INSERT INTO `admin_operation_log` VALUES (205, 1, 'admin/channels', 'POST', '127.0.0.1', '{\"PID\":\"0\",\"title\":\"\\u4e92\\u8054\\u7f51\",\"sort\":\"1\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/channels\"}', '2020-07-20 14:28:39', '2020-07-20 14:28:39'); INSERT INTO `admin_operation_log` VALUES (206, 1, 'admin/channels', 'GET', '127.0.0.1', '[]', '2020-07-20 14:28:39', '2020-07-20 14:28:39'); INSERT INTO `admin_operation_log` VALUES (207, 1, 'admin/channels/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:28:41', '2020-07-20 14:28:41'); INSERT INTO `admin_operation_log` VALUES (208, 1, 'admin/channels', 'POST', '127.0.0.1', '{\"PID\":\"0\",\"title\":\"\\u8001\\u5ba2\\u6237\",\"sort\":\"1\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/channels\"}', '2020-07-20 14:28:46', '2020-07-20 14:28:46'); INSERT INTO `admin_operation_log` VALUES (209, 1, 'admin/channels', 'GET', '127.0.0.1', '[]', '2020-07-20 14:28:46', '2020-07-20 14:28:46'); INSERT INTO `admin_operation_log` VALUES (210, 1, 'admin/channels/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:28:48', '2020-07-20 14:28:48'); INSERT INTO `admin_operation_log` VALUES (211, 1, 'admin/channels', 'POST', '127.0.0.1', '{\"PID\":\"0\",\"title\":\"\\u5408\\u4f5c\\u4f19\\u4f34\",\"sort\":\"1\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/channels\"}', '2020-07-20 14:28:53', '2020-07-20 14:28:53'); INSERT INTO `admin_operation_log` VALUES (212, 1, 'admin/channels', 'GET', '127.0.0.1', '[]', '2020-07-20 14:28:54', '2020-07-20 14:28:54'); INSERT INTO `admin_operation_log` VALUES (213, 1, 'admin/channels/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:28:56', '2020-07-20 14:28:56'); INSERT INTO `admin_operation_log` VALUES (214, 1, 'admin/channels', 'POST', '127.0.0.1', '{\"PID\":\"0\",\"title\":\"\\u516c\\u53f8\\u5ba2\\u6237\",\"sort\":\"1\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/channels\"}', '2020-07-20 14:29:00', '2020-07-20 14:29:00'); INSERT INTO `admin_operation_log` VALUES (215, 1, 'admin/channels', 'GET', '127.0.0.1', '[]', '2020-07-20 14:29:01', '2020-07-20 14:29:01'); INSERT INTO `admin_operation_log` VALUES (216, 1, 'admin/cart-templates', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:29:04', '2020-07-20 14:29:04'); INSERT INTO `admin_operation_log` VALUES (217, 1, 'admin/departments', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:29:05', '2020-07-20 14:29:05'); INSERT INTO `admin_operation_log` VALUES (218, 1, 'admin/products', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:29:07', '2020-07-20 14:29:07'); INSERT INTO `admin_operation_log` VALUES (219, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:29:11', '2020-07-20 14:29:11'); INSERT INTO `admin_operation_log` VALUES (220, 1, 'admin/auth/users/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:31:31', '2020-07-20 14:31:31'); INSERT INTO `admin_operation_log` VALUES (221, 1, 'admin/auth/users/create', 'GET', '127.0.0.1', '[]', '2020-07-20 14:34:27', '2020-07-20 14:34:27'); INSERT INTO `admin_operation_log` VALUES (222, 1, 'admin/auth/users', 'POST', '127.0.0.1', '{\"name\":\"\\u6768\\u4f73\\u654f\",\"phone\":\"17603245687\",\"username\":\"\\u6768\\u4f73\\u654f\",\"password\":\"<PASSWORD>\",\"password_confirmation\":\"<PASSWORD>\",\"entry_time\":\"2020\\u5e7407\\u670820\\u65e5\",\"dept_id\":\"2\",\"roles\":[null],\"permissions\":[null],\"sex\":\"1\",\"birthday\":\"1993\\u5e7410\\u670813\\u65e5\",\"is_job\":\"0\",\"quit_time\":null,\"_token\":\"<KEY>}', '2020-07-20 14:36:48', '2020-07-20 14:36:48'); INSERT INTO `admin_operation_log` VALUES (223, 1, 'admin/auth/users', 'GET', '127.0.0.1', '[]', '2020-07-20 14:36:49', '2020-07-20 14:36:49'); INSERT INTO `admin_operation_log` VALUES (224, 1, 'admin/auth/roles', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:37:00', '2020-07-20 14:37:00'); INSERT INTO `admin_operation_log` VALUES (225, 1, 'admin/auth/roles/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:37:04', '2020-07-20 14:37:04'); INSERT INTO `admin_operation_log` VALUES (226, 1, 'admin/auth/roles', 'POST', '127.0.0.1', '{\"slug\":\"commerce\",\"name\":\"\\u5546\\u52a1\\u90e8\",\"permissions\":[\"2\",\"3\",\"4\",\"5\",null],\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/auth\\/roles\"}', '2020-07-20 14:40:53', '2020-07-20 14:40:53'); INSERT INTO `admin_operation_log` VALUES (227, 1, 'admin/auth/roles', 'GET', '127.0.0.1', '[]', '2020-07-20 14:40:54', '2020-07-20 14:40:54'); INSERT INTO `admin_operation_log` VALUES (228, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:41:08', '2020-07-20 14:41:08'); INSERT INTO `admin_operation_log` VALUES (229, 1, 'admin/auth/users/2/edit', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 14:41:13', '2020-07-20 14:41:13'); INSERT INTO `admin_operation_log` VALUES (230, 1, 'admin/auth/users/2', 'PUT', '127.0.0.1', '{\"name\":\"\\u6768\\u4f73\\u654f\",\"phone\":\"17603245687\",\"username\":\"\\u6768\\u4f73\\u654f\",\"password\":\"<PASSWORD>\",\"password_<PASSWORD>\":\"<PASSWORD>\",\"entry_time\":\"2020\\u5e7407\\u670820\\u65e5\",\"dept_id\":\"2\",\"roles\":[\"2\",null],\"permissions\":[null],\"sex\":\"1\",\"birthday\":\"1993\\u5e7410\\u670813\\u65e5\",\"is_job\":\"0\",\"quit_time\":null,\"_token\":\"<KEY>\",\"_method\":\"PUT\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/auth\\/users\"}', '2020-07-20 14:41:22', '2020-07-20 14:41:22'); INSERT INTO `admin_operation_log` VALUES (231, 1, 'admin/auth/users', 'GET', '127.0.0.1', '[]', '2020-07-20 14:41:22', '2020-07-20 14:41:22'); INSERT INTO `admin_operation_log` VALUES (232, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 15:07:17', '2020-07-20 15:07:17'); INSERT INTO `admin_operation_log` VALUES (233, 1, 'admin/products', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 15:07:30', '2020-07-20 15:07:30'); INSERT INTO `admin_operation_log` VALUES (234, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 15:08:35', '2020-07-20 15:08:35'); INSERT INTO `admin_operation_log` VALUES (235, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\",\"name\":null,\"entry_time\":null,\"birthday\":null,\"dept_id\":\"1\"}', '2020-07-20 15:08:39', '2020-07-20 15:08:39'); INSERT INTO `admin_operation_log` VALUES (236, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\",\"name\":null,\"entry_time\":null,\"birthday\":null,\"dept_id\":\"2\"}', '2020-07-20 15:08:48', '2020-07-20 15:08:48'); INSERT INTO `admin_operation_log` VALUES (237, 1, 'admin/products', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 15:41:03', '2020-07-20 15:41:03'); INSERT INTO `admin_operation_log` VALUES (238, 1, 'admin/departments', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 15:41:04', '2020-07-20 15:41:04'); INSERT INTO `admin_operation_log` VALUES (239, 1, 'admin/channels', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 15:41:06', '2020-07-20 15:41:06'); INSERT INTO `admin_operation_log` VALUES (240, 1, 'admin/cart-templates', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 15:41:10', '2020-07-20 15:41:10'); INSERT INTO `admin_operation_log` VALUES (241, 1, 'admin/params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 15:41:11', '2020-07-20 15:41:11'); INSERT INTO `admin_operation_log` VALUES (242, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 15:41:17', '2020-07-20 15:41:17'); INSERT INTO `admin_operation_log` VALUES (243, 1, 'admin/product-params', 'GET', '127.0.0.1', '[]', '2020-07-20 15:49:37', '2020-07-20 15:49:37'); INSERT INTO `admin_operation_log` VALUES (244, 1, 'admin/product-params', 'GET', '127.0.0.1', '[]', '2020-07-20 15:56:09', '2020-07-20 15:56:09'); INSERT INTO `admin_operation_log` VALUES (245, 1, 'admin/product-params', 'GET', '127.0.0.1', '[]', '2020-07-20 15:56:24', '2020-07-20 15:56:24'); INSERT INTO `admin_operation_log` VALUES (246, 1, 'admin/product-params', 'GET', '127.0.0.1', '[]', '2020-07-20 15:56:35', '2020-07-20 15:56:35'); INSERT INTO `admin_operation_log` VALUES (247, 1, 'admin/product-params/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 15:56:39', '2020-07-20 15:56:39'); INSERT INTO `admin_operation_log` VALUES (248, 1, 'admin/product-params', 'GET', '127.0.0.1', '[]', '2020-07-20 15:56:40', '2020-07-20 15:56:40'); INSERT INTO `admin_operation_log` VALUES (249, 1, 'admin/params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 15:56:53', '2020-07-20 15:56:53'); INSERT INTO `admin_operation_log` VALUES (250, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 15:57:08', '2020-07-20 15:57:08'); INSERT INTO `admin_operation_log` VALUES (251, 1, 'admin/product-params/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 15:57:10', '2020-07-20 15:57:10'); INSERT INTO `admin_operation_log` VALUES (252, 1, 'admin/product-params/create', 'GET', '127.0.0.1', '[]', '2020-07-20 15:58:24', '2020-07-20 15:58:24'); INSERT INTO `admin_operation_log` VALUES (253, 1, 'admin/product-params', 'POST', '127.0.0.1', '{\"product_id\":\"2\",\"params_id\":[\"1\",null],\"_token\":\"<KEY>}', '2020-07-20 16:15:49', '2020-07-20 16:15:49'); INSERT INTO `admin_operation_log` VALUES (254, 1, 'admin/product-params', 'GET', '127.0.0.1', '[]', '2020-07-20 16:15:50', '2020-07-20 16:15:50'); INSERT INTO `admin_operation_log` VALUES (255, 1, 'admin/product-params', 'GET', '127.0.0.1', '[]', '2020-07-20 16:16:32', '2020-07-20 16:16:32'); INSERT INTO `admin_operation_log` VALUES (256, 1, 'admin/params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:16:45', '2020-07-20 16:16:45'); INSERT INTO `admin_operation_log` VALUES (257, 1, 'admin/params/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:16:47', '2020-07-20 16:16:47'); INSERT INTO `admin_operation_log` VALUES (258, 1, 'admin/params', 'POST', '127.0.0.1', '{\"title\":\"CPU\",\"alias\":\"CPU\",\"type\":\"0\",\"type_params\":null,\"sort\":\"1\",\"is_required\":\"1\",\"remark\":\"\\u5fc5\\u586b* \\uff1a \\u4f8b\\u5982\\uff1a4\\u6838\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/params\"}', '2020-07-20 16:17:52', '2020-07-20 16:17:52'); INSERT INTO `admin_operation_log` VALUES (259, 1, 'admin/params', 'GET', '127.0.0.1', '[]', '2020-07-20 16:17:53', '2020-07-20 16:17:53'); INSERT INTO `admin_operation_log` VALUES (260, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:17:56', '2020-07-20 16:17:56'); INSERT INTO `admin_operation_log` VALUES (261, 1, 'admin/product-params/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:17:59', '2020-07-20 16:17:59'); INSERT INTO `admin_operation_log` VALUES (262, 1, 'admin/product-params', 'POST', '127.0.0.1', '{\"product_id\":\"2\",\"params_id\":[\"1\",\"2\",null],\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/product-params\"}', '2020-07-20 16:18:05', '2020-07-20 16:18:05'); INSERT INTO `admin_operation_log` VALUES (263, 1, 'admin/product-params', 'GET', '127.0.0.1', '[]', '2020-07-20 16:18:06', '2020-07-20 16:18:06'); INSERT INTO `admin_operation_log` VALUES (264, 1, 'admin/product-params/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:18:09', '2020-07-20 16:18:09'); INSERT INTO `admin_operation_log` VALUES (265, 1, 'admin/product-params', 'POST', '127.0.0.1', '{\"product_id\":\"3\",\"params_id\":[\"1\",\"2\",null],\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/product-params\"}', '2020-07-20 16:18:15', '2020-07-20 16:18:15'); INSERT INTO `admin_operation_log` VALUES (266, 1, 'admin/product-params', 'GET', '127.0.0.1', '[]', '2020-07-20 16:18:16', '2020-07-20 16:18:16'); INSERT INTO `admin_operation_log` VALUES (267, 1, 'admin/product-params', 'GET', '127.0.0.1', '[]', '2020-07-20 16:20:36', '2020-07-20 16:20:36'); INSERT INTO `admin_operation_log` VALUES (268, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"product_id\":\"2\",\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:20:42', '2020-07-20 16:20:42'); INSERT INTO `admin_operation_log` VALUES (269, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\",\"product_id\":\"3\"}', '2020-07-20 16:20:45', '2020-07-20 16:20:45'); INSERT INTO `admin_operation_log` VALUES (270, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"product_id\":\"3\"}', '2020-07-20 16:21:52', '2020-07-20 16:21:52'); INSERT INTO `admin_operation_log` VALUES (271, 1, 'admin/product-params/2', 'DELETE', '127.0.0.1', '{\"_method\":\"delete\",\"_token\":\"<KEY>}', '2020-07-20 16:21:59', '2020-07-20 16:21:59'); INSERT INTO `admin_operation_log` VALUES (272, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"product_id\":\"3\",\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:22:00', '2020-07-20 16:22:00'); INSERT INTO `admin_operation_log` VALUES (273, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:23:02', '2020-07-20 16:23:02'); INSERT INTO `admin_operation_log` VALUES (274, 1, 'admin/params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:23:03', '2020-07-20 16:23:03'); INSERT INTO `admin_operation_log` VALUES (275, 1, 'admin/cart-templates', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:23:04', '2020-07-20 16:23:04'); INSERT INTO `admin_operation_log` VALUES (276, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:23:09', '2020-07-20 16:23:09'); INSERT INTO `admin_operation_log` VALUES (277, 1, 'admin/customers', 'GET', '127.0.0.1', '[]', '2020-07-20 16:30:27', '2020-07-20 16:30:27'); INSERT INTO `admin_operation_log` VALUES (278, 1, 'admin/customers/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:30:47', '2020-07-20 16:30:47'); INSERT INTO `admin_operation_log` VALUES (279, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:30:49', '2020-07-20 16:30:49'); INSERT INTO `admin_operation_log` VALUES (280, 1, 'admin/auth/roles', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:46:57', '2020-07-20 16:46:57'); INSERT INTO `admin_operation_log` VALUES (281, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:48:10', '2020-07-20 16:48:10'); INSERT INTO `admin_operation_log` VALUES (282, 1, 'admin/customers/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:48:13', '2020-07-20 16:48:13'); INSERT INTO `admin_operation_log` VALUES (283, 1, 'admin/customers', 'GET', '127.0.0.1', '[]', '2020-07-20 16:48:14', '2020-07-20 16:48:14'); INSERT INTO `admin_operation_log` VALUES (284, 1, 'admin/customers', 'GET', '127.0.0.1', '[]', '2020-07-20 16:48:34', '2020-07-20 16:48:34'); INSERT INTO `admin_operation_log` VALUES (285, 1, 'admin/customers/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:48:37', '2020-07-20 16:48:37'); INSERT INTO `admin_operation_log` VALUES (286, 1, 'admin/customers', 'GET', '127.0.0.1', '[]', '2020-07-20 16:48:38', '2020-07-20 16:48:38'); INSERT INTO `admin_operation_log` VALUES (287, 1, 'admin/customers/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:49:20', '2020-07-20 16:49:20'); INSERT INTO `admin_operation_log` VALUES (288, 1, 'admin/customers', 'GET', '127.0.0.1', '[]', '2020-07-20 16:49:21', '2020-07-20 16:49:21'); INSERT INTO `admin_operation_log` VALUES (289, 1, 'admin/customers/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:49:47', '2020-07-20 16:49:47'); INSERT INTO `admin_operation_log` VALUES (290, 1, 'admin/customers', 'GET', '127.0.0.1', '[]', '2020-07-20 16:49:48', '2020-07-20 16:49:48'); INSERT INTO `admin_operation_log` VALUES (291, 1, 'admin/customers', 'GET', '127.0.0.1', '[]', '2020-07-20 16:50:00', '2020-07-20 16:50:00'); INSERT INTO `admin_operation_log` VALUES (292, 1, 'admin/customers/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 16:50:03', '2020-07-20 16:50:03'); INSERT INTO `admin_operation_log` VALUES (293, 1, 'admin/auth/roles', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:00:47', '2020-07-20 17:00:47'); INSERT INTO `admin_operation_log` VALUES (294, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:00:51', '2020-07-20 17:00:51'); INSERT INTO `admin_operation_log` VALUES (295, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:12:47', '2020-07-20 17:12:47'); INSERT INTO `admin_operation_log` VALUES (296, 1, 'admin/customers/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:12:50', '2020-07-20 17:12:50'); INSERT INTO `admin_operation_log` VALUES (297, 1, 'admin/customers/create', 'GET', '127.0.0.1', '[]', '2020-07-20 17:13:09', '2020-07-20 17:13:09'); INSERT INTO `admin_operation_log` VALUES (298, 1, 'admin/customers/create', 'GET', '127.0.0.1', '[]', '2020-07-20 17:13:35', '2020-07-20 17:13:35'); INSERT INTO `admin_operation_log` VALUES (299, 1, 'admin/customers/create', 'GET', '127.0.0.1', '[]', '2020-07-20 17:14:36', '2020-07-20 17:14:36'); INSERT INTO `admin_operation_log` VALUES (300, 1, 'admin/customers/create', 'GET', '127.0.0.1', '[]', '2020-07-20 17:16:28', '2020-07-20 17:16:28'); INSERT INTO `admin_operation_log` VALUES (301, 1, 'admin/customers', 'POST', '127.0.0.1', '{\"title\":\"\\u6d4b\\u8bd5\",\"type\":\"1\",\"address\":\"\\u4e2d\\u5fc3\\u573a\\u9986\",\"is_agent\":\"0\",\"channel_id\":\"2\",\"industry_id\":\"1\",\"remark\":null,\"owner_user_id\":\"1\",\"_token\":\"<KEY>}', '2020-07-20 17:16:54', '2020-07-20 17:16:54'); INSERT INTO `admin_operation_log` VALUES (302, 1, 'admin/customers', 'GET', '127.0.0.1', '[]', '2020-07-20 17:16:55', '2020-07-20 17:16:55'); INSERT INTO `admin_operation_log` VALUES (303, 1, 'admin/customers/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:17:01', '2020-07-20 17:17:01'); INSERT INTO `admin_operation_log` VALUES (304, 1, 'admin/customers/1', 'GET', '127.0.0.1', '[]', '2020-07-20 17:18:44', '2020-07-20 17:18:44'); INSERT INTO `admin_operation_log` VALUES (305, 1, 'admin/customers/1', 'GET', '127.0.0.1', '[]', '2020-07-20 17:19:14', '2020-07-20 17:19:14'); INSERT INTO `admin_operation_log` VALUES (306, 1, 'admin/customers/1', 'GET', '127.0.0.1', '[]', '2020-07-20 17:21:29', '2020-07-20 17:21:29'); INSERT INTO `admin_operation_log` VALUES (307, 1, 'admin/customers/1', 'GET', '127.0.0.1', '[]', '2020-07-20 17:22:36', '2020-07-20 17:22:36'); INSERT INTO `admin_operation_log` VALUES (308, 1, 'admin/customer-demands', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:22:40', '2020-07-20 17:22:40'); INSERT INTO `admin_operation_log` VALUES (309, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:22:43', '2020-07-20 17:22:43'); INSERT INTO `admin_operation_log` VALUES (310, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:23:03', '2020-07-20 17:23:03'); INSERT INTO `admin_operation_log` VALUES (311, 1, 'admin/orders/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:23:05', '2020-07-20 17:23:05'); INSERT INTO `admin_operation_log` VALUES (312, 1, 'admin/orders-logs', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:24:09', '2020-07-20 17:24:09'); INSERT INTO `admin_operation_log` VALUES (313, 1, 'admin/products', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:24:21', '2020-07-20 17:24:21'); INSERT INTO `admin_operation_log` VALUES (314, 1, 'admin/departments', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:24:23', '2020-07-20 17:24:23'); INSERT INTO `admin_operation_log` VALUES (315, 1, 'admin/channels', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:24:24', '2020-07-20 17:24:24'); INSERT INTO `admin_operation_log` VALUES (316, 1, 'admin/params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:24:26', '2020-07-20 17:24:26'); INSERT INTO `admin_operation_log` VALUES (317, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:24:28', '2020-07-20 17:24:28'); INSERT INTO `admin_operation_log` VALUES (318, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:24:32', '2020-07-20 17:24:32'); INSERT INTO `admin_operation_log` VALUES (319, 1, 'admin/customer-demands', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:24:34', '2020-07-20 17:24:34'); INSERT INTO `admin_operation_log` VALUES (320, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:24:38', '2020-07-20 17:24:38'); INSERT INTO `admin_operation_log` VALUES (321, 1, 'admin/orders/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:24:40', '2020-07-20 17:24:40'); INSERT INTO `admin_operation_log` VALUES (322, 1, 'admin/products', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:25:19', '2020-07-20 17:25:19'); INSERT INTO `admin_operation_log` VALUES (323, 1, 'admin/departments', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:25:25', '2020-07-20 17:25:25'); INSERT INTO `admin_operation_log` VALUES (324, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:25:29', '2020-07-20 17:25:29'); INSERT INTO `admin_operation_log` VALUES (325, 1, 'admin/channels', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:25:36', '2020-07-20 17:25:36'); INSERT INTO `admin_operation_log` VALUES (326, 1, 'admin/cart-templates', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:25:40', '2020-07-20 17:25:40'); INSERT INTO `admin_operation_log` VALUES (327, 1, 'admin/params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:25:49', '2020-07-20 17:25:49'); INSERT INTO `admin_operation_log` VALUES (328, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:25:53', '2020-07-20 17:25:53'); INSERT INTO `admin_operation_log` VALUES (329, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:26:09', '2020-07-20 17:26:09'); INSERT INTO `admin_operation_log` VALUES (330, 1, 'admin/customers/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:26:11', '2020-07-20 17:26:11'); INSERT INTO `admin_operation_log` VALUES (331, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:26:15', '2020-07-20 17:26:15'); INSERT INTO `admin_operation_log` VALUES (332, 1, 'admin/customer-demands', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:26:18', '2020-07-20 17:26:18'); INSERT INTO `admin_operation_log` VALUES (333, 1, 'admin/customer-demands/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:26:20', '2020-07-20 17:26:20'); INSERT INTO `admin_operation_log` VALUES (334, 1, 'admin/customer-contacts', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:26:23', '2020-07-20 17:26:23'); INSERT INTO `admin_operation_log` VALUES (335, 1, 'admin/customer-contact-cards', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:26:29', '2020-07-20 17:26:29'); INSERT INTO `admin_operation_log` VALUES (336, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:26:36', '2020-07-20 17:26:36'); INSERT INTO `admin_operation_log` VALUES (337, 1, 'admin/orders/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:26:44', '2020-07-20 17:26:44'); INSERT INTO `admin_operation_log` VALUES (338, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:27:31', '2020-07-20 17:27:31'); INSERT INTO `admin_operation_log` VALUES (339, 1, 'admin/orders/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:28:19', '2020-07-20 17:28:19'); INSERT INTO `admin_operation_log` VALUES (340, 1, 'admin/channels', 'GET', '127.0.0.1', '[]', '2020-07-20 17:30:16', '2020-07-20 17:30:16'); INSERT INTO `admin_operation_log` VALUES (341, 1, 'admin', 'GET', '127.0.0.1', '[]', '2020-07-20 17:31:10', '2020-07-20 17:31:10'); INSERT INTO `admin_operation_log` VALUES (342, 1, 'admin/auth/users', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:31:14', '2020-07-20 17:31:14'); INSERT INTO `admin_operation_log` VALUES (343, 1, 'admin', 'GET', '127.0.0.1', '[]', '2020-07-20 17:45:09', '2020-07-20 17:45:09'); INSERT INTO `admin_operation_log` VALUES (344, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:45:13', '2020-07-20 17:45:13'); INSERT INTO `admin_operation_log` VALUES (345, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:55:57', '2020-07-20 17:55:57'); INSERT INTO `admin_operation_log` VALUES (346, 1, 'admin/customers', 'GET', '127.0.0.1', '[]', '2020-07-20 17:58:14', '2020-07-20 17:58:14'); INSERT INTO `admin_operation_log` VALUES (347, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"title\":null,\"owner_user_id\":\"2\",\"last_user_id\":null,\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:58:24', '2020-07-20 17:58:24'); INSERT INTO `admin_operation_log` VALUES (348, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\",\"title\":\"\\u6d4b\\u8bd5\",\"owner_user_id\":null,\"last_user_id\":null}', '2020-07-20 17:58:31', '2020-07-20 17:58:31'); INSERT INTO `admin_operation_log` VALUES (349, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\",\"title\":\"\\u6d4b\",\"owner_user_id\":null,\"last_user_id\":null}', '2020-07-20 17:58:36', '2020-07-20 17:58:36'); INSERT INTO `admin_operation_log` VALUES (350, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\",\"title\":\"\\u6d4b\",\"owner_user_id\":null,\"last_user_id\":\"1\"}', '2020-07-20 17:58:38', '2020-07-20 17:58:38'); INSERT INTO `admin_operation_log` VALUES (351, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\",\"title\":\"\\u6d4b\",\"owner_user_id\":\"2\",\"last_user_id\":\"1\"}', '2020-07-20 17:58:41', '2020-07-20 17:58:41'); INSERT INTO `admin_operation_log` VALUES (352, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 17:58:45', '2020-07-20 17:58:45'); INSERT INTO `admin_operation_log` VALUES (353, 1, 'admin/auth/roles', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:01:21', '2020-07-20 18:01:21'); INSERT INTO `admin_operation_log` VALUES (354, 1, 'admin/auth/roles/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:01:26', '2020-07-20 18:01:26'); INSERT INTO `admin_operation_log` VALUES (355, 1, 'admin/auth/roles', 'POST', '127.0.0.1', '{\"slug\":\"sales\",\"name\":\"\\u9500\\u552e\",\"permissions\":[\"2\",\"3\",\"4\",\"5\",null],\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/auth\\/roles\"}', '2020-07-20 18:01:45', '2020-07-20 18:01:45'); INSERT INTO `admin_operation_log` VALUES (356, 1, 'admin/auth/roles', 'GET', '127.0.0.1', '[]', '2020-07-20 18:01:46', '2020-07-20 18:01:46'); INSERT INTO `admin_operation_log` VALUES (357, 1, 'admin/auth/permissions', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:02:57', '2020-07-20 18:02:57'); INSERT INTO `admin_operation_log` VALUES (358, 1, 'admin/auth/permissions', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:03:01', '2020-07-20 18:03:01'); INSERT INTO `admin_operation_log` VALUES (359, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:03:07', '2020-07-20 18:03:07'); INSERT INTO `admin_operation_log` VALUES (360, 1, 'admin/orders-logs', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:03:12', '2020-07-20 18:03:12'); INSERT INTO `admin_operation_log` VALUES (361, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:03:14', '2020-07-20 18:03:14'); INSERT INTO `admin_operation_log` VALUES (362, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-20 18:07:01', '2020-07-20 18:07:01'); INSERT INTO `admin_operation_log` VALUES (363, 1, 'admin/orders/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:10:17', '2020-07-20 18:10:17'); INSERT INTO `admin_operation_log` VALUES (364, 1, 'admin/auth/roles', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:14:21', '2020-07-20 18:14:21'); INSERT INTO `admin_operation_log` VALUES (365, 1, 'admin/auth/roles', 'GET', '127.0.0.1', '[]', '2020-07-20 18:15:24', '2020-07-20 18:15:24'); INSERT INTO `admin_operation_log` VALUES (366, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:15:28', '2020-07-20 18:15:28'); INSERT INTO `admin_operation_log` VALUES (367, 1, 'admin/orders/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:15:31', '2020-07-20 18:15:31'); INSERT INTO `admin_operation_log` VALUES (368, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:24:11', '2020-07-20 18:24:11'); INSERT INTO `admin_operation_log` VALUES (369, 1, 'admin/customers/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:24:16', '2020-07-20 18:24:16'); INSERT INTO `admin_operation_log` VALUES (370, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:24:18', '2020-07-20 18:24:18'); INSERT INTO `admin_operation_log` VALUES (371, 1, 'admin/customers/1/edit', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:24:21', '2020-07-20 18:24:21'); INSERT INTO `admin_operation_log` VALUES (372, 1, 'admin/customers/1', 'PUT', '127.0.0.1', '{\"title\":\"\\u6d4b\\u8bd5\",\"type\":\"1\",\"address\":\"\\u4e2d\\u5fc3\\u573a\\u9986\",\"is_agent\":\"0\",\"channel_id\":\"2\",\"industry_id\":\"1\",\"remark\":null,\"owner_user_id\":\"1\",\"last_user_id\":\"2\",\"_token\":\"<KEY>\",\"_method\":\"PUT\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/customers\"}', '2020-07-20 18:24:26', '2020-07-20 18:24:26'); INSERT INTO `admin_operation_log` VALUES (373, 1, 'admin/customers', 'GET', '127.0.0.1', '[]', '2020-07-20 18:24:27', '2020-07-20 18:24:27'); INSERT INTO `admin_operation_log` VALUES (374, 1, 'admin/customer-demands', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:41:23', '2020-07-20 18:41:23'); INSERT INTO `admin_operation_log` VALUES (375, 1, 'admin/customer-demands/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:41:37', '2020-07-20 18:41:37'); INSERT INTO `admin_operation_log` VALUES (376, 1, 'admin/customer-demands/create', 'GET', '127.0.0.1', '[]', '2020-07-20 18:42:35', '2020-07-20 18:42:35'); INSERT INTO `admin_operation_log` VALUES (377, 1, 'admin/customer-demands/create', 'GET', '127.0.0.1', '[]', '2020-07-20 18:42:46', '2020-07-20 18:42:46'); INSERT INTO `admin_operation_log` VALUES (378, 1, 'admin/customer-demands', 'POST', '127.0.0.1', '{\"customer_id\":\"1\",\"demand\":\"\\u6d4b\\u8bd5\",\"_token\":\"<KEY>\"}', '2020-07-20 18:42:57', '2020-07-20 18:42:57'); INSERT INTO `admin_operation_log` VALUES (379, 1, 'admin/customer-demands', 'GET', '127.0.0.1', '[]', '2020-07-20 18:42:57', '2020-07-20 18:42:57'); INSERT INTO `admin_operation_log` VALUES (380, 1, 'admin/customer-demands', 'GET', '127.0.0.1', '{\"customer_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:43:01', '2020-07-20 18:43:01'); INSERT INTO `admin_operation_log` VALUES (381, 1, 'admin/customer-demands', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:43:05', '2020-07-20 18:43:05'); INSERT INTO `admin_operation_log` VALUES (382, 1, 'admin/customer-demands/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:43:09', '2020-07-20 18:43:09'); INSERT INTO `admin_operation_log` VALUES (383, 1, 'admin/customer-demands', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:43:16', '2020-07-20 18:43:16'); INSERT INTO `admin_operation_log` VALUES (384, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:43:20', '2020-07-20 18:43:20'); INSERT INTO `admin_operation_log` VALUES (385, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:43:44', '2020-07-20 18:43:44'); INSERT INTO `admin_operation_log` VALUES (386, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:43:47', '2020-07-20 18:43:47'); INSERT INTO `admin_operation_log` VALUES (387, 1, 'admin/customer-demands', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:43:50', '2020-07-20 18:43:50'); INSERT INTO `admin_operation_log` VALUES (388, 1, 'admin/customer-contacts', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:43:52', '2020-07-20 18:43:52'); INSERT INTO `admin_operation_log` VALUES (389, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:44:34', '2020-07-20 18:44:34'); INSERT INTO `admin_operation_log` VALUES (390, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-20 18:48:00', '2020-07-20 18:48:00'); INSERT INTO `admin_operation_log` VALUES (391, 1, 'admin/orders/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 18:48:11', '2020-07-20 18:48:11'); INSERT INTO `admin_operation_log` VALUES (392, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 18:48:28', '2020-07-20 18:48:28'); INSERT INTO `admin_operation_log` VALUES (393, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 18:48:44', '2020-07-20 18:48:44'); INSERT INTO `admin_operation_log` VALUES (394, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 18:49:26', '2020-07-20 18:49:26'); INSERT INTO `admin_operation_log` VALUES (395, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":\"1\"}', '2020-07-20 18:49:30', '2020-07-20 18:49:30'); INSERT INTO `admin_operation_log` VALUES (396, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 18:49:56', '2020-07-20 18:49:56'); INSERT INTO `admin_operation_log` VALUES (397, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":\"1\"}', '2020-07-20 18:50:01', '2020-07-20 18:50:01'); INSERT INTO `admin_operation_log` VALUES (398, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 18:54:29', '2020-07-20 18:54:29'); INSERT INTO `admin_operation_log` VALUES (399, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 18:55:16', '2020-07-20 18:55:16'); INSERT INTO `admin_operation_log` VALUES (400, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":\"1\"}', '2020-07-20 18:55:29', '2020-07-20 18:55:29'); INSERT INTO `admin_operation_log` VALUES (401, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:02:36', '2020-07-20 19:02:36'); INSERT INTO `admin_operation_log` VALUES (402, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:02:53', '2020-07-20 19:02:53'); INSERT INTO `admin_operation_log` VALUES (403, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":\"1\"}', '2020-07-20 19:02:57', '2020-07-20 19:02:57'); INSERT INTO `admin_operation_log` VALUES (404, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:03:23', '2020-07-20 19:03:23'); INSERT INTO `admin_operation_log` VALUES (405, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:03:38', '2020-07-20 19:03:38'); INSERT INTO `admin_operation_log` VALUES (406, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":\"1\"}', '2020-07-20 19:03:42', '2020-07-20 19:03:42'); INSERT INTO `admin_operation_log` VALUES (407, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:04:52', '2020-07-20 19:04:52'); INSERT INTO `admin_operation_log` VALUES (408, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":\"1\"}', '2020-07-20 19:04:57', '2020-07-20 19:04:57'); INSERT INTO `admin_operation_log` VALUES (409, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:05:13', '2020-07-20 19:05:13'); INSERT INTO `admin_operation_log` VALUES (410, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":\"1\"}', '2020-07-20 19:05:17', '2020-07-20 19:05:17'); INSERT INTO `admin_operation_log` VALUES (411, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:05:52', '2020-07-20 19:05:52'); INSERT INTO `admin_operation_log` VALUES (412, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":\"1\"}', '2020-07-20 19:05:56', '2020-07-20 19:05:56'); INSERT INTO `admin_operation_log` VALUES (413, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:07:24', '2020-07-20 19:07:24'); INSERT INTO `admin_operation_log` VALUES (414, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:07:51', '2020-07-20 19:07:51'); INSERT INTO `admin_operation_log` VALUES (415, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:08:53', '2020-07-20 19:08:53'); INSERT INTO `admin_operation_log` VALUES (416, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":\"1\"}', '2020-07-20 19:08:59', '2020-07-20 19:08:59'); INSERT INTO `admin_operation_log` VALUES (417, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:09:10', '2020-07-20 19:09:10'); INSERT INTO `admin_operation_log` VALUES (418, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":\"1\"}', '2020-07-20 19:09:16', '2020-07-20 19:09:16'); INSERT INTO `admin_operation_log` VALUES (419, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:09:56', '2020-07-20 19:09:56'); INSERT INTO `admin_operation_log` VALUES (420, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":\"1\"}', '2020-07-20 19:10:01', '2020-07-20 19:10:01'); INSERT INTO `admin_operation_log` VALUES (421, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:11:21', '2020-07-20 19:11:21'); INSERT INTO `admin_operation_log` VALUES (422, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:11:47', '2020-07-20 19:11:47'); INSERT INTO `admin_operation_log` VALUES (423, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":\"1\"}', '2020-07-20 19:11:52', '2020-07-20 19:11:52'); INSERT INTO `admin_operation_log` VALUES (424, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:12:11', '2020-07-20 19:12:11'); INSERT INTO `admin_operation_log` VALUES (425, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":\"1\"}', '2020-07-20 19:12:15', '2020-07-20 19:12:15'); INSERT INTO `admin_operation_log` VALUES (426, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:13:18', '2020-07-20 19:13:18'); INSERT INTO `admin_operation_log` VALUES (427, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":\"1\"}', '2020-07-20 19:13:23', '2020-07-20 19:13:23'); INSERT INTO `admin_operation_log` VALUES (428, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:15:53', '2020-07-20 19:15:53'); INSERT INTO `admin_operation_log` VALUES (429, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:16:04', '2020-07-20 19:16:04'); INSERT INTO `admin_operation_log` VALUES (430, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":\"1\"}', '2020-07-20 19:16:08', '2020-07-20 19:16:08'); INSERT INTO `admin_operation_log` VALUES (431, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:18:04', '2020-07-20 19:18:04'); INSERT INTO `admin_operation_log` VALUES (432, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":\"1\"}', '2020-07-20 19:18:08', '2020-07-20 19:18:08'); INSERT INTO `admin_operation_log` VALUES (433, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":null}', '2020-07-20 19:18:33', '2020-07-20 19:18:33'); INSERT INTO `admin_operation_log` VALUES (434, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":\"1\"}', '2020-07-20 19:18:35', '2020-07-20 19:18:35'); INSERT INTO `admin_operation_log` VALUES (435, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:20:48', '2020-07-20 19:20:48'); INSERT INTO `admin_operation_log` VALUES (436, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:21:05', '2020-07-20 19:21:05'); INSERT INTO `admin_operation_log` VALUES (437, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:21:18', '2020-07-20 19:21:18'); INSERT INTO `admin_operation_log` VALUES (438, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:21:27', '2020-07-20 19:21:27'); INSERT INTO `admin_operation_log` VALUES (439, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:22:21', '2020-07-20 19:22:21'); INSERT INTO `admin_operation_log` VALUES (440, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:22:29', '2020-07-20 19:22:29'); INSERT INTO `admin_operation_log` VALUES (441, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:26:54', '2020-07-20 19:26:54'); INSERT INTO `admin_operation_log` VALUES (442, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:37:03', '2020-07-20 19:37:03'); INSERT INTO `admin_operation_log` VALUES (443, 1, 'admin/api/getCustomerDemand', 'GET', '127.0.0.1', '{\"q\":\"1\"}', '2020-07-20 19:37:06', '2020-07-20 19:37:06'); INSERT INTO `admin_operation_log` VALUES (444, 1, 'admin/orders', 'POST', '127.0.0.1', '{\"customer_id\":\"1\",\"customer_demand_id\":\"1\",\"start_time\":\"2020-07-20 19:37:03\",\"end_time\":\"2020-07-20 19:37:03\",\"admin_user_id\":\"1\",\"price\":null,\"receivable\":null,\"receipts\":null,\"sales_remark\":null,\"it_remark\":null,\"status\":\"0\",\"_token\":\"<KEY>}', '2020-07-20 19:37:16', '2020-07-20 19:37:16'); INSERT INTO `admin_operation_log` VALUES (445, 1, 'admin/orders/create', 'GET', '127.0.0.1', '[]', '2020-07-20 19:37:16', '2020-07-20 19:37:16'); INSERT INTO `admin_operation_log` VALUES (446, 1, 'admin/orders', 'POST', '127.0.0.1', '{\"customer_id\":\"1\",\"customer_demand_id\":\"1\",\"start_time\":\"2020-07-20 19:37:03\",\"end_time\":\"2020-07-20 19:37:03\",\"admin_user_id\":\"1\",\"price\":null,\"receivable\":null,\"receipts\":null,\"sales_remark\":null,\"it_remark\":null,\"status\":\"0\",\"_token\":\"<KEY>}', '2020-07-20 19:37:47', '2020-07-20 19:37:47'); INSERT INTO `admin_operation_log` VALUES (447, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-20 19:37:48', '2020-07-20 19:37:48'); INSERT INTO `admin_operation_log` VALUES (448, 1, 'admin/orders/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 19:38:07', '2020-07-20 19:38:07'); INSERT INTO `admin_operation_log` VALUES (449, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 19:45:34', '2020-07-20 19:45:34'); INSERT INTO `admin_operation_log` VALUES (450, 1, 'admin/orders/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 19:45:38', '2020-07-20 19:45:38'); INSERT INTO `admin_operation_log` VALUES (451, 1, 'admin/orders/1', 'GET', '127.0.0.1', '[]', '2020-07-20 19:46:54', '2020-07-20 19:46:54'); INSERT INTO `admin_operation_log` VALUES (452, 1, 'admin/orders/1', 'GET', '127.0.0.1', '[]', '2020-07-20 19:47:14', '2020-07-20 19:47:14'); INSERT INTO `admin_operation_log` VALUES (453, 1, 'admin/orders/1', 'GET', '127.0.0.1', '[]', '2020-07-20 19:47:30', '2020-07-20 19:47:30'); INSERT INTO `admin_operation_log` VALUES (454, 1, 'admin/orders/1', 'GET', '127.0.0.1', '[]', '2020-07-20 19:49:48', '2020-07-20 19:49:48'); INSERT INTO `admin_operation_log` VALUES (455, 1, 'admin/orders/1', 'GET', '127.0.0.1', '[]', '2020-07-20 19:51:03', '2020-07-20 19:51:03'); INSERT INTO `admin_operation_log` VALUES (456, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-20 19:51:07', '2020-07-20 19:51:07'); INSERT INTO `admin_operation_log` VALUES (457, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 19:56:16', '2020-07-20 19:56:16'); INSERT INTO `admin_operation_log` VALUES (458, 1, 'admin/product-params/3', 'DELETE', '127.0.0.1', '{\"_method\":\"delete\",\"_token\":\"<KEY>}', '2020-07-20 19:56:23', '2020-07-20 19:56:23'); INSERT INTO `admin_operation_log` VALUES (459, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 19:56:24', '2020-07-20 19:56:24'); INSERT INTO `admin_operation_log` VALUES (460, 1, 'admin/product-params/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 19:56:26', '2020-07-20 19:56:26'); INSERT INTO `admin_operation_log` VALUES (461, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 19:56:31', '2020-07-20 19:56:31'); INSERT INTO `admin_operation_log` VALUES (462, 1, 'admin/product-params/1', 'DELETE', '127.0.0.1', '{\"_method\":\"delete\",\"_token\":\"<KEY>}', '2020-07-20 19:56:35', '2020-07-20 19:56:35'); INSERT INTO `admin_operation_log` VALUES (463, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 19:56:35', '2020-07-20 19:56:35'); INSERT INTO `admin_operation_log` VALUES (464, 1, 'admin/product-params/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 19:56:38', '2020-07-20 19:56:38'); INSERT INTO `admin_operation_log` VALUES (465, 1, 'admin/params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 19:56:43', '2020-07-20 19:56:43'); INSERT INTO `admin_operation_log` VALUES (466, 1, 'admin/params/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 19:56:45', '2020-07-20 19:56:45'); INSERT INTO `admin_operation_log` VALUES (467, 1, 'admin/params', 'POST', '127.0.0.1', '{\"title\":\"\\u670d\\u52a1\\u7c7b\\u522b\",\"alias\":\"serveice_type\",\"type\":\"2\",\"type_params\":\"\\u6807\\u51c6\\u7248,\\u52a0\\u5f3a\\u7248,\\u63a8\\u5e7f\\u7248,\\u5b9a\\u5236\\u7248\",\"sort\":\"1\",\"is_required\":\"1\",\"remark\":\"\\u9009\\u62e9\\u670d\\u52a1\\u7c7b\\u522b\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/params\"}', '2020-07-20 19:57:47', '2020-07-20 19:57:47'); INSERT INTO `admin_operation_log` VALUES (468, 1, 'admin/params', 'GET', '127.0.0.1', '[]', '2020-07-20 19:57:48', '2020-07-20 19:57:48'); INSERT INTO `admin_operation_log` VALUES (469, 1, 'admin/params/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 19:57:51', '2020-07-20 19:57:51'); INSERT INTO `admin_operation_log` VALUES (470, 1, 'admin/params', 'POST', '127.0.0.1', '{\"title\":\"\\u7f51\\u7ad9\\u57df\\u540d\",\"alias\":\"domain\",\"type\":\"0\",\"type_params\":null,\"sort\":\"1\",\"is_required\":\"1\",\"remark\":null,\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/params\"}', '2020-07-20 19:58:23', '2020-07-20 19:58:23'); INSERT INTO `admin_operation_log` VALUES (471, 1, 'admin/params', 'GET', '127.0.0.1', '[]', '2020-07-20 19:58:24', '2020-07-20 19:58:24'); INSERT INTO `admin_operation_log` VALUES (472, 1, 'admin/params/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 19:58:26', '2020-07-20 19:58:26'); INSERT INTO `admin_operation_log` VALUES (473, 1, 'admin/params', 'POST', '127.0.0.1', '{\"title\":\"\\u662f\\u5426\\u534f\\u52a9\\u6ce8\\u518c\\u516c\\u4f17\\u53f7\",\"alias\":\"is_sing_up\",\"type\":\"2\",\"type_params\":\"\\u662f,\\u5426\",\"sort\":\"1\",\"is_required\":\"1\",\"remark\":null,\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/params\"}', '2020-07-20 19:59:17', '2020-07-20 19:59:17'); INSERT INTO `admin_operation_log` VALUES (474, 1, 'admin/params', 'GET', '127.0.0.1', '[]', '2020-07-20 19:59:18', '2020-07-20 19:59:18'); INSERT INTO `admin_operation_log` VALUES (475, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 19:59:32', '2020-07-20 19:59:32'); INSERT INTO `admin_operation_log` VALUES (476, 1, 'admin/product-params/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 19:59:40', '2020-07-20 19:59:40'); INSERT INTO `admin_operation_log` VALUES (477, 1, 'admin/product-params', 'POST', '127.0.0.1', '{\"product_id\":\"0\",\"params_id\":[\"1\",\"3\",\"4\",\"5\",null],\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/product-params\"}', '2020-07-20 20:01:40', '2020-07-20 20:01:40'); INSERT INTO `admin_operation_log` VALUES (478, 1, 'admin/product-params', 'GET', '127.0.0.1', '[]', '2020-07-20 20:01:41', '2020-07-20 20:01:41'); INSERT INTO `admin_operation_log` VALUES (479, 1, 'admin/product-params/4,5,6,7', 'DELETE', '127.0.0.1', '{\"_method\":\"delete\",\"_token\":\"<KEY>iDtD\"}', '2020-07-20 20:01:52', '2020-07-20 20:01:52'); INSERT INTO `admin_operation_log` VALUES (480, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 20:01:53', '2020-07-20 20:01:53'); INSERT INTO `admin_operation_log` VALUES (481, 1, 'admin/product-params/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 20:01:55', '2020-07-20 20:01:55'); INSERT INTO `admin_operation_log` VALUES (482, 1, 'admin/product-params', 'POST', '127.0.0.1', '{\"product_id\":\"2\",\"params_id\":[\"3\",\"4\",\"5\",null],\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/product-params\"}', '2020-07-20 20:02:06', '2020-07-20 20:02:06'); INSERT INTO `admin_operation_log` VALUES (483, 1, 'admin/product-params', 'GET', '127.0.0.1', '[]', '2020-07-20 20:02:07', '2020-07-20 20:02:07'); INSERT INTO `admin_operation_log` VALUES (484, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"product_id\":\"3\",\"_pjax\":\"#pjax-container\"}', '2020-07-20 20:02:12', '2020-07-20 20:02:12'); INSERT INTO `admin_operation_log` VALUES (485, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\",\"product_id\":\"1\"}', '2020-07-20 20:02:15', '2020-07-20 20:02:15'); INSERT INTO `admin_operation_log` VALUES (486, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\",\"product_id\":\"2\"}', '2020-07-20 20:02:18', '2020-07-20 20:02:18'); INSERT INTO `admin_operation_log` VALUES (487, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 20:02:32', '2020-07-20 20:02:32'); INSERT INTO `admin_operation_log` VALUES (488, 1, 'admin/orders/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 20:02:40', '2020-07-20 20:02:40'); INSERT INTO `admin_operation_log` VALUES (489, 1, 'admin/customer-demands', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 20:03:35', '2020-07-20 20:03:35'); INSERT INTO `admin_operation_log` VALUES (490, 1, 'admin/customer-demands', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 20:03:51', '2020-07-20 20:03:51'); INSERT INTO `admin_operation_log` VALUES (491, 1, 'admin/products', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 20:04:06', '2020-07-20 20:04:06'); INSERT INTO `admin_operation_log` VALUES (492, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 20:05:53', '2020-07-20 20:05:53'); INSERT INTO `admin_operation_log` VALUES (493, 1, 'admin/orders/1/edit', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 20:05:57', '2020-07-20 20:05:57'); INSERT INTO `admin_operation_log` VALUES (494, 1, 'admin/orders/1/edit', 'GET', '127.0.0.1', '[]', '2020-07-20 20:06:40', '2020-07-20 20:06:40'); INSERT INTO `admin_operation_log` VALUES (495, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 20:10:01', '2020-07-20 20:10:01'); INSERT INTO `admin_operation_log` VALUES (496, 1, 'admin/orders/1/edit', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 20:10:06', '2020-07-20 20:10:06'); INSERT INTO `admin_operation_log` VALUES (497, 1, 'admin/orders/1', 'PUT', '127.0.0.1', '{\"customer_id\":\"1\",\"customer_demand_id\":\"1\",\"product_id\":\"2\",\"start_time\":\"2020-07-20 19:37:03\",\"end_time\":\"2020-07-20 19:37:03\",\"admin_user_id\":\"1\",\"price\":null,\"receivable\":null,\"receipts\":null,\"sales_remark\":null,\"it_remark\":null,\"status\":\"0\",\"_token\":\"<KEY>\",\"_method\":\"PUT\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/orders\"}', '2020-07-20 20:10:24', '2020-07-20 20:10:24'); INSERT INTO `admin_operation_log` VALUES (498, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-20 20:10:25', '2020-07-20 20:10:25'); INSERT INTO `admin_operation_log` VALUES (499, 1, 'admin/orders/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-20 20:10:33', '2020-07-20 20:10:33'); INSERT INTO `admin_operation_log` VALUES (500, 1, 'admin/orders/1', 'GET', '127.0.0.1', '[]', '2020-07-21 08:44:47', '2020-07-21 08:44:47'); INSERT INTO `admin_operation_log` VALUES (501, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 10:18:39', '2020-07-21 10:18:39'); INSERT INTO `admin_operation_log` VALUES (502, 1, 'admin/orders/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 10:18:44', '2020-07-21 10:18:44'); INSERT INTO `admin_operation_log` VALUES (503, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 10:18:47', '2020-07-21 10:18:47'); INSERT INTO `admin_operation_log` VALUES (504, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 10:20:10', '2020-07-21 10:20:10'); INSERT INTO `admin_operation_log` VALUES (505, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 10:20:25', '2020-07-21 10:20:25'); INSERT INTO `admin_operation_log` VALUES (506, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 10:22:19', '2020-07-21 10:22:19'); INSERT INTO `admin_operation_log` VALUES (507, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 10:26:21', '2020-07-21 10:26:21'); INSERT INTO `admin_operation_log` VALUES (508, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 10:34:36', '2020-07-21 10:34:36'); INSERT INTO `admin_operation_log` VALUES (509, 1, 'admin/orders/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 10:34:39', '2020-07-21 10:34:39'); INSERT INTO `admin_operation_log` VALUES (510, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 10:34:52', '2020-07-21 10:34:52'); INSERT INTO `admin_operation_log` VALUES (511, 1, 'admin/customers/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 10:34:55', '2020-07-21 10:34:55'); INSERT INTO `admin_operation_log` VALUES (512, 1, 'admin/customers/create', 'GET', '127.0.0.1', '[]', '2020-07-21 10:35:02', '2020-07-21 10:35:02'); INSERT INTO `admin_operation_log` VALUES (513, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 10:36:08', '2020-07-21 10:36:08'); INSERT INTO `admin_operation_log` VALUES (514, 1, 'admin/orders/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 10:36:12', '2020-07-21 10:36:12'); INSERT INTO `admin_operation_log` VALUES (515, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 10:36:15', '2020-07-21 10:36:15'); INSERT INTO `admin_operation_log` VALUES (516, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 10:36:32', '2020-07-21 10:36:32'); INSERT INTO `admin_operation_log` VALUES (517, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 10:36:49', '2020-07-21 10:36:49'); INSERT INTO `admin_operation_log` VALUES (518, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 10:52:00', '2020-07-21 10:52:00'); INSERT INTO `admin_operation_log` VALUES (519, 1, 'admin/orders/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 10:52:22', '2020-07-21 10:52:22'); INSERT INTO `admin_operation_log` VALUES (520, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 10:52:26', '2020-07-21 10:52:26'); INSERT INTO `admin_operation_log` VALUES (521, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:01:49', '2020-07-21 11:01:49'); INSERT INTO `admin_operation_log` VALUES (522, 1, 'admin/product-params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:01:53', '2020-07-21 11:01:53'); INSERT INTO `admin_operation_log` VALUES (523, 1, 'admin/params', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:01:55', '2020-07-21 11:01:55'); INSERT INTO `admin_operation_log` VALUES (524, 1, 'admin/params/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:02:00', '2020-07-21 11:02:00'); INSERT INTO `admin_operation_log` VALUES (525, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:16:46', '2020-07-21 11:16:46'); INSERT INTO `admin_operation_log` VALUES (526, 1, 'admin/orders/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:16:49', '2020-07-21 11:16:49'); INSERT INTO `admin_operation_log` VALUES (527, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:16:53', '2020-07-21 11:16:53'); INSERT INTO `admin_operation_log` VALUES (528, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 11:17:01', '2020-07-21 11:17:01'); INSERT INTO `admin_operation_log` VALUES (529, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 11:17:50', '2020-07-21 11:17:50'); INSERT INTO `admin_operation_log` VALUES (530, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 11:18:54', '2020-07-21 11:18:54'); INSERT INTO `admin_operation_log` VALUES (531, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 11:20:48', '2020-07-21 11:20:48'); INSERT INTO `admin_operation_log` VALUES (532, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 11:23:01', '2020-07-21 11:23:01'); INSERT INTO `admin_operation_log` VALUES (533, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:23:37', '2020-07-21 11:23:37'); INSERT INTO `admin_operation_log` VALUES (534, 1, 'admin/customers', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:23:46', '2020-07-21 11:23:46'); INSERT INTO `admin_operation_log` VALUES (535, 1, 'admin/customer-demands', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:23:49', '2020-07-21 11:23:49'); INSERT INTO `admin_operation_log` VALUES (536, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:23:54', '2020-07-21 11:23:54'); INSERT INTO `admin_operation_log` VALUES (537, 1, 'admin/orders/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:23:55', '2020-07-21 11:23:55'); INSERT INTO `admin_operation_log` VALUES (538, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:25:24', '2020-07-21 11:25:24'); INSERT INTO `admin_operation_log` VALUES (539, 1, 'admin/orders/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:25:27', '2020-07-21 11:25:27'); INSERT INTO `admin_operation_log` VALUES (540, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:25:32', '2020-07-21 11:25:32'); INSERT INTO `admin_operation_log` VALUES (541, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 11:26:22', '2020-07-21 11:26:22'); INSERT INTO `admin_operation_log` VALUES (542, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 11:26:41', '2020-07-21 11:26:41'); INSERT INTO `admin_operation_log` VALUES (543, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 11:28:07', '2020-07-21 11:28:07'); INSERT INTO `admin_operation_log` VALUES (544, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 11:28:33', '2020-07-21 11:28:33'); INSERT INTO `admin_operation_log` VALUES (545, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 11:28:44', '2020-07-21 11:28:44'); INSERT INTO `admin_operation_log` VALUES (546, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 11:29:00', '2020-07-21 11:29:00'); INSERT INTO `admin_operation_log` VALUES (547, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 11:29:21', '2020-07-21 11:29:21'); INSERT INTO `admin_operation_log` VALUES (548, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 11:29:49', '2020-07-21 11:29:49'); INSERT INTO `admin_operation_log` VALUES (549, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:30:59', '2020-07-21 11:30:59'); INSERT INTO `admin_operation_log` VALUES (550, 1, 'admin/orders/1/edit', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:31:11', '2020-07-21 11:31:11'); INSERT INTO `admin_operation_log` VALUES (551, 1, 'admin/orders/1', 'PUT', '127.0.0.1', '{\"customer_id\":\"1\",\"customer_demand_id\":\"1\",\"product_id\":\"2\",\"start_time\":\"2020-07-20 19:37:03\",\"end_time\":\"2020-07-20 19:37:03\",\"admin_user_id\":\"1\",\"price\":null,\"receivable\":null,\"receipts\":null,\"sales_remark\":null,\"it_remark\":null,\"status\":\"0\",\"_token\":\"<KEY>\",\"_method\":\"PUT\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/orders\"}', '2020-07-21 11:31:29', '2020-07-21 11:31:29'); INSERT INTO `admin_operation_log` VALUES (552, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-21 11:31:30', '2020-07-21 11:31:30'); INSERT INTO `admin_operation_log` VALUES (553, 1, 'admin/orders/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:36:50', '2020-07-21 11:36:50'); INSERT INTO `admin_operation_log` VALUES (554, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:36:54', '2020-07-21 11:36:54'); INSERT INTO `admin_operation_log` VALUES (555, 1, 'admin/orders-details', 'POST', '127.0.0.1', '{\"orders_id\":\"1\",\"customer_title\":\"\\u6d4b\\u8bd5\",\"serveice_type\":\"\\u6807\\u51c6\\u7248\",\"domain\":\"\\u6d4b\\u8bd5\",\"is_sing_up\":\"\\u662f\",\"_token\":\"<KEY>}', '2020-07-21 11:37:07', '2020-07-21 11:37:07'); INSERT INTO `admin_operation_log` VALUES (556, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:43:56', '2020-07-21 11:43:56'); INSERT INTO `admin_operation_log` VALUES (557, 1, 'admin/orders-details', 'POST', '127.0.0.1', '{\"orders_id\":\"1\",\"customer_title\":\"\\u6d4b\\u8bd5\",\"3\":\"\\u6807\\u51c6\\u7248\",\"4\":\"\\u6d4b\\u8bd5\",\"5\":\"\\u662f\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/orders-details\\/create?orders_id=1\"}', '2020-07-21 11:44:01', '2020-07-21 11:44:01'); INSERT INTO `admin_operation_log` VALUES (558, 1, 'admin/orders-details', 'GET', '127.0.0.1', '[]', '2020-07-21 11:44:30', '2020-07-21 11:44:30'); INSERT INTO `admin_operation_log` VALUES (559, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:44:35', '2020-07-21 11:44:35'); INSERT INTO `admin_operation_log` VALUES (560, 1, 'admin/orders/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:44:38', '2020-07-21 11:44:38'); INSERT INTO `admin_operation_log` VALUES (561, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:44:41', '2020-07-21 11:44:41'); INSERT INTO `admin_operation_log` VALUES (562, 1, 'admin/orders-details', 'POST', '127.0.0.1', '{\"orders_id\":\"1\",\"customer_title\":\"\\u6d4b\\u8bd5\",\"3\":\"\\u6807\\u51c6\\u7248\",\"4\":\"\\u6d4b\\u8bd5\",\"5\":\"\\u662f\",\"_token\":\"egPKeJMwbdKVSsSx7A7GYzdhShwJu9bLVz08Djfz\"}', '2020-07-21 11:44:46', '2020-07-21 11:44:46'); INSERT INTO `admin_operation_log` VALUES (563, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:46:14', '2020-07-21 11:46:14'); INSERT INTO `admin_operation_log` VALUES (564, 1, 'admin/orders-details', 'POST', '127.0.0.1', '{\"orders_id\":\"1\",\"customer_title\":\"\\u6d4b\\u8bd5\",\"3\":\"\\u6807\\u51c6\\u7248\",\"4\":\"\\u6d4b\\u8bd5\",\"5\":\"\\u662f\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/orders-details\\/create?orders_id=1\"}', '2020-07-21 11:46:18', '2020-07-21 11:46:18'); INSERT INTO `admin_operation_log` VALUES (565, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:46:44', '2020-07-21 11:46:44'); INSERT INTO `admin_operation_log` VALUES (566, 1, 'admin/orders-details', 'POST', '127.0.0.1', '{\"orders_id\":\"1\",\"customer_title\":\"\\u6d4b\\u8bd5\",\"3\":\"\\u6807\\u51c6\\u7248\",\"4\":\"\\u6d4b\\u8bd5\",\"5\":\"\\u662f\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/orders-details\\/create?orders_id=1\"}', '2020-07-21 11:46:48', '2020-07-21 11:46:48'); INSERT INTO `admin_operation_log` VALUES (567, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:47:45', '2020-07-21 11:47:45'); INSERT INTO `admin_operation_log` VALUES (568, 1, 'admin/orders-details', 'POST', '127.0.0.1', '{\"orders_id\":\"1\",\"customer_title\":\"\\u6d4b\\u8bd5\",\"3\":\"\\u6807\\u51c6\\u7248\",\"4\":\"\\u6d4b\\u8bd5\",\"5\":\"\\u662f\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/orders-details\\/create?orders_id=1\"}', '2020-07-21 11:47:48', '2020-07-21 11:47:48'); INSERT INTO `admin_operation_log` VALUES (569, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:49:07', '2020-07-21 11:49:07'); INSERT INTO `admin_operation_log` VALUES (570, 1, 'admin/orders-details', 'POST', '127.0.0.1', '{\"orders_id\":\"1\",\"customer_title\":\"\\u6d4b\\u8bd5\",\"3\":\"\\u6807\\u51c6\\u7248\",\"4\":\"\\u6d4b\\u8bd5\",\"5\":\"\\u662f\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/orders-details\\/create?orders_id=1\"}', '2020-07-21 11:49:44', '2020-07-21 11:49:44'); INSERT INTO `admin_operation_log` VALUES (571, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 11:52:01', '2020-07-21 11:52:01'); INSERT INTO `admin_operation_log` VALUES (572, 1, 'admin/orders-details', 'POST', '127.0.0.1', '{\"orders_id\":\"1\",\"customer_title\":\"\\u6d4b\\u8bd5\",\"3\":\"\\u6807\\u51c6\\u7248\",\"4\":\"\\u6d4b\\u8bd5\",\"5\":\"\\u662f\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/orders-details\\/create?orders_id=1\"}', '2020-07-21 11:52:04', '2020-07-21 11:52:04'); INSERT INTO `admin_operation_log` VALUES (573, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 12:08:16', '2020-07-21 12:08:16'); INSERT INTO `admin_operation_log` VALUES (574, 1, 'admin/orders-details', 'POST', '127.0.0.1', '{\"orders_id\":\"1\",\"customer_title\":\"\\u6d4b\\u8bd5\",\"3\":\"\\u6807\\u51c6\\u7248\",\"4\":\"\\u6d4b\\u8bd5\",\"5\":\"\\u662f\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/orders-details\\/create?orders_id=1\"}', '2020-07-21 12:08:20', '2020-07-21 12:08:20'); INSERT INTO `admin_operation_log` VALUES (575, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 12:08:45', '2020-07-21 12:08:45'); INSERT INTO `admin_operation_log` VALUES (576, 1, 'admin/orders-details', 'POST', '127.0.0.1', '{\"orders_id\":\"1\",\"customer_title\":\"\\u6d4b\\u8bd5\",\"3\":\"\\u6807\\u51c6\\u7248\",\"4\":\"\\u6d4b\\u8bd5\",\"5\":\"\\u662f\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/orders-details\\/create?orders_id=1\"}', '2020-07-21 12:08:49', '2020-07-21 12:08:49'); INSERT INTO `admin_operation_log` VALUES (577, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 12:09:02', '2020-07-21 12:09:02'); INSERT INTO `admin_operation_log` VALUES (578, 1, 'admin/orders-details', 'POST', '127.0.0.1', '{\"orders_id\":\"1\",\"customer_title\":\"\\u6d4b\\u8bd5\",\"3\":\"\\u6807\\u51c6\\u7248\",\"4\":\"\\u6d4b\\u8bd5\",\"5\":\"\\u662f\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/orders-details\\/create?orders_id=1\"}', '2020-07-21 12:09:06', '2020-07-21 12:09:06'); INSERT INTO `admin_operation_log` VALUES (579, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 12:09:38', '2020-07-21 12:09:38'); INSERT INTO `admin_operation_log` VALUES (580, 1, 'admin/orders-details', 'POST', '127.0.0.1', '{\"orders_id\":\"1\",\"customer_title\":\"\\u6d4b\\u8bd5\",\"3\":\"\\u6807\\u51c6\\u7248\",\"4\":\"\\u6d4b\\u8bd5\",\"5\":\"\\u662f\",\"_token\":\"egPKeJMwbdKVSsSx7A7GYzdhShwJu9bLVz08Djfz\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/orders-details\\/create?orders_id=1\"}', '2020-07-21 12:09:42', '2020-07-21 12:09:42'); INSERT INTO `admin_operation_log` VALUES (581, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 12:09:43', '2020-07-21 12:09:43'); INSERT INTO `admin_operation_log` VALUES (582, 1, 'admin/orders-details', 'POST', '127.0.0.1', '{\"orders_id\":\"1\",\"customer_title\":\"\\u6d4b\\u8bd5\",\"3\":\"\\u6807\\u51c6\\u7248\",\"4\":\"\\u6d4b\\u8bd5\",\"5\":\"\\u662f\",\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/orders-details\\/create?orders_id=1\"}', '2020-07-21 12:10:16', '2020-07-21 12:10:16'); INSERT INTO `admin_operation_log` VALUES (583, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\"}', '2020-07-21 12:10:17', '2020-07-21 12:10:17'); INSERT INTO `admin_operation_log` VALUES (584, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 12:10:20', '2020-07-21 12:10:20'); INSERT INTO `admin_operation_log` VALUES (585, 1, 'admin/orders/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 12:10:23', '2020-07-21 12:10:23'); INSERT INTO `admin_operation_log` VALUES (586, 1, 'admin/orders-details/create', 'GET', '127.0.0.1', '{\"orders_id\":\"1\",\"_pjax\":\"#pjax-container\"}', '2020-07-21 12:11:01', '2020-07-21 12:11:01'); INSERT INTO `admin_operation_log` VALUES (587, 1, 'admin/orders-details', 'POST', '127.0.0.1', '{\"orders_id\":\"1\",\"customer_title\":\"\\u6d4b\\u8bd5\",\"3\":\"\\u6807\\u51c6\\u7248\",\"4\":\"\\u6d4b\\u8bd5\",\"5\":\"\\u662f\",\"_token\":\"<KEY>\"}', '2020-07-21 12:11:05', '2020-07-21 12:11:05'); INSERT INTO `admin_operation_log` VALUES (588, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-21 12:11:06', '2020-07-21 12:11:06'); INSERT INTO `admin_operation_log` VALUES (589, 1, 'admin/orders/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 12:11:09', '2020-07-21 12:11:09'); INSERT INTO `admin_operation_log` VALUES (590, 1, 'admin/orders-details/1/edit', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 12:11:43', '2020-07-21 12:11:43'); INSERT INTO `admin_operation_log` VALUES (591, 1, 'admin/orders/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 12:11:45', '2020-07-21 12:11:45'); INSERT INTO `admin_operation_log` VALUES (592, 1, 'admin/orders/1', 'GET', '127.0.0.1', '[]', '2020-07-21 12:13:07', '2020-07-21 12:13:07'); INSERT INTO `admin_operation_log` VALUES (593, 1, 'admin/orders/1', 'GET', '127.0.0.1', '[]', '2020-07-21 12:16:15', '2020-07-21 12:16:15'); INSERT INTO `admin_operation_log` VALUES (594, 1, 'admin/orders/1', 'GET', '127.0.0.1', '[]', '2020-07-21 12:16:51', '2020-07-21 12:16:51'); INSERT INTO `admin_operation_log` VALUES (595, 1, 'admin/orders/1', 'GET', '127.0.0.1', '[]', '2020-07-21 12:17:42', '2020-07-21 12:17:42'); INSERT INTO `admin_operation_log` VALUES (596, 1, 'admin/orders/1', 'GET', '127.0.0.1', '[]', '2020-07-21 12:18:18', '2020-07-21 12:18:18'); INSERT INTO `admin_operation_log` VALUES (597, 1, 'admin/orders/1', 'GET', '127.0.0.1', '[]', '2020-07-21 12:20:00', '2020-07-21 12:20:00'); INSERT INTO `admin_operation_log` VALUES (598, 1, 'admin/orders/1', 'GET', '127.0.0.1', '[]', '2020-07-21 13:32:35', '2020-07-21 13:32:35'); INSERT INTO `admin_operation_log` VALUES (599, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 13:39:11', '2020-07-21 13:39:11'); INSERT INTO `admin_operation_log` VALUES (600, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-21 13:47:04', '2020-07-21 13:47:04'); INSERT INTO `admin_operation_log` VALUES (601, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-21 13:47:43', '2020-07-21 13:47:43'); INSERT INTO `admin_operation_log` VALUES (602, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-21 13:48:29', '2020-07-21 13:48:29'); INSERT INTO `admin_operation_log` VALUES (603, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-21 13:48:58', '2020-07-21 13:48:58'); INSERT INTO `admin_operation_log` VALUES (604, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-21 13:50:22', '2020-07-21 13:50:22'); INSERT INTO `admin_operation_log` VALUES (605, 1, 'admin/orders/1', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 14:13:57', '2020-07-21 14:13:57'); INSERT INTO `admin_operation_log` VALUES (606, 1, 'admin/orders/1', 'GET', '127.0.0.1', '[]', '2020-07-21 14:14:40', '2020-07-21 14:14:40'); INSERT INTO `admin_operation_log` VALUES (607, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-21 14:17:02', '2020-07-21 14:17:02'); INSERT INTO `admin_operation_log` VALUES (608, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 14:17:11', '2020-07-21 14:17:11'); INSERT INTO `admin_operation_log` VALUES (609, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-21 14:17:38', '2020-07-21 14:17:38'); INSERT INTO `admin_operation_log` VALUES (610, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-21 14:18:26', '2020-07-21 14:18:26'); INSERT INTO `admin_operation_log` VALUES (611, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-21 14:19:33', '2020-07-21 14:19:33'); INSERT INTO `admin_operation_log` VALUES (612, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-21 14:20:01', '2020-07-21 14:20:01'); INSERT INTO `admin_operation_log` VALUES (613, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-21 14:20:32', '2020-07-21 14:20:32'); INSERT INTO `admin_operation_log` VALUES (614, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-21 14:21:29', '2020-07-21 14:21:29'); INSERT INTO `admin_operation_log` VALUES (615, 1, 'admin/auth/roles', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 14:21:47', '2020-07-21 14:21:47'); INSERT INTO `admin_operation_log` VALUES (616, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 14:22:03', '2020-07-21 14:22:03'); INSERT INTO `admin_operation_log` VALUES (617, 1, 'admin/auth/roles', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 14:26:01', '2020-07-21 14:26:01'); INSERT INTO `admin_operation_log` VALUES (618, 1, 'admin/auth/roles/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 14:26:05', '2020-07-21 14:26:05'); INSERT INTO `admin_operation_log` VALUES (619, 1, 'admin/auth/roles', 'POST', '127.0.0.1', '{\"slug\":\"finance\",\"name\":\"\\u8d22\\u52a1\",\"permissions\":[\"2\",\"3\",\"4\",\"5\",null],\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/auth\\/roles\"}', '2020-07-21 14:26:22', '2020-07-21 14:26:22'); INSERT INTO `admin_operation_log` VALUES (620, 1, 'admin/auth/roles', 'GET', '127.0.0.1', '[]', '2020-07-21 14:26:23', '2020-07-21 14:26:23'); INSERT INTO `admin_operation_log` VALUES (621, 1, 'admin/auth/roles/create', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 14:26:28', '2020-07-21 14:26:28'); INSERT INTO `admin_operation_log` VALUES (622, 1, 'admin/auth/roles', 'POST', '127.0.0.1', '{\"slug\":\"check\",\"name\":\"\\u8d28\\u68c0\",\"permissions\":[\"2\",\"3\",\"4\",\"5\",null],\"_token\":\"<KEY>\",\"_previous_\":\"http:\\/\\/newoa.test\\/admin\\/auth\\/roles\"}', '2020-07-21 14:26:59', '2020-07-21 14:26:59'); INSERT INTO `admin_operation_log` VALUES (623, 1, 'admin/auth/roles', 'GET', '127.0.0.1', '[]', '2020-07-21 14:27:00', '2020-07-21 14:27:00'); INSERT INTO `admin_operation_log` VALUES (624, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 14:37:45', '2020-07-21 14:37:45'); INSERT INTO `admin_operation_log` VALUES (625, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\",\"customer_title\":null,\"product_id\":\"3\",\"start_time\":{\"start\":null,\"end\":null},\"end_time\":{\"start\":null,\"end\":null},\"admin_user_id\":null}', '2020-07-21 14:37:53', '2020-07-21 14:37:53'); INSERT INTO `admin_operation_log` VALUES (626, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\",\"customer_title\":null,\"product_id\":\"2\",\"start_time\":{\"start\":null,\"end\":null},\"end_time\":{\"start\":null,\"end\":null},\"admin_user_id\":null}', '2020-07-21 14:37:56', '2020-07-21 14:37:56'); INSERT INTO `admin_operation_log` VALUES (627, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\",\"customer_title\":\"cas\",\"product_id\":null,\"start_time\":{\"start\":null,\"end\":null},\"end_time\":{\"start\":null,\"end\":null},\"admin_user_id\":null}', '2020-07-21 14:38:04', '2020-07-21 14:38:04'); INSERT INTO `admin_operation_log` VALUES (628, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\",\"customer_title\":\"\\u6d4b\\u8bd5\",\"product_id\":null,\"start_time\":{\"start\":null,\"end\":null},\"end_time\":{\"start\":null,\"end\":null},\"admin_user_id\":null}', '2020-07-21 14:38:08', '2020-07-21 14:38:08'); INSERT INTO `admin_operation_log` VALUES (629, 1, 'admin/orders', 'GET', '127.0.0.1', '{\"_pjax\":\"#pjax-container\"}', '2020-07-21 14:38:13', '2020-07-21 14:38:13'); INSERT INTO `admin_operation_log` VALUES (630, 1, 'admin/orders', 'GET', '127.0.0.1', '[]', '2020-07-21 14:39:37', '2020-07-21 14:39:37'); -- ---------------------------- -- Table structure for admin_permissions -- ---------------------------- DROP TABLE IF EXISTS `admin_permissions`; CREATE TABLE `admin_permissions` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `slug` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `http_method` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, `http_path` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL, `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `admin_permissions_name_unique`(`name`) USING BTREE, UNIQUE INDEX `admin_permissions_slug_unique`(`slug`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of admin_permissions -- ---------------------------- INSERT INTO `admin_permissions` VALUES (1, 'All permission', '*', '', '*', NULL, NULL); INSERT INTO `admin_permissions` VALUES (2, 'Dashboard', 'dashboard', 'GET', '/', NULL, NULL); INSERT INTO `admin_permissions` VALUES (3, 'Login', 'auth.login', '', '/auth/login\r\n/auth/logout', NULL, NULL); INSERT INTO `admin_permissions` VALUES (4, 'User setting', 'auth.setting', 'GET,PUT', '/auth/setting', NULL, NULL); INSERT INTO `admin_permissions` VALUES (5, 'Auth management', 'auth.management', '', '/auth/roles\r\n/auth/permissions\r\n/auth/menu\r\n/auth/logs', NULL, NULL); -- ---------------------------- -- Table structure for admin_role_menu -- ---------------------------- DROP TABLE IF EXISTS `admin_role_menu`; CREATE TABLE `admin_role_menu` ( `role_id` int(11) NOT NULL, `menu_id` int(11) NOT NULL, `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, INDEX `admin_role_menu_role_id_menu_id_index`(`role_id`, `menu_id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of admin_role_menu -- ---------------------------- INSERT INTO `admin_role_menu` VALUES (1, 2, NULL, NULL); INSERT INTO `admin_role_menu` VALUES (1, 21, NULL, NULL); -- ---------------------------- -- Table structure for admin_role_permissions -- ---------------------------- DROP TABLE IF EXISTS `admin_role_permissions`; CREATE TABLE `admin_role_permissions` ( `role_id` int(11) NOT NULL, `permission_id` int(11) NOT NULL, `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, INDEX `admin_role_permissions_role_id_permission_id_index`(`role_id`, `permission_id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of admin_role_permissions -- ---------------------------- INSERT INTO `admin_role_permissions` VALUES (1, 1, NULL, NULL); INSERT INTO `admin_role_permissions` VALUES (2, 2, NULL, NULL); INSERT INTO `admin_role_permissions` VALUES (2, 3, NULL, NULL); INSERT INTO `admin_role_permissions` VALUES (2, 4, NULL, NULL); INSERT INTO `admin_role_permissions` VALUES (2, 5, NULL, NULL); INSERT INTO `admin_role_permissions` VALUES (3, 2, NULL, NULL); INSERT INTO `admin_role_permissions` VALUES (3, 3, NULL, NULL); INSERT INTO `admin_role_permissions` VALUES (3, 4, NULL, NULL); INSERT INTO `admin_role_permissions` VALUES (3, 5, NULL, NULL); INSERT INTO `admin_role_permissions` VALUES (4, 2, NULL, NULL); INSERT INTO `admin_role_permissions` VALUES (4, 3, NULL, NULL); INSERT INTO `admin_role_permissions` VALUES (4, 4, NULL, NULL); INSERT INTO `admin_role_permissions` VALUES (4, 5, NULL, NULL); INSERT INTO `admin_role_permissions` VALUES (5, 2, NULL, NULL); INSERT INTO `admin_role_permissions` VALUES (5, 3, NULL, NULL); INSERT INTO `admin_role_permissions` VALUES (5, 4, NULL, NULL); INSERT INTO `admin_role_permissions` VALUES (5, 5, NULL, NULL); -- ---------------------------- -- Table structure for admin_role_users -- ---------------------------- DROP TABLE IF EXISTS `admin_role_users`; CREATE TABLE `admin_role_users` ( `role_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, INDEX `admin_role_users_role_id_user_id_index`(`role_id`, `user_id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of admin_role_users -- ---------------------------- INSERT INTO `admin_role_users` VALUES (1, 1, NULL, NULL); INSERT INTO `admin_role_users` VALUES (2, 2, NULL, NULL); -- ---------------------------- -- Table structure for admin_roles -- ---------------------------- DROP TABLE IF EXISTS `admin_roles`; CREATE TABLE `admin_roles` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `slug` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `admin_roles_name_unique`(`name`) USING BTREE, UNIQUE INDEX `admin_roles_slug_unique`(`slug`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of admin_roles -- ---------------------------- INSERT INTO `admin_roles` VALUES (1, 'Administrator', 'administrator', '2020-06-29 06:05:50', '2020-06-29 06:05:50'); INSERT INTO `admin_roles` VALUES (2, '商务部', 'commerce', '2020-07-20 14:40:53', '2020-07-20 14:40:53'); INSERT INTO `admin_roles` VALUES (3, '销售', 'sales', '2020-07-20 18:01:45', '2020-07-20 18:01:45'); INSERT INTO `admin_roles` VALUES (4, '财务', 'finance', '2020-07-21 14:26:22', '2020-07-21 14:26:22'); INSERT INTO `admin_roles` VALUES (5, '质检', 'check', '2020-07-21 14:26:59', '2020-07-21 14:26:59'); -- ---------------------------- -- Table structure for admin_user_permissions -- ---------------------------- DROP TABLE IF EXISTS `admin_user_permissions`; CREATE TABLE `admin_user_permissions` ( `user_id` int(11) NOT NULL, `permission_id` int(11) NOT NULL, `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, INDEX `admin_user_permissions_user_id_permission_id_index`(`user_id`, `permission_id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for admin_users -- ---------------------------- DROP TABLE IF EXISTS `admin_users`; CREATE TABLE `admin_users` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '真实姓名', `username` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户名', `password` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '密码', `sex` tinyint(4) NOT NULL DEFAULT 0 COMMENT '性别: 0:男 1:女', `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '手机号', `avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '头像', `signed` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '签名', `birthday` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '生日', `is_job` tinyint(4) NOT NULL DEFAULT 0 COMMENT '在职状态: 0:在职 1:离职', `dept_id` int(10) NULL DEFAULT NULL COMMENT '所属部门', `entry_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '入职时间', `quit_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '离职时间', `open_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '微信openid', `remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, `deleted_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `admin_users_username_unique`(`username`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of admin_users -- ---------------------------- INSERT INTO `admin_users` VALUES (1, 'Administrator', 'admin', '$2y$10$.RsLC15UW1eP1WaUQxLDUu9XUxTfRa7QnfYOI2HsY6Q/NCEEIQIU6', 0, '15700064975', NULL, 'images/v2-877b9c8a401afed00d37a2ba5e3009d5_r.jpg', '1995年11月05日', 0, NULL, '2020年07月16日', NULL, NULL, 'sIPPBMXnHJAq33vpTAGW4ESAtH9O94Nh4SgG2EYflNauQStPA8NYJKJuWc4B', '2020-06-29 06:05:50', '2020-07-16 18:31:10', NULL); INSERT INTO `admin_users` VALUES (2, '杨佳敏', '杨佳敏', '$2y$10$7Fn6UC6ZySU4Bmo26tCqs.xpcSJZwaZ.R4MSfYGySOTjEGgI.pwZ6', 1, '17603245687', NULL, 'images/杨佳敏.jpg', '1993年10月13日', 0, 2, '2020年07月20日', NULL, NULL, NULL, '2020-07-20 14:36:49', '2020-07-20 14:36:49', NULL); -- ---------------------------- -- Table structure for card_template -- ---------------------------- DROP TABLE IF EXISTS `card_template`; CREATE TABLE `card_template` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键id', `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '模板标题', `img_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '模板图片地址', `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, `deleted_at` timestamp(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0), PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '名片模板表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for channel -- ---------------------------- DROP TABLE IF EXISTS `channel`; CREATE TABLE `channel` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键id', `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '渠道标题', `PID` int(11) NOT NULL DEFAULT 0 COMMENT '父级ID', `sort` int(11) NOT NULL DEFAULT 1 COMMENT '排序', `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, `deleted_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '渠道管理' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of channel -- ---------------------------- INSERT INTO `channel` VALUES (1, '独立开发', 0, 1, '2020-07-20 14:27:48', '2020-07-20 14:27:48', NULL); INSERT INTO `channel` VALUES (2, '广告推广', 0, 1, '2020-07-20 14:27:59', '2020-07-20 14:27:59', NULL); INSERT INTO `channel` VALUES (3, '客户介绍', 0, 1, '2020-07-20 14:28:08', '2020-07-20 14:28:08', NULL); INSERT INTO `channel` VALUES (4, '促销活动', 0, 1, '2020-07-20 14:28:16', '2020-07-20 14:28:16', NULL); INSERT INTO `channel` VALUES (5, '公开招标', 0, 1, '2020-07-20 14:28:24', '2020-07-20 14:28:24', NULL); INSERT INTO `channel` VALUES (6, '电话来访', 0, 1, '2020-07-20 14:28:31', '2020-07-20 14:28:31', NULL); INSERT INTO `channel` VALUES (7, '互联网', 0, 1, '2020-07-20 14:28:39', '2020-07-20 14:28:39', NULL); INSERT INTO `channel` VALUES (8, '老客户', 0, 1, '2020-07-20 14:28:46', '2020-07-20 14:28:46', NULL); INSERT INTO `channel` VALUES (9, '合作伙伴', 0, 1, '2020-07-20 14:28:53', '2020-07-20 14:28:53', NULL); INSERT INTO `channel` VALUES (10, '公司客户', 0, 1, '2020-07-20 14:29:00', '2020-07-20 14:29:00', NULL); -- ---------------------------- -- Table structure for customer -- ---------------------------- DROP TABLE IF EXISTS `customer`; CREATE TABLE `customer` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键id', `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '公司名称', `type` tinyint(4) NOT NULL DEFAULT 0 COMMENT '客户类型 0:个人 1:企业', `address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '公司地址', `is_agent` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否代理 0:否 1:是', `channel_id` int(11) NULL DEFAULT NULL COMMENT '客户来源', `industry_id` int(11) NULL DEFAULT NULL COMMENT '所属行业ID', `website` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '网址', `remark` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '备注', `owner_user_id` int(11) NOT NULL DEFAULT 1 COMMENT '所属销售', `last_user_id` int(11) NOT NULL DEFAULT 1 COMMENT '最近跟进销售', `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, `deleted_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '客户管理表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of customer -- ---------------------------- INSERT INTO `customer` VALUES (1, '测试', 1, '中心场馆', 0, 2, 1, NULL, NULL, 1, 2, '2020-07-20 17:16:55', '2020-07-20 18:24:27', NULL); -- ---------------------------- -- Table structure for customer_contact -- ---------------------------- DROP TABLE IF EXISTS `customer_contact`; CREATE TABLE `customer_contact` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键id', `customer_id` int(11) NOT NULL COMMENT '客户ID', `customer_demand_id` int(11) NOT NULL COMMENT '客户需求ID', `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '联系人名称', `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '联系电话', `is_first` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否是第一联系人 0:否 1:是', `open_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '微信openId', `headImgUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '头像', `sex` tinyint(4) NOT NULL COMMENT '性别', `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, `deleted_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '客户联系人表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for customer_contact_card -- ---------------------------- DROP TABLE IF EXISTS `customer_contact_card`; CREATE TABLE `customer_contact_card` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键id', `customer_contact_id` int(11) NOT NULL COMMENT '联系人ID', `card_template_id` int(11) NOT NULL COMMENT '名片模板ID', `img_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '背景图地址', `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, `deleted_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '联系人名片表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for customer_demand -- ---------------------------- DROP TABLE IF EXISTS `customer_demand`; CREATE TABLE `customer_demand` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键id', `customer_id` int(11) NOT NULL COMMENT '客户ID', `demand` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '客户需求', `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, `deleted_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '客户需求表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of customer_demand -- ---------------------------- INSERT INTO `customer_demand` VALUES (1, 1, '测试', '2020-07-20 18:42:57', '2020-07-20 18:42:57', NULL); -- ---------------------------- -- Table structure for department -- ---------------------------- DROP TABLE IF EXISTS `department`; CREATE TABLE `department` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键id', `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '部门名称', `PID` int(11) NOT NULL DEFAULT 0 COMMENT '父级ID', `sort` int(11) NOT NULL DEFAULT 1 COMMENT '排序', `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, `deleted_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '部门管理' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of department -- ---------------------------- INSERT INTO `department` VALUES (1, '运维部', 0, 1, '2020-07-20 14:24:43', '2020-07-20 14:24:43', NULL); INSERT INTO `department` VALUES (2, '商务部', 0, 1, '2020-07-20 14:24:55', '2020-07-20 14:24:55', NULL); INSERT INTO `department` VALUES (3, '销售部', 0, 1, '2020-07-20 14:25:07', '2020-07-20 14:25:07', NULL); INSERT INTO `department` VALUES (4, '销售一部', 3, 1, '2020-07-20 14:25:24', '2020-07-20 14:25:24', NULL); INSERT INTO `department` VALUES (5, '销售二部', 3, 1, '2020-07-20 14:25:37', '2020-07-20 14:25:37', NULL); INSERT INTO `department` VALUES (6, '销售三部', 3, 1, '2020-07-20 14:25:48', '2020-07-20 14:25:48', NULL); -- ---------------------------- -- Table structure for failed_jobs -- ---------------------------- DROP TABLE IF EXISTS `failed_jobs`; CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `connection` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for industry -- ---------------------------- DROP TABLE IF EXISTS `industry`; CREATE TABLE `industry` ( `id` int(11) NOT NULL AUTO_INCREMENT, `IndustryCode` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `IndustryName` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `IndustryState` tinyint(4) NULL DEFAULT NULL, `ParentID` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1773 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of industry -- ---------------------------- INSERT INTO `industry` VALUES (1, 'A', '农、林、牧、渔业', 1, NULL); INSERT INTO `industry` VALUES (2, '01', '农业', 1, 'A'); INSERT INTO `industry` VALUES (3, '011', '谷物种植', 1, '01'); INSERT INTO `industry` VALUES (4, '0111', '稻谷种植', 1, '011'); INSERT INTO `industry` VALUES (5, '0112', '小麦种植', 1, '011'); INSERT INTO `industry` VALUES (6, '0113', '玉米种植', 1, '011'); INSERT INTO `industry` VALUES (7, '0119', '其他谷物种植', 1, '011'); INSERT INTO `industry` VALUES (8, '012', '豆类、油料和薯类种植', 1, '01'); INSERT INTO `industry` VALUES (9, '0121', '豆类种植', 1, '012'); INSERT INTO `industry` VALUES (10, '0122', '油料种植', 1, '012'); INSERT INTO `industry` VALUES (11, '0123', '薯类种植', 1, '012'); INSERT INTO `industry` VALUES (12, '013', '棉、麻、糖、烟草种植', 1, '01'); INSERT INTO `industry` VALUES (13, '0131', '棉花种植', 1, '013'); INSERT INTO `industry` VALUES (14, '0132', '麻类种植', 1, '013'); INSERT INTO `industry` VALUES (15, '0133', '糖料种植', 1, '013'); INSERT INTO `industry` VALUES (16, '0134', '烟草种植', 1, '013'); INSERT INTO `industry` VALUES (17, '014', '蔬菜、食用菌及园艺作物种植', 1, '01'); INSERT INTO `industry` VALUES (18, '0141', '蔬菜种植', 1, '014'); INSERT INTO `industry` VALUES (19, '0142', '食用菌种植', 1, '014'); INSERT INTO `industry` VALUES (20, '0143', '花卉种植', 1, '014'); INSERT INTO `industry` VALUES (21, '0149', '其他园艺作物种植', 1, '014'); INSERT INTO `industry` VALUES (22, '015', '水果种植', 1, '01'); INSERT INTO `industry` VALUES (23, '0151', '仁果类和核果类水果种植', 1, '015'); INSERT INTO `industry` VALUES (24, '0152', '葡萄种植', 1, '015'); INSERT INTO `industry` VALUES (25, '0153', '柑橘类种植', 1, '015'); INSERT INTO `industry` VALUES (26, '0154', '香蕉等亚热带水果种植', 1, '015'); INSERT INTO `industry` VALUES (27, '0159', '其他水果种植', 1, '015'); INSERT INTO `industry` VALUES (28, '016', '坚果、含油果、香料和饮料作物种植', 1, '01'); INSERT INTO `industry` VALUES (29, '0161', '坚果种植', 1, '016'); INSERT INTO `industry` VALUES (30, '0162', '含油果种植', 1, '016'); INSERT INTO `industry` VALUES (31, '0163', '香料作物种植', 1, '016'); INSERT INTO `industry` VALUES (32, '0164', '茶叶种植', 1, '016'); INSERT INTO `industry` VALUES (33, '0169', '其他饮料作物种植', 1, '016'); INSERT INTO `industry` VALUES (34, '017', '中药材种植', 1, '01'); INSERT INTO `industry` VALUES (35, '0171', '中草药种植', 1, '017'); INSERT INTO `industry` VALUES (36, '0179', '其他中药材种植', 1, '017'); INSERT INTO `industry` VALUES (37, '018', '草种植及割草', 1, '01'); INSERT INTO `industry` VALUES (38, '0181', '草种植', 1, '018'); INSERT INTO `industry` VALUES (39, '0182', '天然草原割草', 1, '018'); INSERT INTO `industry` VALUES (40, '0190', '其他农业', 1, '01'); INSERT INTO `industry` VALUES (41, '02', '林业', 1, 'A'); INSERT INTO `industry` VALUES (42, '021', '林木育种和育苗', 1, '02'); INSERT INTO `industry` VALUES (43, '0211', '林木育种', 1, '021'); INSERT INTO `industry` VALUES (44, '0212', '林木育苗', 1, '021'); INSERT INTO `industry` VALUES (45, '0220', '造林和更新', 1, '02'); INSERT INTO `industry` VALUES (46, '023', '森林经营、管护和改培', 1, '02'); INSERT INTO `industry` VALUES (47, '0231', '森林经营和管护', 1, '023'); INSERT INTO `industry` VALUES (48, '0232', '森林改培', 1, '023'); INSERT INTO `industry` VALUES (49, '024', '木材和竹材采运', 1, '02'); INSERT INTO `industry` VALUES (50, '0241', '木材采运', 1, '024'); INSERT INTO `industry` VALUES (51, '0242', '竹材采运', 1, '024'); INSERT INTO `industry` VALUES (52, '025', '林产品采集', 1, '02'); INSERT INTO `industry` VALUES (53, '0251', '木竹材林产品采集', 1, '025'); INSERT INTO `industry` VALUES (54, '0252', '非木竹材林产品采集', 1, '025'); INSERT INTO `industry` VALUES (55, '03', '畜牧业', 1, 'A'); INSERT INTO `industry` VALUES (56, '031', '牲畜饲养', 1, '03'); INSERT INTO `industry` VALUES (57, '0311', '牛的饲养', 1, '031'); INSERT INTO `industry` VALUES (58, '0312', '马的饲养', 1, '031'); INSERT INTO `industry` VALUES (59, '0313', '猪的饲养', 1, '031'); INSERT INTO `industry` VALUES (60, '0314', '羊的饲养', 1, '031'); INSERT INTO `industry` VALUES (61, '0315', '骆驼饲养', 1, '031'); INSERT INTO `industry` VALUES (62, '0319', '其他牲畜饲养', 1, '031'); INSERT INTO `industry` VALUES (63, '032', '家禽饲养', 1, '03'); INSERT INTO `industry` VALUES (64, '0321', '鸡的饲养', 1, '032'); INSERT INTO `industry` VALUES (65, '0322', '鸭的饲养', 1, '032'); INSERT INTO `industry` VALUES (66, '0323', '鹅的饲养', 1, '032'); INSERT INTO `industry` VALUES (67, '0329', '其他家禽饲养', 1, '032'); INSERT INTO `industry` VALUES (68, '0330', '狩猎和捕捉动物', 1, '03'); INSERT INTO `industry` VALUES (69, '039', '其他畜牧业', 1, '03'); INSERT INTO `industry` VALUES (70, '0391', '兔的饲养', 1, '039'); INSERT INTO `industry` VALUES (71, '0392', '蜜蜂饲养', 1, '039'); INSERT INTO `industry` VALUES (72, '0399', '其他未列明畜牧业', 1, '039'); INSERT INTO `industry` VALUES (73, '04', '渔业', 1, 'A'); INSERT INTO `industry` VALUES (74, '041', '水产养殖', 1, '04'); INSERT INTO `industry` VALUES (75, '0411', '海水养殖', 1, '041'); INSERT INTO `industry` VALUES (76, '0412', '内陆养殖', 1, '041'); INSERT INTO `industry` VALUES (77, '042', '水产捕捞', 1, '04'); INSERT INTO `industry` VALUES (78, '0421', '海水捕捞', 1, '042'); INSERT INTO `industry` VALUES (79, '0422', '内陆捕捞', 1, '042'); INSERT INTO `industry` VALUES (80, '05', '农、林、牧、渔专业及辅助性活动', 1, 'A'); INSERT INTO `industry` VALUES (81, '051', '农业专业及辅助性活动', 1, '05'); INSERT INTO `industry` VALUES (82, '0511', '种子种苗培育活动', 1, '051'); INSERT INTO `industry` VALUES (83, '0512', '农业机械活动', 1, '051'); INSERT INTO `industry` VALUES (84, '0513', '灌溉活动', 1, '051'); INSERT INTO `industry` VALUES (85, '0514', '农产品初加工活动', 1, '051'); INSERT INTO `industry` VALUES (86, '0515', '农作物病虫害防治活动', 1, '051'); INSERT INTO `industry` VALUES (87, '0519', '其他农业专业及辅助性活动', 1, '051'); INSERT INTO `industry` VALUES (88, '052', '林业专业及辅助性活动', 1, '05'); INSERT INTO `industry` VALUES (89, '0521', '林业有害生物防治活动', 1, '052'); INSERT INTO `industry` VALUES (90, '0522', '森林防火活动', 1, '052'); INSERT INTO `industry` VALUES (91, '0523', '林产品初级加工活动', 1, '052'); INSERT INTO `industry` VALUES (92, '0529', '其他林业专业及辅助性活动', 1, '052'); INSERT INTO `industry` VALUES (93, '053', '畜牧专业及辅助性活动', 1, '05'); INSERT INTO `industry` VALUES (94, '0531', '畜牧良种繁殖活动', 1, '053'); INSERT INTO `industry` VALUES (95, '0532', '畜禽粪污处理活动', 1, '053'); INSERT INTO `industry` VALUES (96, '0539', '其他畜牧专业及辅助性活动', 1, '053'); INSERT INTO `industry` VALUES (97, '054', '渔业专业及辅助性活动', 1, '05'); INSERT INTO `industry` VALUES (98, '0541', '鱼苗及鱼种场活动', 1, '054'); INSERT INTO `industry` VALUES (99, '0549', '其他渔业专业及辅助性活动', 1, '054'); INSERT INTO `industry` VALUES (100, 'B', '采矿业', 1, NULL); INSERT INTO `industry` VALUES (101, '06', '煤炭开采和洗选业', 1, 'B'); INSERT INTO `industry` VALUES (102, '0610', '烟煤和无烟煤开采洗选', 1, '06'); INSERT INTO `industry` VALUES (103, '0620', '褐煤开采洗选', 1, '06'); INSERT INTO `industry` VALUES (104, '0690', '其他煤炭采选', 1, '06'); INSERT INTO `industry` VALUES (105, '07', '石油和天然气开采业', 1, 'B'); INSERT INTO `industry` VALUES (106, '071', '石油开采', 1, '07'); INSERT INTO `industry` VALUES (107, '0711', '陆地石油开采', 1, '071'); INSERT INTO `industry` VALUES (108, '0712', '海洋石油开采', 1, '071'); INSERT INTO `industry` VALUES (109, '072', '天然气开采', 1, '07'); INSERT INTO `industry` VALUES (110, '0721', '陆地天然气开采', 1, '072'); INSERT INTO `industry` VALUES (111, '0722', '海洋天然气及可燃冰开采', 1, '072'); INSERT INTO `industry` VALUES (112, '08', '黑色金属矿采选业', 1, 'B'); INSERT INTO `industry` VALUES (113, '0810', '铁矿采选', 1, '08'); INSERT INTO `industry` VALUES (114, '0820', '锰矿、铬矿采选', 1, '08'); INSERT INTO `industry` VALUES (115, '0890', '其他黑色金属矿采选', 1, '08'); INSERT INTO `industry` VALUES (116, '09', '有色金属矿采选业', 1, 'B'); INSERT INTO `industry` VALUES (117, '091', '常用有色金属矿采选', 1, '09'); INSERT INTO `industry` VALUES (118, '0911', '铜矿采选', 1, '091'); INSERT INTO `industry` VALUES (119, '0912', '铅锌矿采选', 1, '091'); INSERT INTO `industry` VALUES (120, '0913', '镍钴矿采选', 1, '091'); INSERT INTO `industry` VALUES (121, '0914', '锡矿采选', 1, '091'); INSERT INTO `industry` VALUES (122, '0915', '锑矿采选', 1, '091'); INSERT INTO `industry` VALUES (123, '0916', '铝矿采选', 1, '091'); INSERT INTO `industry` VALUES (124, '0917', '镁矿采选', 1, '091'); INSERT INTO `industry` VALUES (125, '0919', '其他常用有色金属矿采选', 1, '091'); INSERT INTO `industry` VALUES (126, '092', '贵金属矿采选', 1, '09'); INSERT INTO `industry` VALUES (127, '0921', '金矿采选', 1, '092'); INSERT INTO `industry` VALUES (128, '0922', '银矿采选', 1, '092'); INSERT INTO `industry` VALUES (129, '0929', '其他贵金属矿采选', 1, '092'); INSERT INTO `industry` VALUES (130, '093', '稀有稀土金属矿采选', 1, '09'); INSERT INTO `industry` VALUES (131, '0931', '钨钼矿采选', 1, '093'); INSERT INTO `industry` VALUES (132, '0932', '稀土金属矿采选', 1, '093'); INSERT INTO `industry` VALUES (133, '0933', '放射性金属矿采选', 1, '093'); INSERT INTO `industry` VALUES (134, '0939', '其他稀有金属矿采选', 1, '093'); INSERT INTO `industry` VALUES (135, '10', '非金属矿采选业', 1, 'B'); INSERT INTO `industry` VALUES (136, '101', '土砂石开采', 1, '10'); INSERT INTO `industry` VALUES (137, '1011', '石灰石、石膏开采', 1, '101'); INSERT INTO `industry` VALUES (138, '1012', '建筑装饰用石开采', 1, '101'); INSERT INTO `industry` VALUES (139, '1013', '耐火土石开采', 1, '101'); INSERT INTO `industry` VALUES (140, '1019', '粘土及其他土砂石开采', 1, '101'); INSERT INTO `industry` VALUES (141, '1020', '化学矿开采', 1, '10'); INSERT INTO `industry` VALUES (142, '1030', '采盐', 1, '10'); INSERT INTO `industry` VALUES (143, '109', '石棉及其他非金属矿采选', 1, '10'); INSERT INTO `industry` VALUES (144, '1091', '石棉、云母矿采选', 1, '109'); INSERT INTO `industry` VALUES (145, '1092', '石墨、滑石采选', 1, '109'); INSERT INTO `industry` VALUES (146, '1093', '宝石、玉石采选', 1, '109'); INSERT INTO `industry` VALUES (147, '1099', '其他未列明非金属矿采选', 1, '109'); INSERT INTO `industry` VALUES (148, '11', '开采专业及辅助性活动', 1, 'B'); INSERT INTO `industry` VALUES (149, '1110', '煤炭开采和洗选专业及辅助性活动', 1, '11'); INSERT INTO `industry` VALUES (150, '1120', '石油和天然气开采专业及辅助性活动', 1, '11'); INSERT INTO `industry` VALUES (151, '1190', '其他开采专业及辅助性活动', 1, '11'); INSERT INTO `industry` VALUES (152, '12', '其他采矿业', 1, 'B'); INSERT INTO `industry` VALUES (153, '1200', '其他采矿业', 1, '12'); INSERT INTO `industry` VALUES (154, 'C', '制造业', 1, NULL); INSERT INTO `industry` VALUES (155, '13', '农副食品加工业', 1, 'C'); INSERT INTO `industry` VALUES (156, '131', '谷物磨制', 1, '13'); INSERT INTO `industry` VALUES (157, '1311', '稻谷加工', 1, '131'); INSERT INTO `industry` VALUES (158, '1312', '小麦加工', 1, '131'); INSERT INTO `industry` VALUES (159, '1313', '玉米加工', 1, '131'); INSERT INTO `industry` VALUES (160, '1314', '杂粮加工', 1, '131'); INSERT INTO `industry` VALUES (161, '1319', '其他谷物磨制', 1, '131'); INSERT INTO `industry` VALUES (162, '132', '饲料加工 ', 1, '13'); INSERT INTO `industry` VALUES (163, '1321', '宠物饲料加工', 1, '132'); INSERT INTO `industry` VALUES (164, '1329', '其他饲料加工', 1, '132'); INSERT INTO `industry` VALUES (165, '133', '植物油加工', 1, '13'); INSERT INTO `industry` VALUES (166, '1331', '食用植物油加工', 1, '133'); INSERT INTO `industry` VALUES (167, '1332', '非食用植物油加工', 1, '133'); INSERT INTO `industry` VALUES (168, '1340', '制糖业', 1, '13'); INSERT INTO `industry` VALUES (169, '135', '屠宰及肉类加工', 1, '13'); INSERT INTO `industry` VALUES (170, '1351', '牲畜屠宰', 1, '135'); INSERT INTO `industry` VALUES (171, '1352', '禽类屠宰', 1, '135'); INSERT INTO `industry` VALUES (172, '1353', '肉制品及副产品加工', 1, '135'); INSERT INTO `industry` VALUES (173, '136', '水产品加工', 1, '13'); INSERT INTO `industry` VALUES (174, '1361', '水产品冷冻加工', 1, '136'); INSERT INTO `industry` VALUES (175, '1362', '鱼糜制品及水产品干腌制加工', 1, '136'); INSERT INTO `industry` VALUES (176, '1363', '鱼油提取及制品制造', 1, '136'); INSERT INTO `industry` VALUES (177, '1369', '其他水产品加工', 1, '136'); INSERT INTO `industry` VALUES (178, '137', '蔬菜、菌类、水果和坚果加工', 1, '13'); INSERT INTO `industry` VALUES (179, '1371', '蔬菜加工', 1, '137'); INSERT INTO `industry` VALUES (180, '1372', '食用菌加工', 1, '137'); INSERT INTO `industry` VALUES (181, '1373', '水果和坚果加工', 1, '137'); INSERT INTO `industry` VALUES (182, '139', '其他农副食品加工', 1, '13'); INSERT INTO `industry` VALUES (183, '1391', '淀粉及淀粉制品制造', 1, '139'); INSERT INTO `industry` VALUES (184, '1392', '豆制品制造', 1, '139'); INSERT INTO `industry` VALUES (185, '1393', '蛋品加工', 1, '139'); INSERT INTO `industry` VALUES (186, '1399', '其他未列明农副食品加工', 1, '139'); INSERT INTO `industry` VALUES (187, '14', '食品制造业', 1, 'C'); INSERT INTO `industry` VALUES (188, '141', '焙烤食品制造', 1, '14'); INSERT INTO `industry` VALUES (189, '1411', '糕点、面包制造', 1, '141'); INSERT INTO `industry` VALUES (190, '1419', '饼干及其他焙烤食品制造', 1, '141'); INSERT INTO `industry` VALUES (191, '142', '糖果、巧克力及蜜饯制造', 1, '14'); INSERT INTO `industry` VALUES (192, '1421', '糖果、巧克力制造', 1, '142'); INSERT INTO `industry` VALUES (193, '1422', '蜜饯制作', 1, '142'); INSERT INTO `industry` VALUES (194, '143', '方便食品制造', 1, '14'); INSERT INTO `industry` VALUES (195, '1431', '米、面制品制造', 1, '143'); INSERT INTO `industry` VALUES (196, '1432', '速冻食品制造', 1, '143'); INSERT INTO `industry` VALUES (197, '1433', '方便面制造', 1, '143'); INSERT INTO `industry` VALUES (198, '1439', '其他方便食品制造', 1, '143'); INSERT INTO `industry` VALUES (199, '144', '乳制品制造', 1, '14'); INSERT INTO `industry` VALUES (200, '1441', '液体乳制造', 1, '144'); INSERT INTO `industry` VALUES (201, '1442', '乳粉制造', 1, '144'); INSERT INTO `industry` VALUES (202, '1449', '其他乳制品制造', 1, '144'); INSERT INTO `industry` VALUES (203, '145', '罐头食品制造', 1, '14'); INSERT INTO `industry` VALUES (204, '1451', '肉、禽类罐头制造', 1, '145'); INSERT INTO `industry` VALUES (205, '1452', '水产品罐头制造', 1, '145'); INSERT INTO `industry` VALUES (206, '1453', '蔬菜、水果罐头制造', 1, '145'); INSERT INTO `industry` VALUES (207, '1459', '其他罐头食品制造', 1, '145'); INSERT INTO `industry` VALUES (208, '146', '调味品、发酵制品制造', 1, '14'); INSERT INTO `industry` VALUES (209, '1461', '味精制造', 1, '146'); INSERT INTO `industry` VALUES (210, '1462', '酱油、食醋及类似制品制造', 1, '146'); INSERT INTO `industry` VALUES (211, '1469', '其他调味品、发酵制品制造', 1, '146'); INSERT INTO `industry` VALUES (212, '149', '其他食品制造', 1, '14'); INSERT INTO `industry` VALUES (213, '1491', '营养食品制造', 1, '149'); INSERT INTO `industry` VALUES (214, '1492', '保健食品制造', 1, '149'); INSERT INTO `industry` VALUES (215, '1493', '冷冻饮品及食用冰制造', 1, '149'); INSERT INTO `industry` VALUES (216, '1494', '盐加工 ', 1, '149'); INSERT INTO `industry` VALUES (217, '1495', '食品及饲料添加剂制造', 1, '149'); INSERT INTO `industry` VALUES (218, '1499', '其他未列明食品制造', 1, '149'); INSERT INTO `industry` VALUES (219, '15', '酒、饮料及精制茶制造业', 1, 'C'); INSERT INTO `industry` VALUES (220, '151', '酒的制造', 1, '15'); INSERT INTO `industry` VALUES (221, '1511', '酒精制造', 1, '151'); INSERT INTO `industry` VALUES (222, '1512', '白酒制造', 1, '151'); INSERT INTO `industry` VALUES (223, '1513', '啤酒制造', 1, '151'); INSERT INTO `industry` VALUES (224, '1514', '黄酒制造', 1, '151'); INSERT INTO `industry` VALUES (225, '1515', '葡萄酒制造', 1, '151'); INSERT INTO `industry` VALUES (226, '1519', '其他酒制造', 1, '151'); INSERT INTO `industry` VALUES (227, '152', '饮料制造', 1, '15'); INSERT INTO `industry` VALUES (228, '1521', '碳酸饮料制造', 1, '152'); INSERT INTO `industry` VALUES (229, '1522', '瓶(罐)装饮用水制造', 1, '152'); INSERT INTO `industry` VALUES (230, '1523', '果菜汁及果菜汁饮料制造', 1, '152'); INSERT INTO `industry` VALUES (231, '1524', '含乳饮料和植物蛋白饮料制造', 1, '152'); INSERT INTO `industry` VALUES (232, '1525', '固体饮料制造', 1, '152'); INSERT INTO `industry` VALUES (233, '1529', '茶饮料及其他饮料制造', 1, '152'); INSERT INTO `industry` VALUES (234, '1530', '精制茶加工', 1, '15'); INSERT INTO `industry` VALUES (235, '16', '烟草制品业 ', 1, 'C'); INSERT INTO `industry` VALUES (236, '1610', '烟叶复烤', 1, '16'); INSERT INTO `industry` VALUES (237, '1620', '卷烟制造', 1, '16'); INSERT INTO `industry` VALUES (238, '1690', '其他烟草制品制造', 1, '16'); INSERT INTO `industry` VALUES (239, '17', '纺织业', 1, 'C'); INSERT INTO `industry` VALUES (240, '171', '棉纺织及印染精加工', 1, '17'); INSERT INTO `industry` VALUES (241, '1711', '棉纺纱加工', 1, '171'); INSERT INTO `industry` VALUES (242, '1712', '棉织造加工', 1, '171'); INSERT INTO `industry` VALUES (243, '1713', '棉印染精加工', 1, '171'); INSERT INTO `industry` VALUES (244, '172', '毛纺织及染整精加工', 1, '17'); INSERT INTO `industry` VALUES (245, '1721', '毛条和毛纱线加工', 1, '172'); INSERT INTO `industry` VALUES (246, '1722', '毛织造加工', 1, '172'); INSERT INTO `industry` VALUES (247, '1723', '毛染整精加工', 1, '172'); INSERT INTO `industry` VALUES (248, '173', '麻纺织及染整精加工', 1, '17'); INSERT INTO `industry` VALUES (249, '1731', '麻纤维纺前加工和纺纱', 1, '173'); INSERT INTO `industry` VALUES (250, '1732', '麻织造加工', 1, '173'); INSERT INTO `industry` VALUES (251, '1733', '麻染整精加工', 1, '173'); INSERT INTO `industry` VALUES (252, '174', '丝绢纺织及印染精加工', 1, '17'); INSERT INTO `industry` VALUES (253, '1741', '缫丝加工', 1, '174'); INSERT INTO `industry` VALUES (254, '1742', '绢纺和丝织加工', 1, '174'); INSERT INTO `industry` VALUES (255, '1743', '丝印染精加工', 1, '174'); INSERT INTO `industry` VALUES (256, '175', '化纤织造及印染精加工', 1, '17'); INSERT INTO `industry` VALUES (257, '1751', '化纤织造加工', 1, '175'); INSERT INTO `industry` VALUES (258, '1752', '化纤织物染整精加工', 1, '175'); INSERT INTO `industry` VALUES (259, '176', '针织或钩针编织物及其制品制造', 1, '17'); INSERT INTO `industry` VALUES (260, '1761', '针织或钩针编织物织造', 1, '176'); INSERT INTO `industry` VALUES (261, '1762', '针织或钩针编织物印染精加工', 1, '176'); INSERT INTO `industry` VALUES (262, '1763', '针织或钩针编织品制造', 1, '176'); INSERT INTO `industry` VALUES (263, '177', '家用纺织制成品制造', 1, '17'); INSERT INTO `industry` VALUES (264, '1771', '床上用品制造', 1, '177'); INSERT INTO `industry` VALUES (265, '1772', '毛巾类制品制造', 1, '177'); INSERT INTO `industry` VALUES (266, '1773', '窗帘、布艺类产品制造', 1, '177'); INSERT INTO `industry` VALUES (267, '1779', '其他家用纺织制成品制造', 1, '177'); INSERT INTO `industry` VALUES (268, '178', '产业用纺织制成品制造', 1, '17'); INSERT INTO `industry` VALUES (269, '1781', '非织造布制造', 1, '178'); INSERT INTO `industry` VALUES (270, '1782', '绳、索、缆制造', 1, '178'); INSERT INTO `industry` VALUES (271, '1783', '纺织带和帘子布制造', 1, '178'); INSERT INTO `industry` VALUES (272, '1784', '篷、帆布制造', 1, '178'); INSERT INTO `industry` VALUES (273, '1789', '其他产业用纺织制成品制造', 1, '178'); INSERT INTO `industry` VALUES (274, '18', '纺织服装、服饰业', 1, 'C'); INSERT INTO `industry` VALUES (275, '181', '机织服装制造', 1, '18'); INSERT INTO `industry` VALUES (276, '1811', '运动机织服装制造', 1, '181'); INSERT INTO `industry` VALUES (277, '1819', '其他机织服装制造', 1, '181'); INSERT INTO `industry` VALUES (278, '182', '针织或钩针编织服装制造', 1, '18'); INSERT INTO `industry` VALUES (279, '1821', '运动休闲针织服装制造', 1, '182'); INSERT INTO `industry` VALUES (280, '1829', '其他针织或钩针编织服装制造', 1, '182'); INSERT INTO `industry` VALUES (281, '1830', '服饰制造', 1, '18'); INSERT INTO `industry` VALUES (282, '19', '皮革、毛皮、羽毛及其制品和制鞋业', 1, 'C'); INSERT INTO `industry` VALUES (283, '1910', '皮革鞣制加工', 1, '19'); INSERT INTO `industry` VALUES (284, '192', '皮革制品制造', 1, '19'); INSERT INTO `industry` VALUES (285, '1921', '皮革服装制造', 1, '192'); INSERT INTO `industry` VALUES (286, '1922', '皮箱、包(袋)制造', 1, '192'); INSERT INTO `industry` VALUES (287, '1923', '皮手套及皮装饰制品制造 ', 1, '192'); INSERT INTO `industry` VALUES (288, '1929', '其他皮革制品制造', 1, '192'); INSERT INTO `industry` VALUES (289, '193', '毛皮鞣制及制品加工', 1, '19'); INSERT INTO `industry` VALUES (290, '1931', '毛皮鞣制加工', 1, '193'); INSERT INTO `industry` VALUES (291, '1932', '毛皮服装加工', 1, '193'); INSERT INTO `industry` VALUES (292, '1939', '其他毛皮制品加工', 1, '193'); INSERT INTO `industry` VALUES (293, '194', '羽毛(绒)加工及制品制造', 1, '19'); INSERT INTO `industry` VALUES (294, '1941', '羽毛(绒)加工', 1, '194'); INSERT INTO `industry` VALUES (295, '1942', '羽毛(绒)制品加工', 1, '194'); INSERT INTO `industry` VALUES (296, '195', '制鞋业', 1, '19'); INSERT INTO `industry` VALUES (297, '1951', '纺织面料鞋制造', 1, '195'); INSERT INTO `industry` VALUES (298, '1952', '皮鞋制造', 1, '195'); INSERT INTO `industry` VALUES (299, '1953', '塑料鞋制造', 1, '195'); INSERT INTO `industry` VALUES (300, '1954', '橡胶鞋制造', 1, '195'); INSERT INTO `industry` VALUES (301, '1959', '其他制鞋业', 1, '195'); INSERT INTO `industry` VALUES (302, '20', '木材加工和木、竹、藤、棕、草制品业', 1, 'C'); INSERT INTO `industry` VALUES (303, '201', '木材加工', 1, '20'); INSERT INTO `industry` VALUES (304, '2011', '锯材加工', 1, '201'); INSERT INTO `industry` VALUES (305, '2012', '木片加工', 1, '201'); INSERT INTO `industry` VALUES (306, '2013', '单板加工', 1, '201'); INSERT INTO `industry` VALUES (307, '2019', '其他木材加工', 1, '201'); INSERT INTO `industry` VALUES (308, '202', '人造板制造', 1, '20'); INSERT INTO `industry` VALUES (309, '2021', '胶合板制造', 1, '202'); INSERT INTO `industry` VALUES (310, '2022', '纤维板制造', 1, '202'); INSERT INTO `industry` VALUES (311, '2023', '刨花板制造', 1, '202'); INSERT INTO `industry` VALUES (312, '2029', '其他人造板制造', 1, '202'); INSERT INTO `industry` VALUES (313, '203', '木制品制造', 1, '20'); INSERT INTO `industry` VALUES (314, '2031', '建筑用木料及木材组件加工', 1, '203'); INSERT INTO `industry` VALUES (315, '2032', '木门窗制造', 1, '203'); INSERT INTO `industry` VALUES (316, '2033', '木楼梯制造', 1, '203'); INSERT INTO `industry` VALUES (317, '2034', '木地板制造', 1, '203'); INSERT INTO `industry` VALUES (318, '2035', '木制容器制造', 1, '203'); INSERT INTO `industry` VALUES (319, '2039', '软木制品及其他木制品制造', 1, '203'); INSERT INTO `industry` VALUES (320, '204', '竹、藤、棕、草制品制造', 1, '20'); INSERT INTO `industry` VALUES (321, '2041', '竹制品制造', 1, '204'); INSERT INTO `industry` VALUES (322, '2042', '藤制品制造', 1, '204'); INSERT INTO `industry` VALUES (323, '2043', '棕制品制造', 1, '204'); INSERT INTO `industry` VALUES (324, '2049', '草及其他制品制造', 1, '204'); INSERT INTO `industry` VALUES (325, '21', '家具制造业 ', 1, 'C'); INSERT INTO `industry` VALUES (326, '2110', '木质家具制造', 1, '21'); INSERT INTO `industry` VALUES (327, '2120', '竹、藤家具制造', 1, '21'); INSERT INTO `industry` VALUES (328, '2130', '金属家具制造', 1, '21'); INSERT INTO `industry` VALUES (329, '2140', '塑料家具制造', 1, '21'); INSERT INTO `industry` VALUES (330, '2190', '其他家具制造', 1, '21'); INSERT INTO `industry` VALUES (331, '22', '造纸和纸制品业 ', 1, 'C'); INSERT INTO `industry` VALUES (332, '221', '纸浆制造', 1, '22'); INSERT INTO `industry` VALUES (333, '2211', '木竹浆制造', 1, '221'); INSERT INTO `industry` VALUES (334, '2212', '非木竹浆制造', 1, '221'); INSERT INTO `industry` VALUES (335, '222', '造纸', 1, '22'); INSERT INTO `industry` VALUES (336, '2221', '机制纸及纸板制造', 1, '222'); INSERT INTO `industry` VALUES (337, '2222', '手工纸制造', 1, '222'); INSERT INTO `industry` VALUES (338, '2223', '加工纸制造', 1, '222'); INSERT INTO `industry` VALUES (339, '223', '纸制品制造', 1, '22'); INSERT INTO `industry` VALUES (340, '2231', '纸和纸板容器制造', 1, '223'); INSERT INTO `industry` VALUES (341, '2239', '其他纸制品制造', 1, '223'); INSERT INTO `industry` VALUES (342, '23', '印刷和记录媒介复制业', 1, 'C'); INSERT INTO `industry` VALUES (343, '231', '印刷', 1, '23'); INSERT INTO `industry` VALUES (344, '2311', '书、报刊印刷', 1, '231'); INSERT INTO `industry` VALUES (345, '2312', '本册印制', 1, '231'); INSERT INTO `industry` VALUES (346, '2319', '包装装潢及其他印刷', 1, '231'); INSERT INTO `industry` VALUES (347, '2320', '装订及印刷相关服务', 1, '23'); INSERT INTO `industry` VALUES (348, '2330', '记录媒介复制', 1, '23'); INSERT INTO `industry` VALUES (349, '24', '文教、工美、体育和娱乐用品制造业', 1, 'C'); INSERT INTO `industry` VALUES (350, '241', '文教办公用品制造', 1, '24'); INSERT INTO `industry` VALUES (351, '2411', '文具制造', 1, '241'); INSERT INTO `industry` VALUES (352, '2412', '笔的制造', 1, '241'); INSERT INTO `industry` VALUES (353, '2413', '教学用模型及教具制造', 1, '241'); INSERT INTO `industry` VALUES (354, '2414', '墨水、墨汁制造', 1, '241'); INSERT INTO `industry` VALUES (355, '2419', '其他文教办公用品制造', 1, '241'); INSERT INTO `industry` VALUES (356, '242', '乐器制造', 1, '24'); INSERT INTO `industry` VALUES (357, '2421', '中乐器制造', 1, '242'); INSERT INTO `industry` VALUES (358, '2422', '西乐器制造', 1, '242'); INSERT INTO `industry` VALUES (359, '2423', '电子乐器制造', 1, '242'); INSERT INTO `industry` VALUES (360, '2429', '其他乐器及零件制造', 1, '242'); INSERT INTO `industry` VALUES (361, '243', '工艺美术及礼仪用品制造', 1, '24'); INSERT INTO `industry` VALUES (362, '2431', '雕塑工艺品制造', 1, '243'); INSERT INTO `industry` VALUES (363, '2432', '金属工艺品制造', 1, '243'); INSERT INTO `industry` VALUES (364, '2433', '漆器工艺品制造', 1, '243'); INSERT INTO `industry` VALUES (365, '2434', '花画工艺品制造', 1, '243'); INSERT INTO `industry` VALUES (366, '2435', '天然植物纤维编织工艺品制造', 1, '243'); INSERT INTO `industry` VALUES (367, '2436', '抽纱刺绣工艺品制造', 1, '243'); INSERT INTO `industry` VALUES (368, '2437', '地毯、挂毯制造', 1, '243'); INSERT INTO `industry` VALUES (369, '2438', '珠宝首饰及有关物品制造', 1, '243'); INSERT INTO `industry` VALUES (370, '2439', '其他工艺美术及礼仪用品制造', 1, '243'); INSERT INTO `industry` VALUES (371, '244', '体育用品制造', 1, '24'); INSERT INTO `industry` VALUES (372, '2441', '球类制造', 1, '244'); INSERT INTO `industry` VALUES (373, '2442', '专项运动器材及配件制造', 1, '244'); INSERT INTO `industry` VALUES (374, '2443', '健身器材制造', 1, '244'); INSERT INTO `industry` VALUES (375, '2444', '运动防护用具制造', 1, '244'); INSERT INTO `industry` VALUES (376, '2449', '其他体育用品制造', 1, '244'); INSERT INTO `industry` VALUES (377, '245', '玩具制造', 1, '24'); INSERT INTO `industry` VALUES (378, '2451', '电玩具制造', 1, '245'); INSERT INTO `industry` VALUES (379, '2452', '塑胶玩具制造', 1, '245'); INSERT INTO `industry` VALUES (380, '2453', '金属玩具制造', 1, '245'); INSERT INTO `industry` VALUES (381, '2454', '弹射玩具制造', 1, '245'); INSERT INTO `industry` VALUES (382, '2455', '娃娃玩具制造', 1, '245'); INSERT INTO `industry` VALUES (383, '2456', '儿童乘骑玩耍的童车类产品制造', 1, '245'); INSERT INTO `industry` VALUES (384, '2459', '其他玩具制造', 1, '245'); INSERT INTO `industry` VALUES (385, '246', '游艺器材及娱乐用品制造', 1, '24'); INSERT INTO `industry` VALUES (386, '2461', '露天游乐场所游乐设备制造', 1, '246'); INSERT INTO `industry` VALUES (387, '2462', '游艺用品及室内游艺器材制造', 1, '246'); INSERT INTO `industry` VALUES (388, '2469', '其他娱乐用品制造', 1, '246'); INSERT INTO `industry` VALUES (389, '25', '石油、煤炭及其他燃料加工业 ', 1, 'C'); INSERT INTO `industry` VALUES (390, '251', '精炼石油产品制造', 1, '25'); INSERT INTO `industry` VALUES (391, '2511', '原油加工及石油制品制造', 1, '251'); INSERT INTO `industry` VALUES (392, '2519', '其他原油制造', 1, '251'); INSERT INTO `industry` VALUES (393, '252', '煤炭加工', 1, '25'); INSERT INTO `industry` VALUES (394, '2521', '炼焦', 1, '252'); INSERT INTO `industry` VALUES (395, '2522', '煤制合成气生产', 1, '252'); INSERT INTO `industry` VALUES (396, '2523', '煤制液体燃料生产', 1, '252'); INSERT INTO `industry` VALUES (397, '2524', '煤制品制造', 1, '252'); INSERT INTO `industry` VALUES (398, '2529', '其他煤炭加工', 1, '252'); INSERT INTO `industry` VALUES (399, '2530', '核燃料加工', 1, '25'); INSERT INTO `industry` VALUES (400, '254', '生物质燃料加工', 1, '25'); INSERT INTO `industry` VALUES (401, '2541', '生物质液体燃料生产', 1, '254'); INSERT INTO `industry` VALUES (402, '2542', '生物质致密成型燃料加工', 1, '254'); INSERT INTO `industry` VALUES (403, '26', '化学原料和化学制品制造业', 1, 'C'); INSERT INTO `industry` VALUES (404, '261', '基础化学原料制造', 1, '26'); INSERT INTO `industry` VALUES (405, '2611', '无机酸制造', 1, '261'); INSERT INTO `industry` VALUES (406, '2612', '无机碱制造', 1, '261'); INSERT INTO `industry` VALUES (407, '2613', '无机盐制造', 1, '261'); INSERT INTO `industry` VALUES (408, '2614', '有机化学原料制造', 1, '261'); INSERT INTO `industry` VALUES (409, '2619', '其他基础化学原料制造', 1, '261'); INSERT INTO `industry` VALUES (410, '262', '肥料制造', 1, '26'); INSERT INTO `industry` VALUES (411, '2621', '氮肥制造', 1, '262'); INSERT INTO `industry` VALUES (412, '2622', '磷肥制造', 1, '262'); INSERT INTO `industry` VALUES (413, '2623', '钾肥制造', 1, '262'); INSERT INTO `industry` VALUES (414, '2624', '复混肥料制造', 1, '262'); INSERT INTO `industry` VALUES (415, '2625', '有机肥料及微生物肥料制造', 1, '262'); INSERT INTO `industry` VALUES (416, '2629', '其他肥料制造', 1, '262'); INSERT INTO `industry` VALUES (417, '263', '农药制造', 1, '26'); INSERT INTO `industry` VALUES (418, '2631', '化学农药制造', 1, '263'); INSERT INTO `industry` VALUES (419, '2632', '生物化学农药及微生物农药制造', 1, '263'); INSERT INTO `industry` VALUES (420, '264', '涂料、油墨、颜料及类似产品制造', 1, '26'); INSERT INTO `industry` VALUES (421, '2641', '涂料制造', 1, '264'); INSERT INTO `industry` VALUES (422, '2642', '油墨及类似产品制造', 1, '264'); INSERT INTO `industry` VALUES (423, '2643', '工业颜料制造', 1, '264'); INSERT INTO `industry` VALUES (424, '2644', '工艺美术颜料制造', 1, '264'); INSERT INTO `industry` VALUES (425, '2645', '染料制造', 1, '264'); INSERT INTO `industry` VALUES (426, '2646', '密封用填料及类似品制造', 1, '264'); INSERT INTO `industry` VALUES (427, '265', '合成材料制造', 1, '26'); INSERT INTO `industry` VALUES (428, '2651', '初级形态塑料及合成树脂制造', 1, '265'); INSERT INTO `industry` VALUES (429, '2652', '合成橡胶制造', 1, '265'); INSERT INTO `industry` VALUES (430, '2653', '合成纤维单(聚合)体制造', 1, '265'); INSERT INTO `industry` VALUES (431, '2659', '其他合成材料制造', 1, '265'); INSERT INTO `industry` VALUES (432, '266', '专用化学产品制造', 1, '26'); INSERT INTO `industry` VALUES (433, '2661', '化学试剂和助剂制造', 1, '266'); INSERT INTO `industry` VALUES (434, '2662', '专项化学用品制造', 1, '266'); INSERT INTO `industry` VALUES (435, '2663', '林产化学产品制造', 1, '266'); INSERT INTO `industry` VALUES (436, '2664', '文化用信息化学品制造', 1, '266'); INSERT INTO `industry` VALUES (437, '2665', '医学生产用信息化学品制造', 1, '266'); INSERT INTO `industry` VALUES (438, '2666', '环境污染处理专用药剂材料制造', 1, '266'); INSERT INTO `industry` VALUES (439, '2667', '动物胶制造', 1, '266'); INSERT INTO `industry` VALUES (440, '2669', '其他专用化学产品制造', 1, '266'); INSERT INTO `industry` VALUES (441, '267', '炸药、火工及焰火产品制造', 1, '26'); INSERT INTO `industry` VALUES (442, '2671', '炸药及火工产品制造', 1, '267'); INSERT INTO `industry` VALUES (443, '2672', '焰火、鞭炮产品制造 ', 1, '267'); INSERT INTO `industry` VALUES (444, '268', '日用化学产品制造', 1, '26'); INSERT INTO `industry` VALUES (445, '2681', '肥皂及洗涤剂制造', 1, '268'); INSERT INTO `industry` VALUES (446, '2682', '化妆品制造', 1, '268'); INSERT INTO `industry` VALUES (447, '2683', '口腔清洁用品制造', 1, '268'); INSERT INTO `industry` VALUES (448, '2684', '香料、香精制造', 1, '268'); INSERT INTO `industry` VALUES (449, '2689', '其他日用化学产品制造', 1, '268'); INSERT INTO `industry` VALUES (450, '27', '医药制造业 ', 1, 'C'); INSERT INTO `industry` VALUES (451, '2710', '化学药品原料药制造', 1, '27'); INSERT INTO `industry` VALUES (452, '2720', '化学药品制剂制造', 1, '27'); INSERT INTO `industry` VALUES (453, '2730', '中药饮片加工', 1, '27'); INSERT INTO `industry` VALUES (454, '2740', '中成药生产', 1, '27'); INSERT INTO `industry` VALUES (455, '2750', '兽用药品制造', 1, '27'); INSERT INTO `industry` VALUES (456, '276', '生物药品制品制造', 1, '27'); INSERT INTO `industry` VALUES (457, '2761', '生物药品制造', 1, '276'); INSERT INTO `industry` VALUES (458, '2762', '基因工程药物和疫苗制造', 1, '276'); INSERT INTO `industry` VALUES (459, '2770', '卫生材料及医药用品制造', 1, '27'); INSERT INTO `industry` VALUES (460, '2780', '药用辅料及包装材料', 1, '27'); INSERT INTO `industry` VALUES (461, '28', '化学纤维制造业', 1, 'C'); INSERT INTO `industry` VALUES (462, '281', '纤维素纤维原料及纤维制造', 1, '28'); INSERT INTO `industry` VALUES (463, '2811', '化纤浆粕制造', 1, '281'); INSERT INTO `industry` VALUES (464, '2812', '人造纤维(纤维素纤维)制造', 1, '281'); INSERT INTO `industry` VALUES (465, '282', '合成纤维制造', 1, '28'); INSERT INTO `industry` VALUES (466, '2821', '锦纶纤维制造', 1, '282'); INSERT INTO `industry` VALUES (467, '2822', '涤纶纤维制造', 1, '282'); INSERT INTO `industry` VALUES (468, '2823', '腈纶纤维制造', 1, '282'); INSERT INTO `industry` VALUES (469, '2824', '维纶纤维制造', 1, '282'); INSERT INTO `industry` VALUES (470, '2825', '丙纶纤维制造', 1, '282'); INSERT INTO `industry` VALUES (471, '2826', '氨纶纤维制造', 1, '282'); INSERT INTO `industry` VALUES (472, '2829', '其他合成纤维制造', 1, '282'); INSERT INTO `industry` VALUES (473, '283', '生物基材料制造', 1, '28'); INSERT INTO `industry` VALUES (474, '2831', '生物基化学纤维制造', 1, '283'); INSERT INTO `industry` VALUES (475, '2832', '生物基、淀粉基新材料制造', 1, '283'); INSERT INTO `industry` VALUES (476, '29', '橡胶和塑料制品业', 1, 'C'); INSERT INTO `industry` VALUES (477, '291', '橡胶制品业', 1, '29'); INSERT INTO `industry` VALUES (478, '2911', '轮胎制造', 1, '291'); INSERT INTO `industry` VALUES (479, '2912', '橡胶板、管、带制造', 1, '291'); INSERT INTO `industry` VALUES (480, '2913', '橡胶零件制造', 1, '291'); INSERT INTO `industry` VALUES (481, '2914', '再生橡胶制造', 1, '291'); INSERT INTO `industry` VALUES (482, '2915', '日用及医用橡胶制品制造', 1, '291'); INSERT INTO `industry` VALUES (483, '2916', '运动场地用塑胶制造', 1, '291'); INSERT INTO `industry` VALUES (484, '2919', '其他橡胶制品制造', 1, '291'); INSERT INTO `industry` VALUES (485, '292', '塑料制品业', 1, '29'); INSERT INTO `industry` VALUES (486, '2921', '塑料薄膜制造', 1, '292'); INSERT INTO `industry` VALUES (487, '2922', '塑料板、管、型材制造', 1, '292'); INSERT INTO `industry` VALUES (488, '2923', '塑料丝、绳及编织品制造', 1, '292'); INSERT INTO `industry` VALUES (489, '2924', '泡沫塑料制造', 1, '292'); INSERT INTO `industry` VALUES (490, '2925', '塑料人造革、合成革制造', 1, '292'); INSERT INTO `industry` VALUES (491, '2926', '塑料包装箱及容器制造', 1, '292'); INSERT INTO `industry` VALUES (492, '2927', '日用塑料制品制造', 1, '292'); INSERT INTO `industry` VALUES (493, '2928', '人造草坪制造', 1, '292'); INSERT INTO `industry` VALUES (494, '2929', '塑料零件及其他塑料制品制造', 1, '292'); INSERT INTO `industry` VALUES (495, '30', '非金属矿物制品业', 1, 'C'); INSERT INTO `industry` VALUES (496, '301', '水泥、石灰和石膏制造', 1, '30'); INSERT INTO `industry` VALUES (497, '3011', '水泥制造', 1, '301'); INSERT INTO `industry` VALUES (498, '3012', '石灰和石膏制造', 1, '301'); INSERT INTO `industry` VALUES (499, '302', '石膏、水泥制品及类似制品制造', 1, '30'); INSERT INTO `industry` VALUES (500, '3021', '水泥制品制造', 1, '302'); INSERT INTO `industry` VALUES (501, '3022', '砼结构构件制造', 1, '302'); INSERT INTO `industry` VALUES (502, '3023', '石棉水泥制品制造', 1, '302'); INSERT INTO `industry` VALUES (503, '3024', '轻质建筑材料制造', 1, '302'); INSERT INTO `industry` VALUES (504, '3029', '其他水泥类似制品制造', 1, '302'); INSERT INTO `industry` VALUES (505, '303', '砖瓦、石材等建筑材料制造', 1, '30'); INSERT INTO `industry` VALUES (506, '3031', '粘土砖瓦及建筑砌块制造', 1, '303'); INSERT INTO `industry` VALUES (507, '3032', '建筑用石加工', 1, '303'); INSERT INTO `industry` VALUES (508, '3033', '防水建筑材料制造', 1, '303'); INSERT INTO `industry` VALUES (509, '3034', '隔热和隔音材料制造', 1, '303'); INSERT INTO `industry` VALUES (510, '3039', '其他建筑材料制造', 1, '303'); INSERT INTO `industry` VALUES (511, '304', '玻璃制造', 1, '30'); INSERT INTO `industry` VALUES (512, '3041', '平板玻璃制造', 1, '304'); INSERT INTO `industry` VALUES (513, '3042', '特种玻璃制造', 1, '304'); INSERT INTO `industry` VALUES (514, '3049', '其他玻璃制造', 1, '304'); INSERT INTO `industry` VALUES (515, '305', '玻璃制品制造', 1, '30'); INSERT INTO `industry` VALUES (516, '3051', '技术玻璃制品制造', 1, '305'); INSERT INTO `industry` VALUES (517, '3052', '光学玻璃制造', 1, '305'); INSERT INTO `industry` VALUES (518, '3053', '玻璃仪器制造', 1, '305'); INSERT INTO `industry` VALUES (519, '3054', '日用玻璃制品制造', 1, '305'); INSERT INTO `industry` VALUES (520, '3055', '玻璃包装容器制造', 1, '305'); INSERT INTO `industry` VALUES (521, '3056', '玻璃保温容器制造', 1, '305'); INSERT INTO `industry` VALUES (522, '3057', '制镜及类似品加工', 1, '305'); INSERT INTO `industry` VALUES (523, '3059', '其他玻璃制品制造', 1, '305'); INSERT INTO `industry` VALUES (524, '306', '玻璃纤维和玻璃纤维增强塑料制品制造', 1, '30'); INSERT INTO `industry` VALUES (525, '3061', '玻璃纤维及制品制造', 1, '306'); INSERT INTO `industry` VALUES (526, '3062', '玻璃纤维增强塑料制品制造', 1, '306'); INSERT INTO `industry` VALUES (527, '307', '陶瓷制品制造', 1, '30'); INSERT INTO `industry` VALUES (528, '3071', '建筑陶瓷制品制造', 1, '307'); INSERT INTO `industry` VALUES (529, '3072', '卫生陶瓷制品制造', 1, '307'); INSERT INTO `industry` VALUES (530, '3073', '特种陶瓷制品制造', 1, '307'); INSERT INTO `industry` VALUES (531, '3074', '日用陶瓷制品制造', 1, '307'); INSERT INTO `industry` VALUES (532, '3075', '陈设艺术陶瓷制造', 1, '307'); INSERT INTO `industry` VALUES (533, '3076', '园艺陶瓷制造', 1, '307'); INSERT INTO `industry` VALUES (534, '3079', '其他陶瓷制品制造', 1, '307'); INSERT INTO `industry` VALUES (535, '308', '耐火材料制品制造', 1, '30'); INSERT INTO `industry` VALUES (536, '3081', '石棉制品制造', 1, '308'); INSERT INTO `industry` VALUES (537, '3082', '云母制品制造', 1, '308'); INSERT INTO `industry` VALUES (538, '3089', '耐火陶瓷制品及其他耐火材料制造', 1, '308'); INSERT INTO `industry` VALUES (539, '309', '石墨及其他非金属矿物制品制造', 1, '30'); INSERT INTO `industry` VALUES (540, '3091', '石墨及碳素制品制造', 1, '309'); INSERT INTO `industry` VALUES (541, '3099', '其他非金属矿物制品制造', 1, '309'); INSERT INTO `industry` VALUES (542, '31', '黑色金属冶炼和压延加工业 ', 1, 'C'); INSERT INTO `industry` VALUES (543, '3110', '炼铁', 1, '31'); INSERT INTO `industry` VALUES (544, '3120', '炼钢', 1, '31'); INSERT INTO `industry` VALUES (545, '3130', '钢压延加工', 1, '31'); INSERT INTO `industry` VALUES (546, '3140', '铁合金冶炼', 1, '31'); INSERT INTO `industry` VALUES (547, '32', '有色金属冶炼和压延加工业 ', 1, 'C'); INSERT INTO `industry` VALUES (548, '321', '常用有色金属冶炼', 1, '32'); INSERT INTO `industry` VALUES (549, '3211', '铜冶炼', 1, '321'); INSERT INTO `industry` VALUES (550, '3212', '铅锌冶炼', 1, '321'); INSERT INTO `industry` VALUES (551, '3213', '镍钴冶炼', 1, '321'); INSERT INTO `industry` VALUES (552, '3214', '锡冶炼', 1, '321'); INSERT INTO `industry` VALUES (553, '3215', '锑冶炼', 1, '321'); INSERT INTO `industry` VALUES (554, '3216', '铝冶炼', 1, '321'); INSERT INTO `industry` VALUES (555, '3217', '镁冶炼', 1, '321'); INSERT INTO `industry` VALUES (556, '3218', '硅冶炼', 1, '321'); INSERT INTO `industry` VALUES (557, '3219', '其他常用有色金属冶炼', 1, '321'); INSERT INTO `industry` VALUES (558, '322', '贵金属冶炼', 1, '32'); INSERT INTO `industry` VALUES (559, '3221', '金冶炼', 1, '322'); INSERT INTO `industry` VALUES (560, '3222', '银冶炼', 1, '322'); INSERT INTO `industry` VALUES (561, '3229', '其他贵金属冶炼', 1, '322'); INSERT INTO `industry` VALUES (562, '323', '稀有稀土金属冶炼', 1, '32'); INSERT INTO `industry` VALUES (563, '3231', '钨钼冶炼', 1, '323'); INSERT INTO `industry` VALUES (564, '3232', '稀土金属冶炼', 1, '323'); INSERT INTO `industry` VALUES (565, '3239', '其他稀有金属冶炼', 1, '323'); INSERT INTO `industry` VALUES (566, '3240', '有色金属合金制造', 1, '32'); INSERT INTO `industry` VALUES (567, '325', '有色金属压延加工', 1, '32'); INSERT INTO `industry` VALUES (568, '3251', '铜压延加工', 1, '325'); INSERT INTO `industry` VALUES (569, '3252', '铝压延加工', 1, '325'); INSERT INTO `industry` VALUES (570, '3253', '贵金属压延加工', 1, '325'); INSERT INTO `industry` VALUES (571, '3254', '稀有稀土金属压延加工', 1, '325'); INSERT INTO `industry` VALUES (572, '3259', '其他有色金属压延加工', 1, '325'); INSERT INTO `industry` VALUES (573, '33', '金属制品业 ', 1, 'C'); INSERT INTO `industry` VALUES (574, '331', '结构性金属制品制造', 1, '33'); INSERT INTO `industry` VALUES (575, '3311', '金属结构制造', 1, '331'); INSERT INTO `industry` VALUES (576, '3312', '金属门窗制造', 1, '331'); INSERT INTO `industry` VALUES (577, '332', '金属工具制造', 1, '33'); INSERT INTO `industry` VALUES (578, '3321', '切削工具制造', 1, '332'); INSERT INTO `industry` VALUES (579, '3322', '手工具制造', 1, '332'); INSERT INTO `industry` VALUES (580, '3323', '农用及园林用金属工具制造', 1, '332'); INSERT INTO `industry` VALUES (581, '3324', '刀剪及类似日用金属工具制造', 1, '332'); INSERT INTO `industry` VALUES (582, '3329', '其他金属工具制造', 1, '332'); INSERT INTO `industry` VALUES (583, '333', '集装箱及金属包装容器制造', 1, '33'); INSERT INTO `industry` VALUES (584, '3331', '集装箱制造', 1, '333'); INSERT INTO `industry` VALUES (585, '3332', '金属压力容器制造', 1, '333'); INSERT INTO `industry` VALUES (586, '3333', '金属包装容器及材料制造', 1, '333'); INSERT INTO `industry` VALUES (587, '3340', '金属丝绳及其制品制造', 1, '33'); INSERT INTO `industry` VALUES (588, '335', '建筑、安全用金属制品制造', 1, '33'); INSERT INTO `industry` VALUES (589, '3351', '建筑、家具用金属配件制造', 1, '335'); INSERT INTO `industry` VALUES (590, '3352', '建筑装饰及水暖管道零件制造', 1, '335'); INSERT INTO `industry` VALUES (591, '3353', '安全、消防用金属制品制造', 1, '335'); INSERT INTO `industry` VALUES (592, '3359', '其他建筑、安全用金属制品制造', 1, '335'); INSERT INTO `industry` VALUES (593, '3360', '金属表面处理及热处理加工', 1, '33'); INSERT INTO `industry` VALUES (594, '337', '搪瓷制品制造', 1, '33'); INSERT INTO `industry` VALUES (595, '3371', '生产专用搪瓷制品制造', 1, '337'); INSERT INTO `industry` VALUES (596, '3372', '建筑装饰搪瓷制品制造', 1, '337'); INSERT INTO `industry` VALUES (597, '3373', '搪瓷卫生洁具制造', 1, '337'); INSERT INTO `industry` VALUES (598, '3379', '搪瓷日用品及其他搪瓷制品制造', 1, '337'); INSERT INTO `industry` VALUES (599, '338', '金属制日用品制造', 1, '33'); INSERT INTO `industry` VALUES (600, '3381', '金属制厨房用器具制造', 1, '338'); INSERT INTO `industry` VALUES (601, '3382', '金属制餐具和器皿制造', 1, '338'); INSERT INTO `industry` VALUES (602, '3383', '金属制卫生器具制造', 1, '338'); INSERT INTO `industry` VALUES (603, '3389', '其他金属制日用品制造', 1, '338'); INSERT INTO `industry` VALUES (604, '339', '其他金属制品制造', 1, '33'); INSERT INTO `industry` VALUES (605, '3391', '黑色金属铸造', 1, '339'); INSERT INTO `industry` VALUES (606, '3392', '有色金属铸造', 1, '339'); INSERT INTO `industry` VALUES (607, '3393', '锻件及粉末冶金制品制造', 1, '339'); INSERT INTO `industry` VALUES (608, '3394', '交通及公共管理用金属标牌制造', 1, '339'); INSERT INTO `industry` VALUES (609, '3399', '其他未列明金属制品制造', 1, '339'); INSERT INTO `industry` VALUES (610, '34', '通用设备制造业', 1, 'C'); INSERT INTO `industry` VALUES (611, '341', '锅炉及原动设备制造', 1, '34'); INSERT INTO `industry` VALUES (612, '3411', '锅炉及辅助设备制造', 1, '341'); INSERT INTO `industry` VALUES (613, '3412', '内燃机及配件制造', 1, '341'); INSERT INTO `industry` VALUES (614, '3413', '汽轮机及辅机制造', 1, '341'); INSERT INTO `industry` VALUES (615, '3414', '水轮机及辅机制造', 1, '341'); INSERT INTO `industry` VALUES (616, '3415', '风能原动设备制造', 1, '341'); INSERT INTO `industry` VALUES (617, '3419', '其他原动设备制造', 1, '341'); INSERT INTO `industry` VALUES (618, '342', '金属加工机械制造', 1, '34'); INSERT INTO `industry` VALUES (619, '3421', '金属切削机床制造', 1, '342'); INSERT INTO `industry` VALUES (620, '3422', '金属成形机床制造', 1, '342'); INSERT INTO `industry` VALUES (621, '3423', '铸造机械制造', 1, '342'); INSERT INTO `industry` VALUES (622, '3424', '金属切割及焊接设备制造', 1, '342'); INSERT INTO `industry` VALUES (623, '3425', '机床功能部件及附件制造', 1, '342'); INSERT INTO `industry` VALUES (624, '3429', '其他金属加工机械制造', 1, '342'); INSERT INTO `industry` VALUES (625, '343', '物料搬运设备制造', 1, '34'); INSERT INTO `industry` VALUES (626, '3431', '轻小型起重设备制造', 1, '343'); INSERT INTO `industry` VALUES (627, '3432', '生产专用起重机制造', 1, '343'); INSERT INTO `industry` VALUES (628, '3433', '生产专用车辆制造', 1, '343'); INSERT INTO `industry` VALUES (629, '3434', '连续搬运设备制造', 1, '343'); INSERT INTO `industry` VALUES (630, '3435', '电梯、自动扶梯及升降机制造', 1, '343'); INSERT INTO `industry` VALUES (631, '3436', '客运索道制造', 1, '343'); INSERT INTO `industry` VALUES (632, '3437', '机械式停车设备制造', 1, '343'); INSERT INTO `industry` VALUES (633, '3439', '其他物料搬运设备制造', 1, '343'); INSERT INTO `industry` VALUES (634, '344', '泵、阀门、压缩机及类似机械制造', 1, '34'); INSERT INTO `industry` VALUES (635, '3441', '泵及真空设备制造', 1, '344'); INSERT INTO `industry` VALUES (636, '3442', '气体压缩机械制造', 1, '344'); INSERT INTO `industry` VALUES (637, '3443', '阀门和旋塞制造', 1, '344'); INSERT INTO `industry` VALUES (638, '3444', '液压动力机械及元件制造', 1, '344'); INSERT INTO `industry` VALUES (639, '3445', '液力动力机械元件制造', 1, '344'); INSERT INTO `industry` VALUES (640, '3446', ' 气压动力机械及元件制造', 1, '344'); INSERT INTO `industry` VALUES (641, '345', '轴承、齿轮和传动部件制造', 1, '34'); INSERT INTO `industry` VALUES (642, '3451', '滚动轴承制造', 1, '345'); INSERT INTO `industry` VALUES (643, '3452', '滑动轴承制造', 1, '345'); INSERT INTO `industry` VALUES (644, '3453', '齿轮及齿轮减、变速箱制造', 1, '345'); INSERT INTO `industry` VALUES (645, '3459', '其他传动部件制造', 1, '345'); INSERT INTO `industry` VALUES (646, '346', '烘炉、风机、包装等设备制造', 1, '34'); INSERT INTO `industry` VALUES (647, '3461', '烘炉、熔炉及电炉制造', 1, '346'); INSERT INTO `industry` VALUES (648, '3462', '风机、风扇制造', 1, '346'); INSERT INTO `industry` VALUES (649, '3463', '气体、液体分离及纯净设备制造', 1, '346'); INSERT INTO `industry` VALUES (650, '3464', '制冷、空调设备制造', 1, '346'); INSERT INTO `industry` VALUES (651, '3465', '风动和电动工具制造', 1, '346'); INSERT INTO `industry` VALUES (652, '3466', '喷枪及类似器具制造 ', 1, '346'); INSERT INTO `industry` VALUES (653, '3467', '包装专用设备制造', 1, '346'); INSERT INTO `industry` VALUES (654, '347', '文化、办公用机械制造', 1, '34'); INSERT INTO `industry` VALUES (655, '3471', '电影机械制造', 1, '347'); INSERT INTO `industry` VALUES (656, '3472', '幻灯及投影设备制造', 1, '347'); INSERT INTO `industry` VALUES (657, '3473', '照相机及器材制造', 1, '347'); INSERT INTO `industry` VALUES (658, '3474', '复印和胶印设备制造', 1, '347'); INSERT INTO `industry` VALUES (659, '3475', '计算器及货币专用设备制造', 1, '347'); INSERT INTO `industry` VALUES (660, '3479', '其他文化、办公用机械制造', 1, '347'); INSERT INTO `industry` VALUES (661, '348', '通用零部件制造', 1, '34'); INSERT INTO `industry` VALUES (662, '3481', '金属密封件制造', 1, '348'); INSERT INTO `industry` VALUES (663, '3482', '紧固件制造', 1, '348'); INSERT INTO `industry` VALUES (664, '3483', '弹簧制造', 1, '348'); INSERT INTO `industry` VALUES (665, '3484', '机械零部件加工', 1, '348'); INSERT INTO `industry` VALUES (666, '3489', '其他通用零部件制造', 1, '348'); INSERT INTO `industry` VALUES (667, '349', '其他通用设备制造', 1, '34'); INSERT INTO `industry` VALUES (668, '3491', '工业机器人制造', 1, '349'); INSERT INTO `industry` VALUES (669, '3492', '特殊作业机器人制造', 1, '349'); INSERT INTO `industry` VALUES (670, '3493', '增材制造装备制造', 1, '349'); INSERT INTO `industry` VALUES (671, '3499', '其他未列明通用设备制造业', 1, '349'); INSERT INTO `industry` VALUES (672, '35', '专用设备制造业 ', 1, 'C'); INSERT INTO `industry` VALUES (673, '351', '采矿、冶金、建筑专用设备制造', 1, '35'); INSERT INTO `industry` VALUES (674, '3511', '矿山机械制造', 1, '351'); INSERT INTO `industry` VALUES (675, '3512', '石油钻采专用设备制造', 1, '351'); INSERT INTO `industry` VALUES (676, '3513', '深海石油钻探设备制造', 1, '351'); INSERT INTO `industry` VALUES (677, '3514', '建筑工程用机械制造', 1, '351'); INSERT INTO `industry` VALUES (678, '3515', '建筑材料生产专用机械制造', 1, '351'); INSERT INTO `industry` VALUES (679, '3516', '冶金专用设备制造', 1, '351'); INSERT INTO `industry` VALUES (680, '3517', '隧道施工专用机械制造', 1, '351'); INSERT INTO `industry` VALUES (681, '352', '化工、木材、非金属加工专用设备制造', 1, '35'); INSERT INTO `industry` VALUES (682, '3521', '炼油、化工生产专用设备制造', 1, '352'); INSERT INTO `industry` VALUES (683, '3522', '橡胶加工专用设备制造', 1, '352'); INSERT INTO `industry` VALUES (684, '3523', '塑料加工专用设备制造', 1, '352'); INSERT INTO `industry` VALUES (685, '3524', '木竹材加工机械制造', 1, '352'); INSERT INTO `industry` VALUES (686, '3525', '模具制造', 1, '352'); INSERT INTO `industry` VALUES (687, '3529', '其他非金属加工专用设备制造', 1, '352'); INSERT INTO `industry` VALUES (688, '353', '食品、饮料、烟草及饲料生产专用设备制造   ', 1, '35'); INSERT INTO `industry` VALUES (689, '3531', '食品、酒、饮料及茶生产专用设备制造', 1, '353'); INSERT INTO `industry` VALUES (690, '3532', '农副食品加工专用设备制造', 1, '353'); INSERT INTO `industry` VALUES (691, '3533', '烟草生产专用设备制造', 1, '353'); INSERT INTO `industry` VALUES (692, '3534', '饲料生产专用设备制造', 1, '353'); INSERT INTO `industry` VALUES (693, '354', '印刷、制药、日化及日用品生产专用设备制造', 1, '35'); INSERT INTO `industry` VALUES (694, '3541', '制浆和造纸专用设备制造', 1, '354'); INSERT INTO `industry` VALUES (695, '3542', '印刷专用设备制造', 1, '354'); INSERT INTO `industry` VALUES (696, '3543', '日用化工专用设备制造', 1, '354'); INSERT INTO `industry` VALUES (697, '3544', '制药专用设备制造', 1, '354'); INSERT INTO `industry` VALUES (698, '3545', '照明器具生产专用设备制造', 1, '354'); INSERT INTO `industry` VALUES (699, '3546', '玻璃、陶瓷和搪瓷制品生产专用设备制造', 1, '354'); INSERT INTO `industry` VALUES (700, '3549', '其他日用品生产专用设备制造', 1, '354'); INSERT INTO `industry` VALUES (701, '355', '纺织、服装和皮革加工专用设备制造', 1, '35'); INSERT INTO `industry` VALUES (702, '3551', '纺织专用设备制造', 1, '355'); INSERT INTO `industry` VALUES (703, '3552', '皮革、毛皮及其制品加工专用设备制造', 1, '355'); INSERT INTO `industry` VALUES (704, '3553', '缝制机械制造', 1, '355'); INSERT INTO `industry` VALUES (705, '3554', '洗涤机械制造', 1, '355'); INSERT INTO `industry` VALUES (706, '356', '电子和电工机械专用设备制造', 1, '35'); INSERT INTO `industry` VALUES (707, '3561', '电工机械专用设备制造', 1, '356'); INSERT INTO `industry` VALUES (708, '3562', '半导体器件专用设备制造', 1, '356'); INSERT INTO `industry` VALUES (709, '3563', '电子元器件与机电组件设备制造', 1, '356'); INSERT INTO `industry` VALUES (710, '3569', '其他电子专用设备制造', 1, '356'); INSERT INTO `industry` VALUES (711, '357', '农、林、牧、渔专用机械制造', 1, '35'); INSERT INTO `industry` VALUES (712, '3571', '拖拉机制造', 1, '357'); INSERT INTO `industry` VALUES (713, '3572', '机械化农业及园艺机具制造', 1, '357'); INSERT INTO `industry` VALUES (714, '3573', '营林及木竹采伐机械制造', 1, '357'); INSERT INTO `industry` VALUES (715, '3574', '畜牧机械制造', 1, '357'); INSERT INTO `industry` VALUES (716, '3575', '渔业机械制造', 1, '357'); INSERT INTO `industry` VALUES (717, '3576', '农林牧渔机械配件制造', 1, '357'); INSERT INTO `industry` VALUES (718, '3577', '棉花加工机械制造', 1, '357'); INSERT INTO `industry` VALUES (719, '3579', '其他农、林、牧、渔业机械制造', 1, '357'); INSERT INTO `industry` VALUES (720, '358', '医疗仪器设备及器械制造', 1, '35'); INSERT INTO `industry` VALUES (721, '3581', '医疗诊断、监护及治疗设备制造', 1, '358'); INSERT INTO `industry` VALUES (722, '3582', '口腔科用设备及器具制造', 1, '358'); INSERT INTO `industry` VALUES (723, '3583', '医疗实验室及医用消毒设备和器具制造', 1, '358'); INSERT INTO `industry` VALUES (724, '3584', '医疗、外科及兽医用器械制造', 1, '358'); INSERT INTO `industry` VALUES (725, '3585', '机械治疗及病房护理设备制造', 1, '358'); INSERT INTO `industry` VALUES (726, '3586', '康复辅具制造', 1, '358'); INSERT INTO `industry` VALUES (727, '3587', '眼镜制造', 1, '358'); INSERT INTO `industry` VALUES (728, '3589', '其他医疗设备及器械制造', 1, '358'); INSERT INTO `industry` VALUES (729, '359', '环保、邮政、社会公共服务及其他专用设备制造', 1, '35'); INSERT INTO `industry` VALUES (730, '3591', '环境保护专用设备制造', 1, '359'); INSERT INTO `industry` VALUES (731, '3592', '地质勘查专用设备制造', 1, '359'); INSERT INTO `industry` VALUES (732, '3593', '邮政专用机械及器材制造', 1, '359'); INSERT INTO `industry` VALUES (733, '3594', '商业、饮食、服务专用设备制造', 1, '359'); INSERT INTO `industry` VALUES (734, '3595', '社会公共安全设备及器材制造', 1, '359'); INSERT INTO `industry` VALUES (735, '3596', '交通安全、管制及类似专用设备制造', 1, '359'); INSERT INTO `industry` VALUES (736, '3597', '水资源专用机械制造', 1, '359'); INSERT INTO `industry` VALUES (737, '3599', '其他专用设备制造', 1, '359'); INSERT INTO `industry` VALUES (738, '36', '汽车制造业', 1, 'C'); INSERT INTO `industry` VALUES (739, '361', '汽车整车制造', 1, '36'); INSERT INTO `industry` VALUES (740, '3611', '汽柴油车整车制造', 1, '361'); INSERT INTO `industry` VALUES (741, '3612', '新能源车整车制造', 1, '361'); INSERT INTO `industry` VALUES (742, '3620', '汽车用发动机制造', 1, '36'); INSERT INTO `industry` VALUES (743, '3630', '改装汽车制造', 1, '36'); INSERT INTO `industry` VALUES (744, '3640', '低速汽车制造', 1, '36'); INSERT INTO `industry` VALUES (745, '3650', '电车制造', 1, '36'); INSERT INTO `industry` VALUES (746, '3660', '汽车车身、挂车制造', 1, '36'); INSERT INTO `industry` VALUES (747, '3670', '汽车零部件及配件制造', 1, '36'); INSERT INTO `industry` VALUES (748, '37', '铁路、船舶、航空航天和其他运输设备制造业', 1, 'C'); INSERT INTO `industry` VALUES (749, '371', '铁路运输设备制造', 1, '37'); INSERT INTO `industry` VALUES (750, '3711', '高铁车组制造', 1, '371'); INSERT INTO `industry` VALUES (751, '3712', '铁路机车车辆制造', 1, '371'); INSERT INTO `industry` VALUES (752, '3713', '窄轨机车车辆制造', 1, '371'); INSERT INTO `industry` VALUES (753, '3714', '高铁设备、配件制造', 1, '371'); INSERT INTO `industry` VALUES (754, '3715', '铁路机车车辆配件制造', 1, '371'); INSERT INTO `industry` VALUES (755, '3716', '铁路专用设备及器材、配件制造', 1, '371'); INSERT INTO `industry` VALUES (756, '3719', '其他铁路运输设备制造', 1, '371'); INSERT INTO `industry` VALUES (757, '3720', '城市轨道交通设备制造', 1, '37'); INSERT INTO `industry` VALUES (758, '373', '船舶及相关装置制造', 1, '37'); INSERT INTO `industry` VALUES (759, '3731', '金属船舶制造', 1, '373'); INSERT INTO `industry` VALUES (760, '3732', '非金属船舶制造', 1, '373'); INSERT INTO `industry` VALUES (761, '3733', '娱乐船和运动船制造', 1, '373'); INSERT INTO `industry` VALUES (762, '3734', '船用配套设备制造', 1, '373'); INSERT INTO `industry` VALUES (763, '3735', '船舶改装', 1, '373'); INSERT INTO `industry` VALUES (764, '3736', '船舶拆除', 1, '373'); INSERT INTO `industry` VALUES (765, '3737', '海洋工程装备制造', 1, '373'); INSERT INTO `industry` VALUES (766, '3739', '航标器材及其他相关装置制造', 1, '373'); INSERT INTO `industry` VALUES (767, '374', '航空、航天器及设备制造', 1, '37'); INSERT INTO `industry` VALUES (768, '3741', '飞机制造', 1, '374'); INSERT INTO `industry` VALUES (769, '3742', '航天器及运载火箭制造', 1, '374'); INSERT INTO `industry` VALUES (770, '3743', '航天相关设备制造', 1, '374'); INSERT INTO `industry` VALUES (771, '3744', '航空相关设备制造', 1, '374'); INSERT INTO `industry` VALUES (772, '3749', '其他航空航天器制造', 1, '374'); INSERT INTO `industry` VALUES (773, '375', '摩托车制造', 1, '37'); INSERT INTO `industry` VALUES (774, '3751', '摩托车整车制造', 1, '375'); INSERT INTO `industry` VALUES (775, '3752', '摩托车零部件及配件制造', 1, '375'); INSERT INTO `industry` VALUES (776, '376', '自行车和残疾人座车制造', 1, '37'); INSERT INTO `industry` VALUES (777, '3761', '自行车制造', 1, '376'); INSERT INTO `industry` VALUES (778, '3762', '残疾人座车制造', 1, '376'); INSERT INTO `industry` VALUES (779, '3770', '助动车制造', 1, '37'); INSERT INTO `industry` VALUES (780, '3780', '非公路休闲车及零配件制造', 1, '37'); INSERT INTO `industry` VALUES (781, '379', '潜水救捞及其他未列明运输设备制造', 1, '37'); INSERT INTO `industry` VALUES (782, '3791', '潜水装备制造', 1, '379'); INSERT INTO `industry` VALUES (783, '3792', '水下救捞装备制造', 1, '379'); INSERT INTO `industry` VALUES (784, '3799', '其他未列明运输设备制造', 1, '379'); INSERT INTO `industry` VALUES (785, '38', '电气机械和器材制造业 ', 1, 'C'); INSERT INTO `industry` VALUES (786, '381', '电机制造', 1, '38'); INSERT INTO `industry` VALUES (787, '3811', '发电机及发电机组制造', 1, '381'); INSERT INTO `industry` VALUES (788, '3812', '电动机制造', 1, '381'); INSERT INTO `industry` VALUES (789, '3813', '微特电机及组件制造', 1, '381'); INSERT INTO `industry` VALUES (790, '3819', '其他电机制造', 1, '381'); INSERT INTO `industry` VALUES (791, '382', '输配电及控制设备制造', 1, '38'); INSERT INTO `industry` VALUES (792, '3821', '变压器、整流器和电感器制造', 1, '382'); INSERT INTO `industry` VALUES (793, '3822', '电容器及其配套设备制造', 1, '382'); INSERT INTO `industry` VALUES (794, '3823', '配电开关控制设备制造', 1, '382'); INSERT INTO `industry` VALUES (795, '3824', '电力电子元器件制造', 1, '382'); INSERT INTO `industry` VALUES (796, '3825', '光伏设备及元器件制造', 1, '382'); INSERT INTO `industry` VALUES (797, '3829', '其他输配电及控制设备制造', 1, '382'); INSERT INTO `industry` VALUES (798, '383', '电线、电缆、光缆及电工器材制造', 1, '38'); INSERT INTO `industry` VALUES (799, '3831', '电线、电缆制造', 1, '383'); INSERT INTO `industry` VALUES (800, '3832', '光纤制造', 1, '383'); INSERT INTO `industry` VALUES (801, '3833', '光缆制造', 1, '383'); INSERT INTO `industry` VALUES (802, '3834', '绝缘制品制造', 1, '383'); INSERT INTO `industry` VALUES (803, '3839', '其他电工器材制造', 1, '383'); INSERT INTO `industry` VALUES (804, '384', '电池制造', 1, '38'); INSERT INTO `industry` VALUES (805, '3841', '锂离子电池制造', 1, '384'); INSERT INTO `industry` VALUES (806, '3842', '镍氢电池制造', 1, '384'); INSERT INTO `industry` VALUES (807, '3843', '铅蓄电池制造', 1, '384'); INSERT INTO `industry` VALUES (808, '3844', '锌锰电池制造', 1, '384'); INSERT INTO `industry` VALUES (809, '3849', '其他电池制造', 1, '384'); INSERT INTO `industry` VALUES (810, '385', '家用电力器具制造', 1, '38'); INSERT INTO `industry` VALUES (811, '3851', '家用制冷电器具制造', 1, '385'); INSERT INTO `industry` VALUES (812, '3852', '家用空气调节器制造', 1, '385'); INSERT INTO `industry` VALUES (813, '3853', '家用通风电器具制造', 1, '385'); INSERT INTO `industry` VALUES (814, '3854', '家用厨房电器具制造', 1, '385'); INSERT INTO `industry` VALUES (815, '3855', '家用清洁卫生电器具制造', 1, '385'); INSERT INTO `industry` VALUES (816, '3856', '家用美容、保健护理电器具制造', 1, '385'); INSERT INTO `industry` VALUES (817, '3857', '家用电力器具专用配件制造', 1, '385'); INSERT INTO `industry` VALUES (818, '3859', '其他家用电力器具制造', 1, '385'); INSERT INTO `industry` VALUES (819, '386', '非电力家用器具制造', 1, '38'); INSERT INTO `industry` VALUES (820, '3861', '燃气及类似能源家用器具制造', 1, '386'); INSERT INTO `industry` VALUES (821, '3862', '太阳能器具制造 ', 1, '386'); INSERT INTO `industry` VALUES (822, '3869', '其他非电力家用器具制造', 1, '386'); INSERT INTO `industry` VALUES (823, '387', '照明器具制造', 1, '38'); INSERT INTO `industry` VALUES (824, '3871', '电光源制造', 1, '387'); INSERT INTO `industry` VALUES (825, '3872', '照明灯具制造', 1, '387'); INSERT INTO `industry` VALUES (826, '3873', '舞台及场地用灯制造', 1, '387'); INSERT INTO `industry` VALUES (827, '3874', '智能照明器具制造', 1, '387'); INSERT INTO `industry` VALUES (828, '3879', '灯用电器附件及其他照明器具制造', 1, '387'); INSERT INTO `industry` VALUES (829, '389', '其他电气机械及器材制造', 1, '38'); INSERT INTO `industry` VALUES (830, '3891', '电气信号设备装置制造', 1, '389'); INSERT INTO `industry` VALUES (831, '3899', '其他未列明电气机械及器材制造', 1, '389'); INSERT INTO `industry` VALUES (832, '39', '计算机、通信和其他电子设备制造业', 1, 'C'); INSERT INTO `industry` VALUES (833, '391', '计算机制造', 1, '39'); INSERT INTO `industry` VALUES (834, '3911', '计算机整机制造', 1, '391'); INSERT INTO `industry` VALUES (835, '3912', '计算机零部件制造', 1, '391'); INSERT INTO `industry` VALUES (836, '3913', '计算机外围设备制造', 1, '391'); INSERT INTO `industry` VALUES (837, '3914', '工业控制计算机及系统制造', 1, '391'); INSERT INTO `industry` VALUES (838, '3915', '信息安全设备制造', 1, '391'); INSERT INTO `industry` VALUES (839, '3919', '其他计算机制造', 1, '391'); INSERT INTO `industry` VALUES (840, '392', '通信设备制造', 1, '39'); INSERT INTO `industry` VALUES (841, '3921', '通信系统设备制造', 1, '392'); INSERT INTO `industry` VALUES (842, '3922', '通信终端设备制造', 1, '392'); INSERT INTO `industry` VALUES (843, '393', '广播电视设备制造', 1, '39'); INSERT INTO `industry` VALUES (844, '3931', '广播电视节目制作及发射设备制造', 1, '393'); INSERT INTO `industry` VALUES (845, '3932', '广播电视接收设备制造', 1, '393'); INSERT INTO `industry` VALUES (846, '3933', '广播电视专用配件制造', 1, '393'); INSERT INTO `industry` VALUES (847, '3934', '专业音响设备制造', 1, '393'); INSERT INTO `industry` VALUES (848, '3939', '应用电视设备及其他广播电视设备制造', 1, '393'); INSERT INTO `industry` VALUES (849, '3940', '雷达及配套设备制造', 1, '39'); INSERT INTO `industry` VALUES (850, '395', '视听设备制造', 1, '39'); INSERT INTO `industry` VALUES (851, '3951', '电视机制造', 1, '395'); INSERT INTO `industry` VALUES (852, '3952', '音响设备制造', 1, '395'); INSERT INTO `industry` VALUES (853, '3953', '影视录放设备制造', 1, '395'); INSERT INTO `industry` VALUES (854, '396', '智能消费设备制造', 1, '39'); INSERT INTO `industry` VALUES (855, '3961', '可穿戴智能设备制造', 1, '396'); INSERT INTO `industry` VALUES (856, '3962', '智能车载设备制造', 1, '396'); INSERT INTO `industry` VALUES (857, '3963', '智能无人飞行器制造', 1, '396'); INSERT INTO `industry` VALUES (858, '3964', '服务消费机器人制造', 1, '396'); INSERT INTO `industry` VALUES (859, '3969', '其他智能消费设备制造', 1, '396'); INSERT INTO `industry` VALUES (860, '397', '电子器件制造', 1, '39'); INSERT INTO `industry` VALUES (861, '3971', '电子真空器件制造', 1, '397'); INSERT INTO `industry` VALUES (862, '3972', '半导体分立器件制造', 1, '397'); INSERT INTO `industry` VALUES (863, '3973', '集成电路制造', 1, '397'); INSERT INTO `industry` VALUES (864, '3974', '显示器件制造', 1, '397'); INSERT INTO `industry` VALUES (865, '3975', '半导体照明器件制造', 1, '397'); INSERT INTO `industry` VALUES (866, '3976', '光电子器件制造', 1, '397'); INSERT INTO `industry` VALUES (867, '3979', '其他电子器件制造', 1, '397'); INSERT INTO `industry` VALUES (868, '398', '电子元件及电子专用材料制造', 1, '39'); INSERT INTO `industry` VALUES (869, '3981', '电阻电容电感元件制造', 1, '398'); INSERT INTO `industry` VALUES (870, '3982', '电子电路制造', 1, '398'); INSERT INTO `industry` VALUES (871, '3983', '敏感元件及传感器制造', 1, '398'); INSERT INTO `industry` VALUES (872, '3984', '电声器件及零件制造', 1, '398'); INSERT INTO `industry` VALUES (873, '3985', '电子专用材料制造', 1, '398'); INSERT INTO `industry` VALUES (874, '3989', '其他电子元件制造', 1, '398'); INSERT INTO `industry` VALUES (875, '3990', '其他电子设备制造', 1, '39'); INSERT INTO `industry` VALUES (876, '40', '仪器仪表制造业', 1, 'C'); INSERT INTO `industry` VALUES (877, '401', '通用仪器仪表制造', 1, '40'); INSERT INTO `industry` VALUES (878, '4011', '工业自动控制系统装置制造', 1, '401'); INSERT INTO `industry` VALUES (879, '4012', '电工仪器仪表制造', 1, '401'); INSERT INTO `industry` VALUES (880, '4013', '绘图、计算及测量仪器制造', 1, '401'); INSERT INTO `industry` VALUES (881, '4014', '实验分析仪器制造', 1, '401'); INSERT INTO `industry` VALUES (882, '4015', '试验机制造', 1, '401'); INSERT INTO `industry` VALUES (883, '4016', '供应用仪器仪表制造', 1, '401'); INSERT INTO `industry` VALUES (884, '4019', '其他通用仪器制造', 1, '401'); INSERT INTO `industry` VALUES (885, '402', '专用仪器仪表制造', 1, '40'); INSERT INTO `industry` VALUES (886, '4021', '环境监测专用仪器仪表制造', 1, '402'); INSERT INTO `industry` VALUES (887, '4022', '运输设备及生产用计数仪表制造', 1, '402'); INSERT INTO `industry` VALUES (888, '4023', '导航、测绘、气象及海洋专用仪器制造', 1, '402'); INSERT INTO `industry` VALUES (889, '4024', '农林牧渔专用仪器仪表制造', 1, '402'); INSERT INTO `industry` VALUES (890, '4025', '地质勘探和地震专用仪器制造', 1, '402'); INSERT INTO `industry` VALUES (891, '4026', '教学专用仪器制造', 1, '402'); INSERT INTO `industry` VALUES (892, '4027', '核子及核辐射测量仪器制造', 1, '402'); INSERT INTO `industry` VALUES (893, '4028', '电子测量仪器制造 ', 1, '402'); INSERT INTO `industry` VALUES (894, '4029', '其他专用仪器制造', 1, '402'); INSERT INTO `industry` VALUES (895, '4030', '钟表与计时仪器制造', 1, '40'); INSERT INTO `industry` VALUES (896, '4040', '光学仪器制造', 1, '40'); INSERT INTO `industry` VALUES (897, '4050', '衡器制造', 1, '40'); INSERT INTO `industry` VALUES (898, '4090', '其他仪器仪表制造业', 1, '40'); INSERT INTO `industry` VALUES (899, '41', '其他制造业', 1, 'C'); INSERT INTO `industry` VALUES (900, '411', '日用杂品制造', 1, '41'); INSERT INTO `industry` VALUES (901, '4111', '鬃毛加工、制刷及清扫工具制造', 1, '411'); INSERT INTO `industry` VALUES (902, '4119', '其他日用杂品制造', 1, '411'); INSERT INTO `industry` VALUES (903, '4120', '核辐射加工', 1, '41'); INSERT INTO `industry` VALUES (904, '4190', '其他未列明制造业', 1, '41'); INSERT INTO `industry` VALUES (905, '42', '废弃资源综合利用业', 1, 'C'); INSERT INTO `industry` VALUES (906, '4210', '金属废料和碎屑加工处理', 1, '42'); INSERT INTO `industry` VALUES (907, '4220', '非金属废料和碎屑加工处理', 1, '42'); INSERT INTO `industry` VALUES (908, '43', '金属制品、机械和设备修理业', 1, 'C'); INSERT INTO `industry` VALUES (909, '4310', '金属制品修理', 1, '43'); INSERT INTO `industry` VALUES (910, '4320', '通用设备修理', 1, '43'); INSERT INTO `industry` VALUES (911, '4330', '专用设备修理', 1, '43'); INSERT INTO `industry` VALUES (912, '434', '铁路、船舶、航空航天等运输设备修理', 1, '43'); INSERT INTO `industry` VALUES (913, '4341', '铁路运输设备修理', 1, '434'); INSERT INTO `industry` VALUES (914, '4342', '船舶修理', 1, '434'); INSERT INTO `industry` VALUES (915, '4343', '航空航天器修理', 1, '434'); INSERT INTO `industry` VALUES (916, '4349', '其他运输设备修理', 1, '434'); INSERT INTO `industry` VALUES (917, '4350', '电气设备修理', 1, '43'); INSERT INTO `industry` VALUES (918, '4360', '仪器仪表修理', 1, '43'); INSERT INTO `industry` VALUES (919, '4390', '其他机械和设备修理业', 1, '43'); INSERT INTO `industry` VALUES (920, 'D', '电力、热力、燃气及水生产和供应业', 1, NULL); INSERT INTO `industry` VALUES (921, '44', '电力、热力生产和供应业', 1, 'D'); INSERT INTO `industry` VALUES (922, '441', '电力生产', 1, '44'); INSERT INTO `industry` VALUES (923, '4411', '火力发电', 1, '441'); INSERT INTO `industry` VALUES (924, '4412', '热电联产', 1, '441'); INSERT INTO `industry` VALUES (925, '4413', '水力发电', 1, '441'); INSERT INTO `industry` VALUES (926, '4414', '核力发电', 1, '441'); INSERT INTO `industry` VALUES (927, '4415', '风力发电', 1, '441'); INSERT INTO `industry` VALUES (928, '4416', '太阳能发电', 1, '441'); INSERT INTO `industry` VALUES (929, '4417', '生物质能发电', 1, '441'); INSERT INTO `industry` VALUES (930, '4419', '其他电力生产', 1, '441'); INSERT INTO `industry` VALUES (931, '4420', '电力供应', 1, '44'); INSERT INTO `industry` VALUES (932, '4430', '热力生产和供应', 1, '44'); INSERT INTO `industry` VALUES (933, '45', '燃气生产和供应业', 1, 'D'); INSERT INTO `industry` VALUES (934, '451', '燃气生产和供应业', 1, '45'); INSERT INTO `industry` VALUES (935, '4511', '天然气生产和供应业', 1, '451'); INSERT INTO `industry` VALUES (936, '4512', '液化石油气生产和供应业', 1, '451'); INSERT INTO `industry` VALUES (937, '4513', '煤气生产和供应业', 1, '451'); INSERT INTO `industry` VALUES (938, '4520', '生物质燃气生产和供应业', 1, '45'); INSERT INTO `industry` VALUES (939, '46', '水的生产和供应业', 1, 'D'); INSERT INTO `industry` VALUES (940, '4610', '自来水生产和供应', 1, '46'); INSERT INTO `industry` VALUES (941, '4620', '?污水处理及其再生利用', 1, '46'); INSERT INTO `industry` VALUES (942, '4630', '海水淡化处理', 1, '46'); INSERT INTO `industry` VALUES (943, '4690', '其他水的处理、利用与分配', 1, '46'); INSERT INTO `industry` VALUES (944, 'E', '建筑业', 1, NULL); INSERT INTO `industry` VALUES (945, '47', '房屋建筑业', 1, 'E'); INSERT INTO `industry` VALUES (946, '4710', '住宅房屋建筑', 1, '47'); INSERT INTO `industry` VALUES (947, '4720', '体育场馆建筑', 1, '47'); INSERT INTO `industry` VALUES (948, '4790', '其他房屋建筑业', 1, '47'); INSERT INTO `industry` VALUES (949, '48', '土木工程建筑业', 1, 'E'); INSERT INTO `industry` VALUES (950, '481', '铁路、道路、隧道和桥梁工程建筑', 1, '48'); INSERT INTO `industry` VALUES (951, '4811', '铁路工程建筑', 1, '481'); INSERT INTO `industry` VALUES (952, '4812', '公路工程建筑', 1, '481'); INSERT INTO `industry` VALUES (953, '4813', '市政道路工程建筑 ', 1, '481'); INSERT INTO `industry` VALUES (954, '4814', '城市轨道交通工程建筑', 1, '481'); INSERT INTO `industry` VALUES (955, '4819', '其他道路、隧道和桥梁工程建筑 ', 1, '481'); INSERT INTO `industry` VALUES (956, '482', '水利和水运工程建筑', 1, '48'); INSERT INTO `industry` VALUES (957, '4821', '水源及供水设施工程建筑', 1, '482'); INSERT INTO `industry` VALUES (958, '4822', '河湖治理及防洪设施工程建筑', 1, '482'); INSERT INTO `industry` VALUES (959, '4823', '港口及航运设施工程建筑', 1, '482'); INSERT INTO `industry` VALUES (960, '483', '海洋工程建筑', 1, '48'); INSERT INTO `industry` VALUES (961, '4831', '海洋油气资源开发利用工程建筑', 1, '483'); INSERT INTO `industry` VALUES (962, '4832', '海洋能源开发利用工程建筑', 1, '483'); INSERT INTO `industry` VALUES (963, '4833', '海底隧道工程建筑', 1, '483'); INSERT INTO `industry` VALUES (964, '4834', '海底设施铺设工程建筑', 1, '483'); INSERT INTO `industry` VALUES (965, '4839', '其他海洋工程建筑', 1, '483'); INSERT INTO `industry` VALUES (966, '4840', '工矿工程建筑', 1, '48'); INSERT INTO `industry` VALUES (967, '485', '架线和管道工程建筑', 1, '48'); INSERT INTO `industry` VALUES (968, '4851', '架线及设备工程建筑', 1, '485'); INSERT INTO `industry` VALUES (969, '4852', '管道工程建筑', 1, '485'); INSERT INTO `industry` VALUES (970, '4853', '地下综合管廊工程建筑', 1, '485'); INSERT INTO `industry` VALUES (971, '486', '节能环保工程施工', 1, '48'); INSERT INTO `industry` VALUES (972, '4861', '节能工程施工', 1, '486'); INSERT INTO `industry` VALUES (973, '4862', '环保工程施工', 1, '486'); INSERT INTO `industry` VALUES (974, '4863', '生态保护工程施工', 1, '486'); INSERT INTO `industry` VALUES (975, '487', '电力工程施工', 1, '48'); INSERT INTO `industry` VALUES (976, '4871', '火力发电工程施工', 1, '487'); INSERT INTO `industry` VALUES (977, '4872', '水力发电工程施工', 1, '487'); INSERT INTO `industry` VALUES (978, '4873', '核电工程施工', 1, '487'); INSERT INTO `industry` VALUES (979, '4874', '风能发电工程施工', 1, '487'); INSERT INTO `industry` VALUES (980, '4875', '太阳能发电工程施工', 1, '487'); INSERT INTO `industry` VALUES (981, '4879', '其他电力工程施工', 1, '487'); INSERT INTO `industry` VALUES (982, '489', '其他土木工程建筑', 1, '48'); INSERT INTO `industry` VALUES (983, '4891', '园林绿化工程施工', 1, '489'); INSERT INTO `industry` VALUES (984, '4892', '体育场地设施工程施工', 1, '489'); INSERT INTO `industry` VALUES (985, '4893', '游乐设施工程施工', 1, '489'); INSERT INTO `industry` VALUES (986, '4899', '其他土木工程建筑施工', 1, '489'); INSERT INTO `industry` VALUES (987, '49', '建筑安装业', 1, 'E'); INSERT INTO `industry` VALUES (988, '4910', '电气安装', 1, '49'); INSERT INTO `industry` VALUES (989, '4920', '管道和设备安装', 1, '49'); INSERT INTO `industry` VALUES (990, '499', '其他建筑安装业', 1, '49'); INSERT INTO `industry` VALUES (991, '4991', '体育场地设施安装', 1, '499'); INSERT INTO `industry` VALUES (992, '4999', '其他建筑安装', 1, '499'); INSERT INTO `industry` VALUES (993, '50', '建筑装饰、装修和其他建筑业', 1, 'E'); INSERT INTO `industry` VALUES (994, '501', '建筑装饰和装修业', 1, '50'); INSERT INTO `industry` VALUES (995, '5011', '公共建筑装饰和装修', 1, '501'); INSERT INTO `industry` VALUES (996, '5012', '住宅装饰和装修', 1, '501'); INSERT INTO `industry` VALUES (997, '5013', '建筑幕墙装饰和装修', 1, '501'); INSERT INTO `industry` VALUES (998, '502', '建筑物拆除和场地准备活动', 1, '50'); INSERT INTO `industry` VALUES (999, '5021', '建筑物拆除活动', 1, '502'); INSERT INTO `industry` VALUES (1000, '5022', '场地准备活动', 1, '502'); INSERT INTO `industry` VALUES (1001, '5030', '提供施工设备服务', 1, '50'); INSERT INTO `industry` VALUES (1002, '5090', '其他未列明建筑业', 1, '50'); INSERT INTO `industry` VALUES (1003, 'F', '批发和零售业', 1, NULL); INSERT INTO `industry` VALUES (1004, '51', '批发业', 1, 'F'); INSERT INTO `industry` VALUES (1005, '511', '农、林、牧、渔产品批发', 1, '51'); INSERT INTO `industry` VALUES (1006, '5111', '谷物、豆及薯类批发', 1, '511'); INSERT INTO `industry` VALUES (1007, '5112', '种子批发', 1, '511'); INSERT INTO `industry` VALUES (1008, '5113', '畜牧渔业饲料批发', 1, '511'); INSERT INTO `industry` VALUES (1009, '5114', '棉、麻批发', 1, '511'); INSERT INTO `industry` VALUES (1010, '5115', '林业产品批发', 1, '511'); INSERT INTO `industry` VALUES (1011, '5116', '牲畜批发', 1, '511'); INSERT INTO `industry` VALUES (1012, '5117', '渔业产品批发', 1, '511'); INSERT INTO `industry` VALUES (1013, '5119', '其他农牧产品批发', 1, '511'); INSERT INTO `industry` VALUES (1014, '512', '食品、饮料及烟草制品批发', 1, '51'); INSERT INTO `industry` VALUES (1015, '5121', '米、面制品及食用油批发', 1, '512'); INSERT INTO `industry` VALUES (1016, '5122', '糕点、糖果及糖批发', 1, '512'); INSERT INTO `industry` VALUES (1017, '5123', '果品、蔬菜批发', 1, '512'); INSERT INTO `industry` VALUES (1018, '5124', '肉、禽、蛋、奶及水产品批发', 1, '512'); INSERT INTO `industry` VALUES (1019, '5125', '盐及调味品批发', 1, '512'); INSERT INTO `industry` VALUES (1020, '5126', '营养和保健品批发', 1, '512'); INSERT INTO `industry` VALUES (1021, '5127', '酒、饮料及茶叶批发', 1, '512'); INSERT INTO `industry` VALUES (1022, '5128', '烟草制品批发', 1, '512'); INSERT INTO `industry` VALUES (1023, '5129', '其他食品批发', 1, '512'); INSERT INTO `industry` VALUES (1024, '513', '纺织、服装及家庭用品批发', 1, '51'); INSERT INTO `industry` VALUES (1025, '5131', '纺织品、针织品及原料批发', 1, '513'); INSERT INTO `industry` VALUES (1026, '5132', '服装批发', 1, '513'); INSERT INTO `industry` VALUES (1027, '5133', '鞋帽批发', 1, '513'); INSERT INTO `industry` VALUES (1028, '5134', '化妆品及卫生用品批发', 1, '513'); INSERT INTO `industry` VALUES (1029, '5135', '厨具卫具及日用杂品批发', 1, '513'); INSERT INTO `industry` VALUES (1030, '5136', '灯具、装饰物品批发', 1, '513'); INSERT INTO `industry` VALUES (1031, '5137', '家用视听设备批发', 1, '513'); INSERT INTO `industry` VALUES (1032, '5138', '日用家电批发', 1, '513'); INSERT INTO `industry` VALUES (1033, '5139', '其他家庭用品批发', 1, '513'); INSERT INTO `industry` VALUES (1034, '514', '文化、体育用品及器材批发', 1, '51'); INSERT INTO `industry` VALUES (1035, '5141', '文具用品批发', 1, '514'); INSERT INTO `industry` VALUES (1036, '5142', '体育用品及器材批发', 1, '514'); INSERT INTO `industry` VALUES (1037, '5143', '图书批发', 1, '514'); INSERT INTO `industry` VALUES (1038, '5144', '报刊批发', 1, '514'); INSERT INTO `industry` VALUES (1039, '5145', '音像制品、电子和数字出版物批发', 1, '514'); INSERT INTO `industry` VALUES (1040, '5146', '首饰、工艺品及收藏品批发', 1, '514'); INSERT INTO `industry` VALUES (1041, '5147', '乐器批发', 1, '514'); INSERT INTO `industry` VALUES (1042, '5149', '其他文化用品批发', 1, '514'); INSERT INTO `industry` VALUES (1043, '515', '医药及医疗器材批发', 1, '51'); INSERT INTO `industry` VALUES (1044, '5151', '西药批发', 1, '515'); INSERT INTO `industry` VALUES (1045, '5152', '中药批发', 1, '515'); INSERT INTO `industry` VALUES (1046, '5153', '动物用药品批发', 1, '515'); INSERT INTO `industry` VALUES (1047, '5154', '医疗用品及器材批发', 1, '515'); INSERT INTO `industry` VALUES (1048, '516', '矿产品、建材及化工产品批发', 1, '51'); INSERT INTO `industry` VALUES (1049, '5161', '煤炭及制品批发', 1, '516'); INSERT INTO `industry` VALUES (1050, '5162', '石油及制品批发', 1, '516'); INSERT INTO `industry` VALUES (1051, '5163', '非金属矿及制品批发', 1, '516'); INSERT INTO `industry` VALUES (1052, '5164', '金属及金属矿批发', 1, '516'); INSERT INTO `industry` VALUES (1053, '5165', '建材批发', 1, '516'); INSERT INTO `industry` VALUES (1054, '5166', '化肥批发', 1, '516'); INSERT INTO `industry` VALUES (1055, '5167', '农药批发', 1, '516'); INSERT INTO `industry` VALUES (1056, '5168', '农用薄膜批发', 1, '516'); INSERT INTO `industry` VALUES (1057, '5169', '其他化工产品批发', 1, '516'); INSERT INTO `industry` VALUES (1058, '517', '机械设备、五金产品及电子产品批发', 1, '51'); INSERT INTO `industry` VALUES (1059, '5171', '农业机械批发', 1, '517'); INSERT INTO `industry` VALUES (1060, '5172', '汽车及零配件批发', 1, '517'); INSERT INTO `industry` VALUES (1061, '5173', '摩托车及零配件批发', 1, '517'); INSERT INTO `industry` VALUES (1062, '5174', '五金产品批发', 1, '517'); INSERT INTO `industry` VALUES (1063, '5175', '电气设备批发', 1, '517'); INSERT INTO `industry` VALUES (1064, '5176', '计算机、软件及辅助设备批发', 1, '517'); INSERT INTO `industry` VALUES (1065, '5177', '通讯设备批发', 1, '517'); INSERT INTO `industry` VALUES (1066, '5178', '广播影视设备批发', 1, '517'); INSERT INTO `industry` VALUES (1067, '5179', '其他机械设备及电子产品批发', 1, '517'); INSERT INTO `industry` VALUES (1068, '518', '贸易经纪与代理', 1, '51'); INSERT INTO `industry` VALUES (1069, '5181', '贸易代理', 1, '518'); INSERT INTO `industry` VALUES (1070, '5182', '一般物品拍卖 ', 1, '518'); INSERT INTO `industry` VALUES (1071, '5183', '艺术品、收藏品拍卖', 1, '518'); INSERT INTO `industry` VALUES (1072, '5184', '艺术品代理', 1, '518'); INSERT INTO `industry` VALUES (1073, '5189', '其他贸易经纪与代理', 1, '518'); INSERT INTO `industry` VALUES (1074, '519', '其他批发业', 1, '51'); INSERT INTO `industry` VALUES (1075, '5191', '再生物资回收与批发', 1, '519'); INSERT INTO `industry` VALUES (1076, '5192', '宠物食品用品批发', 1, '519'); INSERT INTO `industry` VALUES (1077, '5193', '互联网批发', 1, '519'); INSERT INTO `industry` VALUES (1078, '5199', '其他未列明批发业', 1, '519'); INSERT INTO `industry` VALUES (1079, '52', '零售业', 1, 'F'); INSERT INTO `industry` VALUES (1080, '521', '综合零售', 1, '52'); INSERT INTO `industry` VALUES (1081, '5211', '百货零售', 1, '521'); INSERT INTO `industry` VALUES (1082, '5212', '超级市场零售', 1, '521'); INSERT INTO `industry` VALUES (1083, '5213', '便利店零售', 1, '521'); INSERT INTO `industry` VALUES (1084, '5219', '其他综合零售', 1, '521'); INSERT INTO `industry` VALUES (1085, '522', '食品、饮料及烟草制品专门零售', 1, '52'); INSERT INTO `industry` VALUES (1086, '5221', '粮油零售', 1, '522'); INSERT INTO `industry` VALUES (1087, '5222', '糕点、面包零售', 1, '522'); INSERT INTO `industry` VALUES (1088, '5223', '果品、蔬菜零售', 1, '522'); INSERT INTO `industry` VALUES (1089, '5224', '肉、禽、蛋、奶及水产品零售', 1, '522'); INSERT INTO `industry` VALUES (1090, '5225', '营养和保健品零售', 1, '522'); INSERT INTO `industry` VALUES (1091, '5226', '酒、饮料及茶叶零售', 1, '522'); INSERT INTO `industry` VALUES (1092, '5227', '烟草制品零售', 1, '522'); INSERT INTO `industry` VALUES (1093, '5229', '其他食品零售', 1, '522'); INSERT INTO `industry` VALUES (1094, '523', '纺织、服装及日用品专门零售', 1, '52'); INSERT INTO `industry` VALUES (1095, '5231', '纺织品及针织品零售', 1, '523'); INSERT INTO `industry` VALUES (1096, '5232', '服装零售', 1, '523'); INSERT INTO `industry` VALUES (1097, '5233', '鞋帽零售', 1, '523'); INSERT INTO `industry` VALUES (1098, '5234', '化妆品及卫生用品零售', 1, '523'); INSERT INTO `industry` VALUES (1099, '5235', '厨具卫具及日用杂品零售', 1, '523'); INSERT INTO `industry` VALUES (1100, '5236', '钟表、眼镜零售', 1, '523'); INSERT INTO `industry` VALUES (1101, '5237', '箱包零售', 1, '523'); INSERT INTO `industry` VALUES (1102, '5238', '自行车等代步设备零售', 1, '523'); INSERT INTO `industry` VALUES (1103, '5239', '其他日用品零售', 1, '523'); INSERT INTO `industry` VALUES (1104, '524', '文化、体育用品及器材专门零售', 1, '52'); INSERT INTO `industry` VALUES (1105, '5241', '文具用品零售', 1, '524'); INSERT INTO `industry` VALUES (1106, '5242', '体育用品及器材零售', 1, '524'); INSERT INTO `industry` VALUES (1107, '5243', '图书、报刊零售', 1, '524'); INSERT INTO `industry` VALUES (1108, '5244', '音像制品、电子和数字出版物零售', 1, '524'); INSERT INTO `industry` VALUES (1109, '5245', '珠宝首饰零售', 1, '524'); INSERT INTO `industry` VALUES (1110, '5246', '工艺美术品及收藏品零售', 1, '524'); INSERT INTO `industry` VALUES (1111, '5247', '乐器零售', 1, '524'); INSERT INTO `industry` VALUES (1112, '5248', '照相器材零售', 1, '524'); INSERT INTO `industry` VALUES (1113, '5249', '其他文化用品零售', 1, '524'); INSERT INTO `industry` VALUES (1114, '525', '医药及医疗器材专门零售', 1, '52'); INSERT INTO `industry` VALUES (1115, '5251', '西药零售', 1, '525'); INSERT INTO `industry` VALUES (1116, '5252', '中药零售', 1, '525'); INSERT INTO `industry` VALUES (1117, '5253', '动物用药品零售', 1, '525'); INSERT INTO `industry` VALUES (1118, '5254', '医疗用品及器材零售', 1, '525'); INSERT INTO `industry` VALUES (1119, '5255', '保健辅助治疗器材零售', 1, '525'); INSERT INTO `industry` VALUES (1120, '526', '汽车、摩托车、零配件和燃料及其他动力销售', 1, '52'); INSERT INTO `industry` VALUES (1121, '5261', '汽车新车零售', 1, '526'); INSERT INTO `industry` VALUES (1122, '5262', '汽车旧车零售', 1, '526'); INSERT INTO `industry` VALUES (1123, '5263', '汽车零配件零售', 1, '526'); INSERT INTO `industry` VALUES (1124, '5264', '摩托车及零配件零售', 1, '526'); INSERT INTO `industry` VALUES (1125, '5265', '机动车燃油零售', 1, '526'); INSERT INTO `industry` VALUES (1126, '5266', '机动车燃气零售', 1, '526'); INSERT INTO `industry` VALUES (1127, '5267', '机动车充电销售', 1, '526'); INSERT INTO `industry` VALUES (1128, '527', '家用电器及电子产品专门零售 ', 1, '52'); INSERT INTO `industry` VALUES (1129, '5271', '家用视听设备零售', 1, '527'); INSERT INTO `industry` VALUES (1130, '5272', '日用家电零售', 1, '527'); INSERT INTO `industry` VALUES (1131, '5273', '计算机、软件及辅助设备零售', 1, '527'); INSERT INTO `industry` VALUES (1132, '5274', '通信设备零售', 1, '527'); INSERT INTO `industry` VALUES (1133, '5279', '其他电子产品零售', 1, '527'); INSERT INTO `industry` VALUES (1134, '528', '五金、家具及室内装饰材料专门零售', 1, '52'); INSERT INTO `industry` VALUES (1135, '5281', '五金零售', 1, '528'); INSERT INTO `industry` VALUES (1136, '5282', '灯具零售', 1, '528'); INSERT INTO `industry` VALUES (1137, '5283', '家具零售', 1, '528'); INSERT INTO `industry` VALUES (1138, '5284', '涂料零售', 1, '528'); INSERT INTO `industry` VALUES (1139, '5285', '卫生洁具零售', 1, '528'); INSERT INTO `industry` VALUES (1140, '5286', '木质装饰材料零售', 1, '528'); INSERT INTO `industry` VALUES (1141, '5287', '陶瓷、石材装饰材料零售', 1, '528'); INSERT INTO `industry` VALUES (1142, '5289', '其他室内装饰材料零售', 1, '528'); INSERT INTO `industry` VALUES (1143, '529', '货摊、无店铺及其他零售业', 1, '52'); INSERT INTO `industry` VALUES (1144, '5291', '流动货摊零售', 1, '529'); INSERT INTO `industry` VALUES (1145, '5292', '互联网零售', 1, '529'); INSERT INTO `industry` VALUES (1146, '5293', '邮购及电视、电话零售', 1, '529'); INSERT INTO `industry` VALUES (1147, '5294', '自动售货机零售', 1, '529'); INSERT INTO `industry` VALUES (1148, '5295', '旧货零售', 1, '529'); INSERT INTO `industry` VALUES (1149, '5296', '生活用燃料零售', 1, '529'); INSERT INTO `industry` VALUES (1150, '5297', '宠物食品用品零售', 1, '529'); INSERT INTO `industry` VALUES (1151, '5299', '其他未列明零售业', 1, '529'); INSERT INTO `industry` VALUES (1152, 'G', '交通运输、仓储和邮政业', 1, NULL); INSERT INTO `industry` VALUES (1153, '53', '铁路运输业', 1, 'G'); INSERT INTO `industry` VALUES (1154, '531', '铁路旅客运输', 1, '53'); INSERT INTO `industry` VALUES (1155, '5311', '高速铁路旅客运输', 1, '531'); INSERT INTO `industry` VALUES (1156, '5312', '城际铁路旅客运输', 1, '531'); INSERT INTO `industry` VALUES (1157, '5313', '普通铁路旅客运输', 1, '531'); INSERT INTO `industry` VALUES (1158, '5320', '铁路货物运输', 1, '53'); INSERT INTO `industry` VALUES (1159, '533', '铁路运输辅助活动', 1, '53'); INSERT INTO `industry` VALUES (1160, '5331', '客运火车站', 1, '533'); INSERT INTO `industry` VALUES (1161, '5332', '货运火车站(场)', 1, '533'); INSERT INTO `industry` VALUES (1162, '5333', '铁路运输维护活动', 1, '533'); INSERT INTO `industry` VALUES (1163, '5339', '其他铁路运输辅助活动', 1, '533'); INSERT INTO `industry` VALUES (1164, '54', '道路运输业', 1, 'G'); INSERT INTO `industry` VALUES (1165, '541', '城市公共交通运输', 1, '54'); INSERT INTO `industry` VALUES (1166, '5411', '公共电汽车客运', 1, '541'); INSERT INTO `industry` VALUES (1167, '5412', '城市轨道交通', 1, '541'); INSERT INTO `industry` VALUES (1168, '5413', '出租车客运', 1, '541'); INSERT INTO `industry` VALUES (1169, '5414', '公共自行车服务', 1, '541'); INSERT INTO `industry` VALUES (1170, '5419', '其他城市公共交通运输 ', 1, '541'); INSERT INTO `industry` VALUES (1171, '542', '公路旅客运输', 1, '54'); INSERT INTO `industry` VALUES (1172, '5421', '长途客运', 1, '542'); INSERT INTO `industry` VALUES (1173, '5422', '旅游客运', 1, '542'); INSERT INTO `industry` VALUES (1174, '5429', '其他公路客运', 1, '542'); INSERT INTO `industry` VALUES (1175, '543', '道路货物运输', 1, '54'); INSERT INTO `industry` VALUES (1176, '5431', '普通货物道路运输', 1, '543'); INSERT INTO `industry` VALUES (1177, '5432', '冷藏车道路运输', 1, '543'); INSERT INTO `industry` VALUES (1178, '5433', '集装箱道路运输', 1, '543'); INSERT INTO `industry` VALUES (1179, '5434', '大型货物道路运输', 1, '543'); INSERT INTO `industry` VALUES (1180, '5435', '危险货物道路运输', 1, '543'); INSERT INTO `industry` VALUES (1181, '5436', '邮件包裹道路运输', 1, '543'); INSERT INTO `industry` VALUES (1182, '5437', '城市配送', 1, '543'); INSERT INTO `industry` VALUES (1183, '5438', '搬家运输', 1, '543'); INSERT INTO `industry` VALUES (1184, '5439', '其他道路货物运输', 1, '543'); INSERT INTO `industry` VALUES (1185, '544', '道路运输辅助活动', 1, '54'); INSERT INTO `industry` VALUES (1186, '5441', '客运汽车站', 1, '544'); INSERT INTO `industry` VALUES (1187, '5442', '货运枢纽(站)', 1, '544'); INSERT INTO `industry` VALUES (1188, '5443', '公路管理与养护', 1, '544'); INSERT INTO `industry` VALUES (1189, '5449', '其他道路运输辅助活动', 1, '544'); INSERT INTO `industry` VALUES (1190, '55', '水上运输业', 1, 'G'); INSERT INTO `industry` VALUES (1191, '551', '水上旅客运输', 1, '55'); INSERT INTO `industry` VALUES (1192, '5511', '海上旅客运输', 1, '551'); INSERT INTO `industry` VALUES (1193, '5512', '内河旅客运输', 1, '551'); INSERT INTO `industry` VALUES (1194, '5513', '客运轮渡运输', 1, '551'); INSERT INTO `industry` VALUES (1195, '552', '水上货物运输', 1, '55'); INSERT INTO `industry` VALUES (1196, '5521', '远洋货物运输', 1, '552'); INSERT INTO `industry` VALUES (1197, '5522', '沿海货物运输', 1, '552'); INSERT INTO `industry` VALUES (1198, '5523', '内河货物运输', 1, '552'); INSERT INTO `industry` VALUES (1199, '553', '水上运输辅助活动', 1, '55'); INSERT INTO `industry` VALUES (1200, '5531', '客运港口', 1, '553'); INSERT INTO `industry` VALUES (1201, '5532', '货运港口', 1, '553'); INSERT INTO `industry` VALUES (1202, '5539', '其他水上运输辅助活动', 1, '553'); INSERT INTO `industry` VALUES (1203, '56', '航空运输业 ', 1, 'G'); INSERT INTO `industry` VALUES (1204, '561', '航空客货运输', 1, '56'); INSERT INTO `industry` VALUES (1205, '5611', '航空旅客运输', 1, '561'); INSERT INTO `industry` VALUES (1206, '5612', '航空货物运输', 1, '561'); INSERT INTO `industry` VALUES (1207, '562', '通用航空服务', 1, '56'); INSERT INTO `industry` VALUES (1208, '5621', '通用航空生产服务', 1, '562'); INSERT INTO `industry` VALUES (1209, '5622', '观光游览航空服务', 1, '562'); INSERT INTO `industry` VALUES (1210, '5623', '体育航空运动服务', 1, '562'); INSERT INTO `industry` VALUES (1211, '5629', '其他通用航空服务', 1, '562'); INSERT INTO `industry` VALUES (1212, '563', '航空运输辅助活动', 1, '56'); INSERT INTO `industry` VALUES (1213, '5631', '机场', 1, '563'); INSERT INTO `industry` VALUES (1214, '5632', '空中交通管理', 1, '563'); INSERT INTO `industry` VALUES (1215, '5639', '其他航空运输辅助活动', 1, '563'); INSERT INTO `industry` VALUES (1216, '57', '管道运输业 ', 1, 'G'); INSERT INTO `industry` VALUES (1217, '5710', '海底管道运输', 1, '57'); INSERT INTO `industry` VALUES (1218, '5720', '陆地管道运输', 1, '57'); INSERT INTO `industry` VALUES (1219, '58', '多式联运和运输代理业', 1, 'G'); INSERT INTO `industry` VALUES (1220, '5810', '多式联运', 1, '58'); INSERT INTO `industry` VALUES (1221, '582', '运输代理业', 1, '58'); INSERT INTO `industry` VALUES (1222, '5821', '货物运输代理', 1, '582'); INSERT INTO `industry` VALUES (1223, '5822', '旅客票务代理', 1, '582'); INSERT INTO `industry` VALUES (1224, '5829', '其他运输代理业', 1, '582'); INSERT INTO `industry` VALUES (1225, '59', '装卸搬运和仓储业 ', 1, 'G'); INSERT INTO `industry` VALUES (1226, '5910', '装卸搬运', 1, '59'); INSERT INTO `industry` VALUES (1227, '5920', '通用仓储', 1, '59'); INSERT INTO `industry` VALUES (1228, '5930', '低温仓储', 1, '59'); INSERT INTO `industry` VALUES (1229, '594', '危险品仓储', 1, '59'); INSERT INTO `industry` VALUES (1230, '5941', '油气仓储', 1, '594'); INSERT INTO `industry` VALUES (1231, '5942', '危险化学品仓储', 1, '594'); INSERT INTO `industry` VALUES (1232, '5949', '其他危险品仓储', 1, '594'); INSERT INTO `industry` VALUES (1233, '595', '谷物、棉花等农产品仓储', 1, '59'); INSERT INTO `industry` VALUES (1234, '5951', '谷物仓储', 1, '595'); INSERT INTO `industry` VALUES (1235, '5952', '棉花仓储', 1, '595'); INSERT INTO `industry` VALUES (1236, '5959', '其他农产品仓储', 1, '595'); INSERT INTO `industry` VALUES (1237, '5960', '中药材仓储', 1, '59'); INSERT INTO `industry` VALUES (1238, '5990', '其他仓储业', 1, '59'); INSERT INTO `industry` VALUES (1239, '60', '邮政业', 1, 'G'); INSERT INTO `industry` VALUES (1240, '6010', '邮政基本服务', 1, '60'); INSERT INTO `industry` VALUES (1241, '6020', '快递服务', 1, '60'); INSERT INTO `industry` VALUES (1242, '6090', '其他寄递服务', 1, '60'); INSERT INTO `industry` VALUES (1243, 'H', '住宿和餐饮业', 1, NULL); INSERT INTO `industry` VALUES (1244, '61', '住宿业', 1, 'H'); INSERT INTO `industry` VALUES (1245, '6110', '旅游饭店', 1, '61'); INSERT INTO `industry` VALUES (1246, '612', '一般旅馆', 1, '61'); INSERT INTO `industry` VALUES (1247, '6121', '经济型连锁酒店', 1, '612'); INSERT INTO `industry` VALUES (1248, '6129', '其他一般旅馆', 1, '612'); INSERT INTO `industry` VALUES (1249, '6130', '民宿服务', 1, '61'); INSERT INTO `industry` VALUES (1250, '6140', '露营地服务', 1, '61'); INSERT INTO `industry` VALUES (1251, '6190', '其他住宿业', 1, '61'); INSERT INTO `industry` VALUES (1252, '62', '餐饮业', 1, 'H'); INSERT INTO `industry` VALUES (1253, '6210', '正餐服务', 1, '62'); INSERT INTO `industry` VALUES (1254, '6220', '快餐服务', 1, '62'); INSERT INTO `industry` VALUES (1255, '623', '饮料及冷饮服务', 1, '62'); INSERT INTO `industry` VALUES (1256, '6231', '茶馆服务', 1, '623'); INSERT INTO `industry` VALUES (1257, '6232', '咖啡馆服务', 1, '623'); INSERT INTO `industry` VALUES (1258, '6233', '酒吧服务 ', 1, '623'); INSERT INTO `industry` VALUES (1259, '6239', '其他饮料及冷饮服务', 1, '623'); INSERT INTO `industry` VALUES (1260, '624', '餐饮配送及外卖送餐服务', 1, '62'); INSERT INTO `industry` VALUES (1261, '6241', '餐饮配送服务', 1, '624'); INSERT INTO `industry` VALUES (1262, '6242', '外卖送餐服务', 1, '624'); INSERT INTO `industry` VALUES (1263, '629', '其他餐饮业', 1, '62'); INSERT INTO `industry` VALUES (1264, '6291', '小吃服务', 1, '629'); INSERT INTO `industry` VALUES (1265, '6299', '其他未列明餐饮业', 1, '629'); INSERT INTO `industry` VALUES (1266, 'I', '信息传输、软件和信息技术服务业', 1, NULL); INSERT INTO `industry` VALUES (1267, '63', '电信、广播电视和卫星传输服务', 1, 'I'); INSERT INTO `industry` VALUES (1268, '631', '电信', 1, '63'); INSERT INTO `industry` VALUES (1269, '6311', '固定电信服务', 1, '631'); INSERT INTO `industry` VALUES (1270, '6312', '移动电信服务', 1, '631'); INSERT INTO `industry` VALUES (1271, '6319', '其他电信服务', 1, '631'); INSERT INTO `industry` VALUES (1272, '632', '广播电视传输服务', 1, '63'); INSERT INTO `industry` VALUES (1273, '6321', '有线广播电视传输服务', 1, '632'); INSERT INTO `industry` VALUES (1274, '6322', '无线广播电视传输服务', 1, '632'); INSERT INTO `industry` VALUES (1275, '633', '卫星传输服务', 1, '63'); INSERT INTO `industry` VALUES (1276, '6331', '广播电视卫星传输服务', 1, '633'); INSERT INTO `industry` VALUES (1277, '6339', '其他卫星传输服务', 1, '633'); INSERT INTO `industry` VALUES (1278, '64', '互联网和相关服务', 1, 'I'); INSERT INTO `industry` VALUES (1279, '6410', '互联网接入及相关服务', 1, '64'); INSERT INTO `industry` VALUES (1280, '642', '互联网信息服务', 1, '64'); INSERT INTO `industry` VALUES (1281, '6421', '互联网搜索服务', 1, '642'); INSERT INTO `industry` VALUES (1282, '6422', '互联网游戏服务', 1, '642'); INSERT INTO `industry` VALUES (1283, '6429', '互联网其他信息服务', 1, '642'); INSERT INTO `industry` VALUES (1284, '643', '互联网平台', 1, '64'); INSERT INTO `industry` VALUES (1285, '6431', '互联网生产服务平台', 1, '643'); INSERT INTO `industry` VALUES (1286, '6432', '互联网生活服务平台', 1, '643'); INSERT INTO `industry` VALUES (1287, '6433', '互联网科技创新平台', 1, '643'); INSERT INTO `industry` VALUES (1288, '6434', '互联网公共服务平台', 1, '643'); INSERT INTO `industry` VALUES (1289, '6439', '其他互联网平台', 1, '643'); INSERT INTO `industry` VALUES (1290, '6440', '互联网安全服务', 1, '64'); INSERT INTO `industry` VALUES (1291, '6450', '互联网数据服务', 1, '64'); INSERT INTO `industry` VALUES (1292, '6490', '其他互联网服务', 1, '64'); INSERT INTO `industry` VALUES (1293, '65', '软件和信息技术服务业', 1, 'I'); INSERT INTO `industry` VALUES (1294, '651', '软件开发', 1, '65'); INSERT INTO `industry` VALUES (1295, '6511', '基础软件开发', 1, '651'); INSERT INTO `industry` VALUES (1296, '6512', '支撑软件开发', 1, '651'); INSERT INTO `industry` VALUES (1297, '6513', '应用软件开发', 1, '651'); INSERT INTO `industry` VALUES (1298, '6519', '其他软件开发', 1, '651'); INSERT INTO `industry` VALUES (1299, '6520', '集成电路设计', 1, '65'); INSERT INTO `industry` VALUES (1300, '653', '信息系统集成和物联网技术服务', 1, '65'); INSERT INTO `industry` VALUES (1301, '6531', '信息系统集成服务', 1, '653'); INSERT INTO `industry` VALUES (1302, '6532', '物联网技术服务', 1, '653'); INSERT INTO `industry` VALUES (1303, '6540', '运行维护服务', 1, '65'); INSERT INTO `industry` VALUES (1304, '6550', '信息处理和存储支持服务', 1, '65'); INSERT INTO `industry` VALUES (1305, '6560', '信息技术咨询服务', 1, '65'); INSERT INTO `industry` VALUES (1306, '657', '数字内容服务', 1, '65'); INSERT INTO `industry` VALUES (1307, '6571', '地理遥感信息服务', 1, '657'); INSERT INTO `industry` VALUES (1308, '6572', '动漫、游戏数字内容服务', 1, '657'); INSERT INTO `industry` VALUES (1309, '6579', '其他数字内容服务', 1, '657'); INSERT INTO `industry` VALUES (1310, '659', '其他信息技术服务业', 1, '65'); INSERT INTO `industry` VALUES (1311, '6591', '呼叫中心', 1, '659'); INSERT INTO `industry` VALUES (1312, '6599', '其他未列明信息技术服务业', 1, '659'); INSERT INTO `industry` VALUES (1313, 'J', '金融业', 1, NULL); INSERT INTO `industry` VALUES (1314, '66', '货币金融服务', 1, 'J'); INSERT INTO `industry` VALUES (1315, '6610', '中央银行服务', 1, '66'); INSERT INTO `industry` VALUES (1316, '662', '货币银行服务', 1, '66'); INSERT INTO `industry` VALUES (1317, '6621', '商业银行服务', 1, '662'); INSERT INTO `industry` VALUES (1318, '6622', '政策性银行服务', 1, '662'); INSERT INTO `industry` VALUES (1319, '6623', '信用合作社服务', 1, '662'); INSERT INTO `industry` VALUES (1320, '6624', '农村资金互助社服务', 1, '662'); INSERT INTO `industry` VALUES (1321, '6629', '其他货币银行服务', 1, '662'); INSERT INTO `industry` VALUES (1322, '663', '非货币银行服务', 1, '66'); INSERT INTO `industry` VALUES (1323, '6631', '融资租赁服务', 1, '663'); INSERT INTO `industry` VALUES (1324, '6632', '财务公司服务 ', 1, '663'); INSERT INTO `industry` VALUES (1325, '6633', '典当', 1, '663'); INSERT INTO `industry` VALUES (1326, '6634', '汽车金融公司服务', 1, '663'); INSERT INTO `industry` VALUES (1327, '6635', '小额贷款公司服务 ', 1, '663'); INSERT INTO `industry` VALUES (1328, '6636', '消费金融公司服务 ', 1, '663'); INSERT INTO `industry` VALUES (1329, '6637', '网络借贷服务', 1, '663'); INSERT INTO `industry` VALUES (1330, '6639', '其他非货币银行服务', 1, '663'); INSERT INTO `industry` VALUES (1331, '6640', '银行理财服务', 1, '66'); INSERT INTO `industry` VALUES (1332, '6650', '银行监管服务', 1, '66'); INSERT INTO `industry` VALUES (1333, '67', '资本市场服务', 1, 'J'); INSERT INTO `industry` VALUES (1334, '671', '证券市场服务', 1, '67'); INSERT INTO `industry` VALUES (1335, '6711', '证券市场管理服务', 1, '671'); INSERT INTO `industry` VALUES (1336, '6712', '证券经纪交易服务', 1, '671'); INSERT INTO `industry` VALUES (1337, '6720', '公开募集证券投资基金', 1, '67'); INSERT INTO `industry` VALUES (1338, '673', '非公开募集证券投资基金', 1, '67'); INSERT INTO `industry` VALUES (1339, '6731', '创业投资基金', 1, '673'); INSERT INTO `industry` VALUES (1340, '6732', '天使投资', 1, '673'); INSERT INTO `industry` VALUES (1341, '6739', '其他非公开募集证券投资基金', 1, '673'); INSERT INTO `industry` VALUES (1342, '674', '期货市场服务', 1, '67'); INSERT INTO `industry` VALUES (1343, '6741', '期货市场管理服务', 1, '674'); INSERT INTO `industry` VALUES (1344, '6749', '其他期货市场服务', 1, '674'); INSERT INTO `industry` VALUES (1345, '6750', '证券期货监管服务', 1, '67'); INSERT INTO `industry` VALUES (1346, '6760', '资本投资服务', 1, '67'); INSERT INTO `industry` VALUES (1347, '6790', '其他资本市场服务', 1, '67'); INSERT INTO `industry` VALUES (1348, '68', '保险业', 1, 'J'); INSERT INTO `industry` VALUES (1349, '681', '人身保险', 1, '68'); INSERT INTO `industry` VALUES (1350, '6811', '人寿保险', 1, '681'); INSERT INTO `industry` VALUES (1351, '6812', '年金保险', 1, '681'); INSERT INTO `industry` VALUES (1352, '6813', '健康保险', 1, '681'); INSERT INTO `industry` VALUES (1353, '6814', '意外伤害保险', 1, '681'); INSERT INTO `industry` VALUES (1354, '6820', '财产保险', 1, '68'); INSERT INTO `industry` VALUES (1355, '6830', '再保险', 1, '68'); INSERT INTO `industry` VALUES (1356, '6840', '商业养老金', 1, '68'); INSERT INTO `industry` VALUES (1357, '685', '保险中介服务', 1, '68'); INSERT INTO `industry` VALUES (1358, '6851', '保险经纪服务', 1, '685'); INSERT INTO `industry` VALUES (1359, '6852', '保险代理服务', 1, '685'); INSERT INTO `industry` VALUES (1360, '6853', '保险公估服务', 1, '685'); INSERT INTO `industry` VALUES (1361, '6860', '保险资产管理', 1, '68'); INSERT INTO `industry` VALUES (1362, '6870', '保险监管服务', 1, '68'); INSERT INTO `industry` VALUES (1363, '6890', '其他保险活动', 1, '68'); INSERT INTO `industry` VALUES (1364, '69', '其他金融业', 1, 'J'); INSERT INTO `industry` VALUES (1365, '691', '金融信托与管理服务', 1, '69'); INSERT INTO `industry` VALUES (1366, '6911', '信托公司', 1, '691'); INSERT INTO `industry` VALUES (1367, '6919', '其他金融信托与管理服务', 1, '691'); INSERT INTO `industry` VALUES (1368, '6920', '控股公司服务', 1, '69'); INSERT INTO `industry` VALUES (1369, '6930', '非金融机构支付服务', 1, '69'); INSERT INTO `industry` VALUES (1370, '6940', '金融信息服务', 1, '69'); INSERT INTO `industry` VALUES (1371, '6950', '金融资产管理公司', 1, '69'); INSERT INTO `industry` VALUES (1372, '699', '其他未列明金融业', 1, '69'); INSERT INTO `industry` VALUES (1373, '6991', '货币经纪公司服务', 1, '699'); INSERT INTO `industry` VALUES (1374, '6999', '其他未包括金融业', 1, '699'); INSERT INTO `industry` VALUES (1375, 'K', '房地产业', 1, NULL); INSERT INTO `industry` VALUES (1376, '70', '房地产业', 1, 'K'); INSERT INTO `industry` VALUES (1377, '7010', '房地产开发经营', 1, '70'); INSERT INTO `industry` VALUES (1378, '7020', '物业管理', 1, '70'); INSERT INTO `industry` VALUES (1379, '7030', '房地产中介服务', 1, '70'); INSERT INTO `industry` VALUES (1380, '7040', '房地产租赁经营', 1, '70'); INSERT INTO `industry` VALUES (1381, '7090', '其他房地产业', 1, '70'); INSERT INTO `industry` VALUES (1382, 'L', '租赁和商务服务业', 1, NULL); INSERT INTO `industry` VALUES (1383, '71', '租赁业', 1, 'L'); INSERT INTO `industry` VALUES (1384, '711', '机械设备经营租赁', 1, '71'); INSERT INTO `industry` VALUES (1385, '7111', '汽车租赁', 1, '711'); INSERT INTO `industry` VALUES (1386, '7112', '农业机械经营租赁', 1, '711'); INSERT INTO `industry` VALUES (1387, '7113', '建筑工程机械与设备经营租赁', 1, '711'); INSERT INTO `industry` VALUES (1388, '7114', '计算机及通讯设备经营租赁', 1, '711'); INSERT INTO `industry` VALUES (1389, '7115', '医疗设备经营租赁', 1, '711'); INSERT INTO `industry` VALUES (1390, '7119', '其他机械与设备经营租赁', 1, '711'); INSERT INTO `industry` VALUES (1391, '712', '文体设备和用品出租', 1, '71'); INSERT INTO `industry` VALUES (1392, '7121', '休闲娱乐用品设备出租', 1, '712'); INSERT INTO `industry` VALUES (1393, '7122', '体育用品设备出租', 1, '712'); INSERT INTO `industry` VALUES (1394, '7123', '文化用品设备出租', 1, '712'); INSERT INTO `industry` VALUES (1395, '7124', '图书出租', 1, '712'); INSERT INTO `industry` VALUES (1396, '7125', '音像制品出租', 1, '712'); INSERT INTO `industry` VALUES (1397, '7129', '其他文体设备和用品出租', 1, '712'); INSERT INTO `industry` VALUES (1398, '7130', '日用品出租', 1, '71'); INSERT INTO `industry` VALUES (1399, '72', '商务服务业', 1, 'L'); INSERT INTO `industry` VALUES (1400, '721', '组织管理服务', 1, '72'); INSERT INTO `industry` VALUES (1401, '7211', '企业总部管理', 1, '721'); INSERT INTO `industry` VALUES (1402, '7212', '投资与资产管理', 1, '721'); INSERT INTO `industry` VALUES (1403, '7213', '资源与产权交易服务', 1, '721'); INSERT INTO `industry` VALUES (1404, '7214', '单位后勤管理服务', 1, '721'); INSERT INTO `industry` VALUES (1405, '7215', '农村集体经济组织管理', 1, '721'); INSERT INTO `industry` VALUES (1406, '7219', '其他组织管理服务', 1, '721'); INSERT INTO `industry` VALUES (1407, '722', '综合管理服务', 1, '72'); INSERT INTO `industry` VALUES (1408, '7221', '园区管理服务', 1, '722'); INSERT INTO `industry` VALUES (1409, '7222', '商业综合体管理服务', 1, '722'); INSERT INTO `industry` VALUES (1410, '7223', '市场管理服务', 1, '722'); INSERT INTO `industry` VALUES (1411, '7224', '供应链管理服务', 1, '722'); INSERT INTO `industry` VALUES (1412, '7229', '其他综合管理服务', 1, '722'); INSERT INTO `industry` VALUES (1413, '723', '法律服务', 1, '72'); INSERT INTO `industry` VALUES (1414, '7231', '律师及相关法律服务', 1, '723'); INSERT INTO `industry` VALUES (1415, '7232', '公证服务', 1, '723'); INSERT INTO `industry` VALUES (1416, '7239', '其他法律服务', 1, '723'); INSERT INTO `industry` VALUES (1417, '724', '咨询与调查', 1, '72'); INSERT INTO `industry` VALUES (1418, '7241', '会计、审计及税务服务', 1, '724'); INSERT INTO `industry` VALUES (1419, '7242', '市场调查', 1, '724'); INSERT INTO `industry` VALUES (1420, '7243', '社会经济咨询', 1, '724'); INSERT INTO `industry` VALUES (1421, '7244', '健康咨询', 1, '724'); INSERT INTO `industry` VALUES (1422, '7245', '环保咨询', 1, '724'); INSERT INTO `industry` VALUES (1423, '7246', '体育咨询', 1, '724'); INSERT INTO `industry` VALUES (1424, '7249', '其他专业咨询与调查', 1, '724'); INSERT INTO `industry` VALUES (1425, '725', '广告业', 1, '72'); INSERT INTO `industry` VALUES (1426, '7251', '互联网广告服务', 1, '725'); INSERT INTO `industry` VALUES (1427, '7259', '其他广告服务', 1, '725'); INSERT INTO `industry` VALUES (1428, '726', '人力资源服务', 1, '72'); INSERT INTO `industry` VALUES (1429, '7261', '公共就业服务', 1, '726'); INSERT INTO `industry` VALUES (1430, '7262', '职业中介服务', 1, '726'); INSERT INTO `industry` VALUES (1431, '7263', '劳务派遣服务', 1, '726'); INSERT INTO `industry` VALUES (1432, '7264', '创业指导服务', 1, '726'); INSERT INTO `industry` VALUES (1433, '7269', '其他人力资源服务', 1, '726'); INSERT INTO `industry` VALUES (1434, '727', '安全保护服务', 1, '72'); INSERT INTO `industry` VALUES (1435, '7271', '安全服务', 1, '727'); INSERT INTO `industry` VALUES (1436, '7272', ' 安全系统监控服务', 1, '727'); INSERT INTO `industry` VALUES (1437, '7279', '其他安全保护服务', 1, '727'); INSERT INTO `industry` VALUES (1438, '728', '会议、展览及相关服务', 1, '72'); INSERT INTO `industry` VALUES (1439, '7281', '科技会展服务', 1, '728'); INSERT INTO `industry` VALUES (1440, '7282', '旅游会展服务', 1, '728'); INSERT INTO `industry` VALUES (1441, '7283', '体育会展服务', 1, '728'); INSERT INTO `industry` VALUES (1442, '7284', '文化会展服务', 1, '728'); INSERT INTO `industry` VALUES (1443, '7289', '其他会议、展览及相关服务', 1, '728'); INSERT INTO `industry` VALUES (1444, '729', '其他商务服务业', 1, '72'); INSERT INTO `industry` VALUES (1445, '7291', '旅行社及相关服务', 1, '729'); INSERT INTO `industry` VALUES (1446, '7292', '包装服务', 1, '729'); INSERT INTO `industry` VALUES (1447, '7293', '办公服务', 1, '729'); INSERT INTO `industry` VALUES (1448, '7294', '翻译服务', 1, '729'); INSERT INTO `industry` VALUES (1449, '7295', '信用服务', 1, '729'); INSERT INTO `industry` VALUES (1450, '7296', '非融资担保服务', 1, '729'); INSERT INTO `industry` VALUES (1451, '7297', '商务代理代办服务', 1, '729'); INSERT INTO `industry` VALUES (1452, '7298', '票务代理服务', 1, '729'); INSERT INTO `industry` VALUES (1453, '7299', '其他未列明商务服务业', 1, '729'); INSERT INTO `industry` VALUES (1454, 'M', '科学研究和技术服务业', 1, NULL); INSERT INTO `industry` VALUES (1455, '73', '研究和试验发展', 1, 'M'); INSERT INTO `industry` VALUES (1456, '7310', '自然科学研究和试验发展', 1, '73'); INSERT INTO `industry` VALUES (1457, '7320', '工程和技术研究和试验发展', 1, '73'); INSERT INTO `industry` VALUES (1458, '7330', '农业科学研究和试验发展', 1, '73'); INSERT INTO `industry` VALUES (1459, '7340', '医学研究和试验发展', 1, '73'); INSERT INTO `industry` VALUES (1460, '7350', '社会人文科学研究', 1, '73'); INSERT INTO `industry` VALUES (1461, '74', '专业技术服务业', 1, 'M'); INSERT INTO `industry` VALUES (1462, '7410', '气象服务', 1, '74'); INSERT INTO `industry` VALUES (1463, '7420', '地震服务', 1, '74'); INSERT INTO `industry` VALUES (1464, '743', '海洋服务', 1, '74'); INSERT INTO `industry` VALUES (1465, '7431', '海洋气象服务', 1, '743'); INSERT INTO `industry` VALUES (1466, '7432', '海洋环境服务', 1, '743'); INSERT INTO `industry` VALUES (1467, '7439', '其他海洋服务', 1, '743'); INSERT INTO `industry` VALUES (1468, '744', '测绘地理信息服务', 1, '74'); INSERT INTO `industry` VALUES (1469, '7441', '遥感测绘服务', 1, '744'); INSERT INTO `industry` VALUES (1470, '7449', '其他测绘地理信息服务', 1, '744'); INSERT INTO `industry` VALUES (1471, '745', '质检技术服务', 1, '74'); INSERT INTO `industry` VALUES (1472, '7451', '检验检疫服务', 1, '745'); INSERT INTO `industry` VALUES (1473, '7452', '检测服务', 1, '745'); INSERT INTO `industry` VALUES (1474, '7453', '计量服务', 1, '745'); INSERT INTO `industry` VALUES (1475, '7454', '标准化服务', 1, '745'); INSERT INTO `industry` VALUES (1476, '7455', '认证认可服务', 1, '745'); INSERT INTO `industry` VALUES (1477, '7459', '其他质检技术服务', 1, '745'); INSERT INTO `industry` VALUES (1478, '746', '环境与生态监测', 1, '74'); INSERT INTO `industry` VALUES (1479, '7461', '环境保护监测', 1, '746'); INSERT INTO `industry` VALUES (1480, '7462', '生态资源监测', 1, '746'); INSERT INTO `industry` VALUES (1481, '7463', '野生动物疫源疫病防控监测', 1, '746'); INSERT INTO `industry` VALUES (1482, '747', '地质勘查 ', 1, '74'); INSERT INTO `industry` VALUES (1483, '7471', '能源矿产地质勘查', 1, '747'); INSERT INTO `industry` VALUES (1484, '7472', '固体矿产地质勘查', 1, '747'); INSERT INTO `industry` VALUES (1485, '7473', '水、二氧化碳等矿产地质勘查', 1, '747'); INSERT INTO `industry` VALUES (1486, '7474', '基础地质勘查', 1, '747'); INSERT INTO `industry` VALUES (1487, '7475', '地质勘查技术服务', 1, '747'); INSERT INTO `industry` VALUES (1488, '748', '工程技术与设计服务', 1, '74'); INSERT INTO `industry` VALUES (1489, '7481', '工程管理服务', 1, '748'); INSERT INTO `industry` VALUES (1490, '7482', '工程监理服务', 1, '748'); INSERT INTO `industry` VALUES (1491, '7483', '工程勘察活动', 1, '748'); INSERT INTO `industry` VALUES (1492, '7484', '工程设计活动', 1, '748'); INSERT INTO `industry` VALUES (1493, '7485', '规划设计管理', 1, '748'); INSERT INTO `industry` VALUES (1494, '7486', '土地规划服务', 1, '748'); INSERT INTO `industry` VALUES (1495, '749', '工业与专业设计及其他专业技术服务', 1, '74'); INSERT INTO `industry` VALUES (1496, '7491', '工业设计服务', 1, '749'); INSERT INTO `industry` VALUES (1497, '7492', '专业设计服务', 1, '749'); INSERT INTO `industry` VALUES (1498, '7493', '兽医服务', 1, '749'); INSERT INTO `industry` VALUES (1499, '7499', '其他未列明专业技术服务业', 1, '749'); INSERT INTO `industry` VALUES (1500, '75', '科技推广和应用服务', 1, 'M'); INSERT INTO `industry` VALUES (1501, '751', '技术推广服务', 1, '75'); INSERT INTO `industry` VALUES (1502, '7511', '农林牧渔技术推广服务', 1, '751'); INSERT INTO `industry` VALUES (1503, '7512', '生物技术推广服务', 1, '751'); INSERT INTO `industry` VALUES (1504, '7513', '新材料技术推广服务', 1, '751'); INSERT INTO `industry` VALUES (1505, '7514', '节能技术推广服务', 1, '751'); INSERT INTO `industry` VALUES (1506, '7515', '新能源技术推广服务', 1, '751'); INSERT INTO `industry` VALUES (1507, '7516', '环保技术推广服务', 1, '751'); INSERT INTO `industry` VALUES (1508, '7517', '三维(3D)打印技术推广服务', 1, '751'); INSERT INTO `industry` VALUES (1509, '7519', '其他技术推广服务', 1, '751'); INSERT INTO `industry` VALUES (1510, '7520', '知识产权服务', 1, '75'); INSERT INTO `industry` VALUES (1511, '7530', '科技中介服务', 1, '75'); INSERT INTO `industry` VALUES (1512, '7540', '创业空间服务', 1, '75'); INSERT INTO `industry` VALUES (1513, '7590', '其他科技推广服务业', 1, '75'); INSERT INTO `industry` VALUES (1514, 'N', '水利、环境和公共设施管理业', 1, NULL); INSERT INTO `industry` VALUES (1515, '76', '水利管理业', 1, 'N'); INSERT INTO `industry` VALUES (1516, '7610', '防洪除涝设施管理', 1, '76'); INSERT INTO `industry` VALUES (1517, '7620', '水资源管理', 1, '76'); INSERT INTO `industry` VALUES (1518, '7630', '天然水收集与分配', 1, '76'); INSERT INTO `industry` VALUES (1519, '7640', '水文服务', 1, '76'); INSERT INTO `industry` VALUES (1520, '7690', '其他水利管理业', 1, '76'); INSERT INTO `industry` VALUES (1521, '77', '生态保护和环境治理业', 1, 'N'); INSERT INTO `industry` VALUES (1522, '771', '生态保护', 1, '77'); INSERT INTO `industry` VALUES (1523, '7711', '自然生态系统保护管理', 1, '771'); INSERT INTO `industry` VALUES (1524, '7712', '自然遗迹保护管理', 1, '771'); INSERT INTO `industry` VALUES (1525, '7713', '野生动物保护', 1, '771'); INSERT INTO `industry` VALUES (1526, '7714', '野生植物保护', 1, '771'); INSERT INTO `industry` VALUES (1527, '7715', '动物园、水族馆管理服务', 1, '771'); INSERT INTO `industry` VALUES (1528, '7716', '植物园管理服务', 1, '771'); INSERT INTO `industry` VALUES (1529, '7719', '其他自然保护', 1, '771'); INSERT INTO `industry` VALUES (1530, '772', '环境治理业', 1, '77'); INSERT INTO `industry` VALUES (1531, '7721', '水污染治理', 1, '772'); INSERT INTO `industry` VALUES (1532, '7722', '大气污染治理', 1, '772'); INSERT INTO `industry` VALUES (1533, '7723', '固体废物治理', 1, '772'); INSERT INTO `industry` VALUES (1534, '7724', '危险废物治理', 1, '772'); INSERT INTO `industry` VALUES (1535, '7725', '放射性废物治理', 1, '772'); INSERT INTO `industry` VALUES (1536, '7726', '土壤污染治理与修复服务', 1, '772'); INSERT INTO `industry` VALUES (1537, '7727', '噪声与振动控制服务', 1, '772'); INSERT INTO `industry` VALUES (1538, '7729', '其他污染治理 ', 1, '772'); INSERT INTO `industry` VALUES (1539, '78', '公共设施管理业', 1, 'N'); INSERT INTO `industry` VALUES (1540, '7810', '市政设施管理', 1, '78'); INSERT INTO `industry` VALUES (1541, '7820', '环境卫生管理', 1, '78'); INSERT INTO `industry` VALUES (1542, '7830', '城乡市容管理', 1, '78'); INSERT INTO `industry` VALUES (1543, '7840', '绿化管理', 1, '78'); INSERT INTO `industry` VALUES (1544, '7850', '城市公园管理', 1, '78'); INSERT INTO `industry` VALUES (1545, '786', '游览景区管理', 1, '78'); INSERT INTO `industry` VALUES (1546, '7861', '名胜风景区管理', 1, '786'); INSERT INTO `industry` VALUES (1547, '7862', '森林公园管理', 1, '786'); INSERT INTO `industry` VALUES (1548, '7869', '其他游览景区管理', 1, '786'); INSERT INTO `industry` VALUES (1549, '79', '土地管理业', 1, 'N'); INSERT INTO `industry` VALUES (1550, '7910', '土地整治服务', 1, '79'); INSERT INTO `industry` VALUES (1551, '7920', '土地调查评估服务', 1, '79'); INSERT INTO `industry` VALUES (1552, '7930', '土地登记服务', 1, '79'); INSERT INTO `industry` VALUES (1553, '7940', '土地登记代理服务', 1, '79'); INSERT INTO `industry` VALUES (1554, '7990', '其他土地管理服务', 1, '79'); INSERT INTO `industry` VALUES (1555, 'O', '居民服务、修理和其他服务业', 1, NULL); INSERT INTO `industry` VALUES (1556, '80', '居民服务业', 1, 'O'); INSERT INTO `industry` VALUES (1557, '8010', '家庭服务', 1, '80'); INSERT INTO `industry` VALUES (1558, '8020', '托儿所服务', 1, '80'); INSERT INTO `industry` VALUES (1559, '8030', '洗染服务', 1, '80'); INSERT INTO `industry` VALUES (1560, '8040', '理发及美容服务', 1, '80'); INSERT INTO `industry` VALUES (1561, '805', '洗浴和保健养生服务', 1, '80'); INSERT INTO `industry` VALUES (1562, '8051', '洗浴服务', 1, '805'); INSERT INTO `industry` VALUES (1563, '8052', '足浴服务', 1, '805'); INSERT INTO `industry` VALUES (1564, '8053', '养生保健服务', 1, '805'); INSERT INTO `industry` VALUES (1565, '8060', '摄影扩印服务', 1, '80'); INSERT INTO `industry` VALUES (1566, '8070', '婚姻服务', 1, '80'); INSERT INTO `industry` VALUES (1567, '8080', '殡葬服务', 1, '80'); INSERT INTO `industry` VALUES (1568, '8090', '其他居民服务业', 1, '80'); INSERT INTO `industry` VALUES (1569, '81', '机动车、电子产品和日用产品修理业', 1, 'O'); INSERT INTO `industry` VALUES (1570, '811', '汽车、摩托车等修理与维护', 1, '81'); INSERT INTO `industry` VALUES (1571, '8111', '汽车修理与维护', 1, '811'); INSERT INTO `industry` VALUES (1572, '8112', '大型车辆装备修理与维护', 1, '811'); INSERT INTO `industry` VALUES (1573, '8113', '摩托车修理与维护', 1, '811'); INSERT INTO `industry` VALUES (1574, '8114', '助动车等修理与维护', 1, '811'); INSERT INTO `industry` VALUES (1575, '812', '计算机和办公设备维修', 1, '81'); INSERT INTO `industry` VALUES (1576, '8121', '计算机和辅助设备修理', 1, '812'); INSERT INTO `industry` VALUES (1577, '8122', '通讯设备修理', 1, '812'); INSERT INTO `industry` VALUES (1578, '8129', '其他办公设备维修', 1, '812'); INSERT INTO `industry` VALUES (1579, '813', '家用电器修理', 1, '81'); INSERT INTO `industry` VALUES (1580, '8131', '家用电子产品修理', 1, '813'); INSERT INTO `industry` VALUES (1581, '8132', '日用电器修理', 1, '813'); INSERT INTO `industry` VALUES (1582, '819', '其他日用产品修理业', 1, '81'); INSERT INTO `industry` VALUES (1583, '8191', '自行车修理', 1, '819'); INSERT INTO `industry` VALUES (1584, '8192', '鞋和皮革修理', 1, '819'); INSERT INTO `industry` VALUES (1585, '8193', '家具和相关物品修理', 1, '819'); INSERT INTO `industry` VALUES (1586, '8199', '其他未列明日用产品修理业', 1, '819'); INSERT INTO `industry` VALUES (1587, '82', '其他服务业', 1, 'O'); INSERT INTO `industry` VALUES (1588, '821', '清洁服务', 1, '82'); INSERT INTO `industry` VALUES (1589, '8211', '建筑物清洁服务', 1, '821'); INSERT INTO `industry` VALUES (1590, '8219', '其他清洁服务', 1, '821'); INSERT INTO `industry` VALUES (1591, '822', '宠物服务', 1, '82'); INSERT INTO `industry` VALUES (1592, '8221', '宠物饲养', 1, '822'); INSERT INTO `industry` VALUES (1593, '8222', '宠物医院服务', 1, '822'); INSERT INTO `industry` VALUES (1594, '8223', '宠物美容服务', 1, '822'); INSERT INTO `industry` VALUES (1595, '8224', '宠物寄托收养服务', 1, '822'); INSERT INTO `industry` VALUES (1596, '8229', '其他宠物服务', 1, '822'); INSERT INTO `industry` VALUES (1597, '8290', '其他未列明服务业', 1, '82'); INSERT INTO `industry` VALUES (1598, 'P', '教育', 1, NULL); INSERT INTO `industry` VALUES (1599, '83', '教育', 1, 'P'); INSERT INTO `industry` VALUES (1600, '8310', '学前教育', 1, '83'); INSERT INTO `industry` VALUES (1601, '832', '初等教育', 1, '83'); INSERT INTO `industry` VALUES (1602, '8321', '普通小学教育', 1, '832'); INSERT INTO `industry` VALUES (1603, '8322', '成人小学教育', 1, '832'); INSERT INTO `industry` VALUES (1604, '833', '中等教育', 1, '83'); INSERT INTO `industry` VALUES (1605, '8331', '普通初中教育', 1, '833'); INSERT INTO `industry` VALUES (1606, '8332', '职业初中教育', 1, '833'); INSERT INTO `industry` VALUES (1607, '8333', '成人初中教育', 1, '833'); INSERT INTO `industry` VALUES (1608, '8334', '普通高中教育', 1, '833'); INSERT INTO `industry` VALUES (1609, '8335', '成人高中教育', 1, '833'); INSERT INTO `industry` VALUES (1610, '8336', '中等职业学校教育', 1, '833'); INSERT INTO `industry` VALUES (1611, '834', '高等教育', 1, '83'); INSERT INTO `industry` VALUES (1612, '8341', '普通高等教育', 1, '834'); INSERT INTO `industry` VALUES (1613, '8342', '成人高等教育', 1, '834'); INSERT INTO `industry` VALUES (1614, '8350', '特殊教育', 1, '83'); INSERT INTO `industry` VALUES (1615, '839', '技能培训、教育辅助及其他教育', 1, '83'); INSERT INTO `industry` VALUES (1616, '8391', '职业技能培训', 1, '839'); INSERT INTO `industry` VALUES (1617, '8392', '体校及体育培训', 1, '839'); INSERT INTO `industry` VALUES (1618, '8393', '文化艺术培训', 1, '839'); INSERT INTO `industry` VALUES (1619, '8394', '教育辅助服务', 1, '839'); INSERT INTO `industry` VALUES (1620, '8399', '其他未列明教育', 1, '839'); INSERT INTO `industry` VALUES (1621, 'Q', '卫生和社会工作', 1, NULL); INSERT INTO `industry` VALUES (1622, '84', '卫生', 1, 'Q'); INSERT INTO `industry` VALUES (1623, '841', '医院', 1, '84'); INSERT INTO `industry` VALUES (1624, '8411', '综合医院', 1, '841'); INSERT INTO `industry` VALUES (1625, '8412', '中医医院', 1, '841'); INSERT INTO `industry` VALUES (1626, '8413', '中西医结合医院', 1, '841'); INSERT INTO `industry` VALUES (1627, '8414', '民族医院', 1, '841'); INSERT INTO `industry` VALUES (1628, '8415', '专科医院', 1, '841'); INSERT INTO `industry` VALUES (1629, '8416', '疗养院', 1, '841'); INSERT INTO `industry` VALUES (1630, '842', '基层医疗卫生服务', 1, '84'); INSERT INTO `industry` VALUES (1631, '8421', '社区卫生服务中心(站)', 1, '842'); INSERT INTO `industry` VALUES (1632, '8422', '街道卫生院', 1, '842'); INSERT INTO `industry` VALUES (1633, '8423', '乡镇卫生院', 1, '842'); INSERT INTO `industry` VALUES (1634, '8424', '村卫生室 ', 1, '842'); INSERT INTO `industry` VALUES (1635, '8425', '门诊部(所)', 1, '842'); INSERT INTO `industry` VALUES (1636, '843', '专业公共卫生服务', 1, '84'); INSERT INTO `industry` VALUES (1637, '8431', '疾病预防控制中心', 1, '843'); INSERT INTO `industry` VALUES (1638, '8432', '专科疾病防治院(所、站)', 1, '843'); INSERT INTO `industry` VALUES (1639, '8433', '妇幼保健院(所、站)', 1, '843'); INSERT INTO `industry` VALUES (1640, '8434', '急救中心(站)服务', 1, '843'); INSERT INTO `industry` VALUES (1641, '8435', '采供血机构服务', 1, '843'); INSERT INTO `industry` VALUES (1642, '8436', '计划生育技术服务活动', 1, '843'); INSERT INTO `industry` VALUES (1643, '849', '其他卫生活动', 1, '84'); INSERT INTO `industry` VALUES (1644, '8491', '健康体检服务', 1, '849'); INSERT INTO `industry` VALUES (1645, '8492', '临床检验服务', 1, '849'); INSERT INTO `industry` VALUES (1646, '8499', '其他未列明卫生服务', 1, '849'); INSERT INTO `industry` VALUES (1647, '85', '社会工作', 1, 'Q'); INSERT INTO `industry` VALUES (1648, '851', '提供住宿社会工作', 1, '85'); INSERT INTO `industry` VALUES (1649, '8511', '干部休养所', 1, '851'); INSERT INTO `industry` VALUES (1650, '8512', '护理机构服务', 1, '851'); INSERT INTO `industry` VALUES (1651, '8513', '精神康复服务', 1, '851'); INSERT INTO `industry` VALUES (1652, '8514', '老年人、残疾人养护服务', 1, '851'); INSERT INTO `industry` VALUES (1653, '8515', '临终关怀服务', 1, '851'); INSERT INTO `industry` VALUES (1654, '8516', '孤残儿童收养和庇护服务', 1, '851'); INSERT INTO `industry` VALUES (1655, '8519', '其他提供住宿社会救助', 1, '851'); INSERT INTO `industry` VALUES (1656, '852', '不提供住宿社会工作', 1, '85'); INSERT INTO `industry` VALUES (1657, '8521', '社会看护与帮助服务', 1, '852'); INSERT INTO `industry` VALUES (1658, '8522', '康复辅具适配服务', 1, '852'); INSERT INTO `industry` VALUES (1659, '8529', '其他不提供住宿社会工作', 1, '852'); INSERT INTO `industry` VALUES (1660, 'R', '文化、体育和娱乐业', 1, NULL); INSERT INTO `industry` VALUES (1661, '86', '新闻和出版业', 1, 'R'); INSERT INTO `industry` VALUES (1662, '8610', '新闻业', 1, '86'); INSERT INTO `industry` VALUES (1663, '862', '出版业', 1, '86'); INSERT INTO `industry` VALUES (1664, '8621', '图书出版', 1, '862'); INSERT INTO `industry` VALUES (1665, '8622', '报纸出版', 1, '862'); INSERT INTO `industry` VALUES (1666, '8623', '期刊出版', 1, '862'); INSERT INTO `industry` VALUES (1667, '8624', '音像制品出版', 1, '862'); INSERT INTO `industry` VALUES (1668, '8625', '电子出版物出版', 1, '862'); INSERT INTO `industry` VALUES (1669, '8626', '数字出版', 1, '862'); INSERT INTO `industry` VALUES (1670, '8629', '其他出版业', 1, '862'); INSERT INTO `industry` VALUES (1671, '87', '广播、电视、电影和影视录音制作业', 1, 'R'); INSERT INTO `industry` VALUES (1672, '8710', '广播', 1, '87'); INSERT INTO `industry` VALUES (1673, '8720', '电视', 1, '87'); INSERT INTO `industry` VALUES (1674, '8730', '影视节目制作', 1, '87'); INSERT INTO `industry` VALUES (1675, '8740', '广播电视集成播控', 1, '87'); INSERT INTO `industry` VALUES (1676, '8750', '电影和广播电视节目发行', 1, '87'); INSERT INTO `industry` VALUES (1677, '8760', '电影放映', 1, '87'); INSERT INTO `industry` VALUES (1678, '8770', '录音制作', 1, '87'); INSERT INTO `industry` VALUES (1679, '88', '文化艺术业', 1, 'R'); INSERT INTO `industry` VALUES (1680, '8810', '文艺创作与表演', 1, '88'); INSERT INTO `industry` VALUES (1681, '8820', '艺术表演场馆', 1, '88'); INSERT INTO `industry` VALUES (1682, '883', '图书馆与档案馆', 1, '88'); INSERT INTO `industry` VALUES (1683, '8831', '图书馆', 1, '883'); INSERT INTO `industry` VALUES (1684, '8832', '档案馆', 1, '883'); INSERT INTO `industry` VALUES (1685, '8840', '文物及非物质文化遗产保护', 1, '88'); INSERT INTO `industry` VALUES (1686, '8850', '博物馆', 1, '88'); INSERT INTO `industry` VALUES (1687, '8860', '烈士陵园、纪念馆', 1, '88'); INSERT INTO `industry` VALUES (1688, '8870', '群众文体活动', 1, '88'); INSERT INTO `industry` VALUES (1689, '8890', '其他文化艺术业', 1, '88'); INSERT INTO `industry` VALUES (1690, '89', '体育', 1, 'R'); INSERT INTO `industry` VALUES (1691, '891', '体育组织', 1, '89'); INSERT INTO `industry` VALUES (1692, '8911', '体育竞赛组织', 1, '891'); INSERT INTO `industry` VALUES (1693, '8912', '体育保障组织', 1, '891'); INSERT INTO `industry` VALUES (1694, '8919', '其他体育组织', 1, '891'); INSERT INTO `industry` VALUES (1695, '892', '体育场地设施管理', 1, '89'); INSERT INTO `industry` VALUES (1696, '8921', '体育场馆管理', 1, '892'); INSERT INTO `industry` VALUES (1697, '8929', '其他体育场地设施管理 ', 1, '892'); INSERT INTO `industry` VALUES (1698, '8930', '健身休闲活动', 1, '89'); INSERT INTO `industry` VALUES (1699, '899', '其他体育', 1, '89'); INSERT INTO `industry` VALUES (1700, '8991', '体育中介代理服务', 1, '899'); INSERT INTO `industry` VALUES (1701, '8992', '体育健康服务', 1, '899'); INSERT INTO `industry` VALUES (1702, '8999', '其他未列明体育', 1, '899'); INSERT INTO `industry` VALUES (1703, '90', '娱乐业', 1, 'R'); INSERT INTO `industry` VALUES (1704, '901', '室内娱乐活动', 1, '90'); INSERT INTO `industry` VALUES (1705, '9011', '歌舞厅娱乐活动', 1, '901'); INSERT INTO `industry` VALUES (1706, '9012', '电子游艺厅娱乐活动', 1, '901'); INSERT INTO `industry` VALUES (1707, '9013', '网吧活动', 1, '901'); INSERT INTO `industry` VALUES (1708, '9019', '其他室内娱乐活动', 1, '901'); INSERT INTO `industry` VALUES (1709, '9020', '游乐园', 1, '90'); INSERT INTO `industry` VALUES (1710, '9030', '休闲观光活动', 1, '90'); INSERT INTO `industry` VALUES (1711, '904', '彩票活动', 1, '90'); INSERT INTO `industry` VALUES (1712, '9041', '体育彩票服务', 1, '904'); INSERT INTO `industry` VALUES (1713, '9042', '福利彩票服务', 1, '904'); INSERT INTO `industry` VALUES (1714, '9049', '其他彩票服务', 1, '904'); INSERT INTO `industry` VALUES (1715, '905', '文化娱乐体育活动和经纪代理服务', 1, '90'); INSERT INTO `industry` VALUES (1716, '9051', '文化活动服务', 1, '905'); INSERT INTO `industry` VALUES (1717, '9052', '体育表演服务', 1, '905'); INSERT INTO `industry` VALUES (1718, '9053', '文化娱乐经纪人', 1, '905'); INSERT INTO `industry` VALUES (1719, '9054', '体育经纪人', 1, '905'); INSERT INTO `industry` VALUES (1720, '9059', '其他文化艺术经纪代理', 1, '905'); INSERT INTO `industry` VALUES (1721, '9090', '其他娱乐业', 1, '90'); INSERT INTO `industry` VALUES (1722, 'S', '公共管理、社会保障和社会组织', 1, NULL); INSERT INTO `industry` VALUES (1723, '91', '中国共产党机关', 1, 'S'); INSERT INTO `industry` VALUES (1724, '9100', '中国共产党机关', 1, '91'); INSERT INTO `industry` VALUES (1725, '92', '国家机构', 1, 'S'); INSERT INTO `industry` VALUES (1726, '9210', '国家权力机构', 1, '92'); INSERT INTO `industry` VALUES (1727, '922', '国家行政机构', 1, '92'); INSERT INTO `industry` VALUES (1728, '9221', '综合事务管理机构', 1, '922'); INSERT INTO `industry` VALUES (1729, '9222', '对外事务管理机构', 1, '922'); INSERT INTO `industry` VALUES (1730, '9223', '公共安全管理机构', 1, '922'); INSERT INTO `industry` VALUES (1731, '9224', '社会事务管理机构', 1, '922'); INSERT INTO `industry` VALUES (1732, '9225', '经济事务管理机构', 1, '922'); INSERT INTO `industry` VALUES (1733, '9226', '行政监督检查机构', 1, '922'); INSERT INTO `industry` VALUES (1734, '923', '人民法院和人民检察院', 1, '92'); INSERT INTO `industry` VALUES (1735, '9231', '人民法院', 1, '923'); INSERT INTO `industry` VALUES (1736, '9232', '人民检察院', 1, '923'); INSERT INTO `industry` VALUES (1737, '929', '其他国家机构', 1, '92'); INSERT INTO `industry` VALUES (1738, '9291', '消防管理机构', 1, '929'); INSERT INTO `industry` VALUES (1739, '9299', '其他未列明国家机构', 1, '929'); INSERT INTO `industry` VALUES (1740, '93', '人民政协、民主党派', 1, 'S'); INSERT INTO `industry` VALUES (1741, '9310', '人民政协', 1, '93'); INSERT INTO `industry` VALUES (1742, '9320', '民主党派', 1, '93'); INSERT INTO `industry` VALUES (1743, '94', '社会保障', 1, 'S'); INSERT INTO `industry` VALUES (1744, '941', '基本保险', 1, '94'); INSERT INTO `industry` VALUES (1745, '9411', '基本养老保险', 1, '941'); INSERT INTO `industry` VALUES (1746, '9412', '基本医疗保险', 1, '941'); INSERT INTO `industry` VALUES (1747, '9413', '失业保险', 1, '941'); INSERT INTO `industry` VALUES (1748, '9414', '工伤保险', 1, '941'); INSERT INTO `industry` VALUES (1749, '9415', '生育保险', 1, '941'); INSERT INTO `industry` VALUES (1750, '9419', '其他基本保险', 1, '941'); INSERT INTO `industry` VALUES (1751, '9420', '补充保险', 1, '94'); INSERT INTO `industry` VALUES (1752, '9490', '其他社会保障', 1, '94'); INSERT INTO `industry` VALUES (1753, '95', '群众团体、社会团体和其他成员组织', 1, 'S'); INSERT INTO `industry` VALUES (1754, '951', '群众团体', 1, '95'); INSERT INTO `industry` VALUES (1755, '9511', '工会', 1, '951'); INSERT INTO `industry` VALUES (1756, '9512', '妇联', 1, '951'); INSERT INTO `industry` VALUES (1757, '9513', '共青团', 1, '951'); INSERT INTO `industry` VALUES (1758, '9519', '其他群众团体', 1, '951'); INSERT INTO `industry` VALUES (1759, '952', '社会团体', 1, '95'); INSERT INTO `industry` VALUES (1760, '9521', '专业性团体', 1, '952'); INSERT INTO `industry` VALUES (1761, '9522', '行业性团体', 1, '952'); INSERT INTO `industry` VALUES (1762, '9529', '其他社会团体', 1, '952'); INSERT INTO `industry` VALUES (1763, '9530', '基金会', 1, '95'); INSERT INTO `industry` VALUES (1764, '954', '宗教组织', 1, '95'); INSERT INTO `industry` VALUES (1765, '9541', '宗教团体服务', 1, '954'); INSERT INTO `industry` VALUES (1766, '9542', '宗教活动场所服务', 1, '954'); INSERT INTO `industry` VALUES (1767, '96', '基层群众自治组织及其他组织', 1, 'S'); INSERT INTO `industry` VALUES (1768, '9610', '社区居民自治组织', 1, '96'); INSERT INTO `industry` VALUES (1769, '9620', '村民自治组织', 1, '96'); INSERT INTO `industry` VALUES (1770, 'T', '国际组织', 1, NULL); INSERT INTO `industry` VALUES (1771, '97', '国际组织', 1, 'T'); INSERT INTO `industry` VALUES (1772, '9700', '国际组织', 1, '97'); -- ---------------------------- -- Table structure for migrations -- ---------------------------- DROP TABLE IF EXISTS `migrations`; CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `migration` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of migrations -- ---------------------------- INSERT INTO `migrations` VALUES (1, '2014_10_12_000000_create_users_table', 1); INSERT INTO `migrations` VALUES (2, '2016_01_04_173148_create_admin_tables', 1); INSERT INTO `migrations` VALUES (3, '2019_08_19_000000_create_failed_jobs_table', 1); INSERT INTO `migrations` VALUES (4, '2020_07_10_184109_create_customer_table', 2); -- ---------------------------- -- Table structure for orders -- ---------------------------- DROP TABLE IF EXISTS `orders`; CREATE TABLE `orders` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键id', `order_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '订单号', `customer_id` int(11) NOT NULL COMMENT '客户ID', `customer_title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '客户名称', `customer_demand_id` int(11) NOT NULL COMMENT '客户需求ID', `product_id` int(11) NOT NULL COMMENT '产品ID', `start_time` timestamp(0) NOT NULL COMMENT '开通时间', `end_time` timestamp(0) NOT NULL COMMENT '结束时间', `admin_user_id` int(11) NOT NULL COMMENT '所属销售', `price` decimal(8, 2) NULL DEFAULT NULL COMMENT '销售金额', `receivable` decimal(8, 2) NULL DEFAULT NULL COMMENT '应收金额', `receipts` decimal(8, 2) NULL DEFAULT NULL COMMENT '实收金额', `sales_remark` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '销售备注', `it_remark` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '技术备注', `file_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '附件地址', `status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '订单状态 0:待开发 1:开发中 2:开发完成 3:已交付 4:已关闭', `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, `deleted_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '订单管理' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of orders -- ---------------------------- INSERT INTO `orders` VALUES (1, '20200720193747696377A50A50C6', 1, '测试', 1, 2, '2020-07-20 19:37:03', '2020-07-20 19:37:03', 1, NULL, NULL, NULL, NULL, NULL, 'files/技术外包客户需求确认表.docx', 0, '2020-07-20 19:37:47', '2020-07-21 11:31:30', NULL); -- ---------------------------- -- Table structure for orders_detail -- ---------------------------- DROP TABLE IF EXISTS `orders_detail`; CREATE TABLE `orders_detail` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键id', `orders_id` int(11) NOT NULL COMMENT '订单ID', `params_id` int(11) NOT NULL COMMENT '参数ID', `value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '参数值', `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, `deleted_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '订单详情表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of orders_detail -- ---------------------------- INSERT INTO `orders_detail` VALUES (1, 1, 3, '标准版', '2020-07-21 12:11:05', '2020-07-21 12:11:05', NULL); INSERT INTO `orders_detail` VALUES (2, 1, 4, '测试', '2020-07-21 12:11:05', '2020-07-21 12:11:05', NULL); INSERT INTO `orders_detail` VALUES (3, 1, 5, '是', '2020-07-21 12:11:05', '2020-07-21 12:11:05', NULL); -- ---------------------------- -- Table structure for orders_log -- ---------------------------- DROP TABLE IF EXISTS `orders_log`; CREATE TABLE `orders_log` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键id', `orders_id` int(11) NOT NULL COMMENT '订单ID', `params_id` int(11) NULL DEFAULT NULL COMMENT '产品参数ID', `value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '参数值', `status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '订单状态 0:待开发 1:开发中 2:开发完成 3:已交付 4:已关闭', `admin_user_id` int(11) NOT NULL COMMENT '操作人ID', `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '订单修改日志表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for orders_status -- ---------------------------- DROP TABLE IF EXISTS `orders_status`; CREATE TABLE `orders_status` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键id', `orders_id` int(11) NOT NULL COMMENT '客户ID', `finance_status` tinyint(4) NULL DEFAULT NULL COMMENT '财务认证 0:待处理 1:未收到款 2: 已收到款', `finance_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '财务备注', `finance_user_id` int(11) NULL DEFAULT NULL COMMENT '财务审批人', `commerce_status` tinyint(4) NULL DEFAULT NULL COMMENT '商务部认证 0:待处理 1:资料不完整 2:开发中 3:申请技术协助 4:开发完成', `commerce_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商务部备注', `commerce_user_id` int(11) NULL DEFAULT NULL COMMENT '商务部操作人ID', `it_status` tinyint(4) NULL DEFAULT NULL COMMENT '技术认证 0:待处理 1:处理中 2:处理完成', `it_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '技术备注', `it_user_id` int(11) NULL DEFAULT NULL COMMENT '技术操作人ID', `check_status` tinyint(4) NULL DEFAULT NULL COMMENT '验收认证 0:待处理 1:不合格 2:验收通过', `check_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '验收人备注', `check_user_id` int(11) NULL DEFAULT NULL COMMENT '验收操作人ID', `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, `deleted_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of orders_status -- ---------------------------- INSERT INTO `orders_status` VALUES (1, 1, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL); -- ---------------------------- -- Table structure for orders_status_log -- ---------------------------- DROP TABLE IF EXISTS `orders_status_log`; CREATE TABLE `orders_status_log` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键id', `orders_id` int(11) NOT NULL COMMENT '订单ID', `finance_status` tinyint(4) NULL DEFAULT NULL COMMENT '财务认证 0:待处理 1:未收到款 2: 已收到款', `finance_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '财务备注', `finance_user_id` int(11) NULL DEFAULT NULL COMMENT '财务审批人', `commerce_status` tinyint(4) NULL DEFAULT NULL COMMENT '商务部认证 0:待处理 1:资料不完整 2:开发中 3:申请技术协助 4:开发完成', `commerce_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商务部备注', `commerce_user_id` int(11) NULL DEFAULT NULL COMMENT '商务部操作人ID', `it_status` tinyint(4) NULL DEFAULT NULL COMMENT '技术认证 0:待处理 1:处理中 2:处理完成', `it_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '技术备注', `it_user_id` int(11) NULL DEFAULT NULL COMMENT '技术操作人ID', `check_status` tinyint(4) NULL DEFAULT NULL COMMENT '验收认证 0:待处理 1:不合格 2:验收通过', `check_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '验收人备注', `check_user_id` int(11) NULL DEFAULT NULL COMMENT '验收操作人ID', `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '订单状态日志表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for params -- ---------------------------- DROP TABLE IF EXISTS `params`; CREATE TABLE `params` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键id', `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '参数标题', `alias` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '参数别名(英文字母)', `type` tinyint(4) NOT NULL COMMENT '参数类型 0:text 1:textarea 2:select', `type_params` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '当type = 2 时,填写select的内容,以英文逗号分隔', `sort` int(11) NOT NULL DEFAULT 1 COMMENT '排序', `is_required` tinyint(4) NOT NULL DEFAULT 1 COMMENT '是否必填 0:否 1:是', `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '备注', `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, `deleted_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '参数管理' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of params -- ---------------------------- INSERT INTO `params` VALUES (1, '服务器IP', 'website_ip', 0, NULL, 1, 1, '例如:192.168.1.1', '2020-07-20 11:39:31', '2020-07-20 11:39:31', NULL); INSERT INTO `params` VALUES (2, 'CPU', 'CPU', 0, NULL, 1, 1, '必填* : 例如:4核', '2020-07-20 16:17:52', '2020-07-20 16:17:52', NULL); INSERT INTO `params` VALUES (3, '服务类别', 'serveice_type', 2, '标准版,加强版,推广版,定制版', 1, 1, '选择服务类别', '2020-07-20 19:57:47', '2020-07-20 19:57:47', NULL); INSERT INTO `params` VALUES (4, '网站域名', 'domain', 0, NULL, 1, 1, NULL, '2020-07-20 19:58:23', '2020-07-20 19:58:23', NULL); INSERT INTO `params` VALUES (5, '是否协助注册公众号', 'is_sing_up', 2, '是,否', 1, 1, NULL, '2020-07-20 19:59:17', '2020-07-20 19:59:17', NULL); -- ---------------------------- -- Table structure for product -- ---------------------------- DROP TABLE IF EXISTS `product`; CREATE TABLE `product` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键id', `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '产品名称', `PID` int(11) NOT NULL DEFAULT 0 COMMENT '父级ID', `sort` int(11) NOT NULL DEFAULT 1 COMMENT '排序', `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, `deleted_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '产品管理' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of product -- ---------------------------- INSERT INTO `product` VALUES (1, 'ITO运维服务', 0, 1, '2020-07-20 14:08:51', '2020-07-20 14:08:51', NULL); INSERT INTO `product` VALUES (2, '网站技术外包', 1, 1, '2020-07-20 14:09:15', '2020-07-20 14:09:15', NULL); INSERT INTO `product` VALUES (3, '网站优化', 1, 2, '2020-07-20 14:09:29', '2020-07-20 14:09:29', NULL); -- ---------------------------- -- Table structure for product_params -- ---------------------------- DROP TABLE IF EXISTS `product_params`; CREATE TABLE `product_params` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键id', `product_id` int(11) NOT NULL COMMENT '产品ID', `params_id` int(11) NOT NULL COMMENT '产品参数ID', `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '产品参数管理' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of product_params -- ---------------------------- INSERT INTO `product_params` VALUES (8, 2, 3, '2020-07-20 20:02:07', '2020-07-20 20:02:07'); INSERT INTO `product_params` VALUES (9, 2, 4, '2020-07-20 20:02:07', '2020-07-20 20:02:07'); INSERT INTO `product_params` VALUES (10, 2, 5, '2020-07-20 20:02:07', '2020-07-20 20:02:07'); -- ---------------------------- -- Table structure for users -- ---------------------------- DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp(0) NULL DEFAULT NULL, `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, `created_at` timestamp(0) NULL DEFAULT NULL, `updated_at` timestamp(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `users_email_unique`(`email`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; SET FOREIGN_KEY_CHECKS = 1;
<filename>demo.sql -- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 20-08-2013 a las 09:40:41 -- Versión del servidor: 5.5.27 -- Versión de PHP: 5.4.7 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 */; -- -- Base de datos: `demo` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `cartelera` -- CREATE TABLE IF NOT EXISTS `cartelera` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nombre` varchar(255) NOT NULL, `mensaje` varchar(255) NOT NULL, `fecha` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Volcado de datos para la tabla `cartelera` -- INSERT INTO `cartelera` (`id`, `nombre`, `mensaje`, `fecha`) VALUES (1, 'Noel', 'Hola', '25-09-1983'), (2, 'Julio', 'Buenisimo', ''); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `propiedades` -- CREATE TABLE IF NOT EXISTS `propiedades` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idpropietario` int(11) DEFAULT NULL, `idagente` int(11) DEFAULT NULL, `tipo` varchar(255) NOT NULL, `operacion` varchar(255) NOT NULL, `pais` varchar(255) NOT NULL, `provincia` varchar(255) NOT NULL, `localidad` varchar(255) NOT NULL, `direccion` varchar(255) NOT NULL, `latitud` varchar(255) DEFAULT NULL, `longitud` varchar(255) DEFAULT NULL, `moneda` varchar(10) NOT NULL, `precio` float DEFAULT NULL, `hambientes` int(2) NOT NULL, `favorito` tinyint(1) DEFAULT NULL, `activo` tinyint(1) NOT NULL, `imgurl` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ; -- -- Volcado de datos para la tabla `propiedades` -- INSERT INTO `propiedades` (`id`, `idpropietario`, `idagente`, `tipo`, `operacion`, `pais`, `provincia`, `localidad`, `direccion`, `latitud`, `longitud`, `moneda`, `precio`, `hambientes`, `favorito`, `activo`, `imgurl`) VALUES (1, NULL, NULL, 'Casa', 'Venta', 'Argentina', 'Buenos Aires', 'Saenz Peña', 'Batallan 2834', '-34.6029577', '-58.532282899999984', 'U$D', 700000, 5, 0, 0, '6.JPG'), (2, NULL, NULL, 'Departamento', 'Alquiler', 'Argentina', 'Buenos Aires', 'Saenz Peña', 'Av. America 641', '-34.6021379', '-58.52798569999999', 'U$D', 260035, 3, 0, 0, '4.jpg'), (19, NULL, NULL, 'Casa', 'Venta', 'sd', 'da', 'das', 'as', '-34.6020766', '-58.52887399999997', 'U$D', 15000, 1500, 0, 0, '81.jpg'), (12, NULL, NULL, 'Casa', 'Venta', 'Argentina', 'Seleccione su Estado', 'Buenos Aires', 'batallan 2834', '-34.6020766', '-58.52887399999997', 'U$D', 1, 1, 0, 0, '11.jpg'), (13, NULL, NULL, 'Casa', 'Alquiler', 'Argentina', 'Buenos Aires', 'Caseros', 'Cavassa 2575', '-34.60584559999999', '-58.558892600000036', 'U$D', 150000, 5, 0, 0, '2.jpg'), (8, NULL, NULL, 'Casa', 'Venta', 'Argentina', 'Buenos Aires', 'Santos Lugares', 'Langeri 2378', '-34.6020766', '-58.52887399999997', 'U$D', 500000, 7, 0, 0, '41.jpg'), (15, NULL, NULL, 'Casa', 'Venta', 'Argentina', 'Buenos Aires', 'Saenz Peña', 'Posadas 457', '-34.6022563', '-58.52598969999997', 'U$D', 2500000, 3, 0, 0, '21.jpg'), (17, NULL, NULL, 'Casa', 'Venta', 'argentina', 'buenos aires', '<NAME>', 'Luro 1200', '-37.9561218', '-57.62992980000001', 'U$D', 15000, 3, 0, 0, '5.jpg'), (18, NULL, NULL, 'Departamento', 'Alquiler', 'argentina', 'buenos aires', 'Saenz peña', 'Lage 705', '-34.5984022', '-58.53256239999996', '$', 1300, 1, 0, 0, '8.jpg'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `usuarios` -- CREATE TABLE IF NOT EXISTS `usuarios` ( `id` int(100) NOT NULL AUTO_INCREMENT, `nombre` varchar(50) NOT NULL, `apellido` varchar(50) NOT NULL, `categoria` varchar(30) NOT NULL, `active` int(11) DEFAULT NULL, `ubash` varchar(45) DEFAULT NULL, `telefono` varchar(20) NOT NULL, `celular` varchar(20) NOT NULL, `mail` varchar(100) NOT NULL, `contraseña` varchar(32) NOT NULL, `horariodecontacto` varchar(250) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Volcado de datos para la tabla `usuarios` -- INSERT INTO `usuarios` (`id`, `nombre`, `apellido`, `categoria`, `active`, `ubash`, `telefono`, `celular`, `mail`, `contraseña`, `horariodecontacto`) VALUES (1, 'Raul', 'Demo', '2', NULL, NULL, '47122566', '1533333333', '<EMAIL>', 'demo', 'Demondays a Fridays'), (2, 'noel', 'perez', '1', 1, '12', '47122597', '1568482597', '<EMAIL>', '151515', 'Miercoles y Viernes de 9 a 15hs.'); /*!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 */;
<gh_stars>10-100 ALTER TABLE [dbo].[Events] ADD [Dispatched] BIT NOT NULL DEFAULT(0); GO CREATE TABLE [dbo].[Batches] ( [Id] BIGINT IDENTITY (1, 1) NOT NULL, [SequenceNumber] BIGINT NOT NULL, [Size] INT NOT NULL, [Timestamp] DATETIME2 (7) DEFAULT (GETDATE()) NOT NULL, [Complete] BIT DEFAULT (0) NOT NULL ); GO CREATE PROCEDURE [dbo].[MonitorUndispatchedEvents] AS SELECT [SequenceNumber] FROM [dbo].[Events] WHERE [Dispatched] = 0 ORDER BY [SequenceNumber] ASC; GO CREATE PROCEDURE [dbo].[MonitorUndispatchedBatches] AS SELECT [Id] FROM [dbo].[Batches] WHERE [Complete] = 0 ORDER BY [SequenceNumber] ASC; GO CREATE PROCEDURE [dbo].[GetNextUndispatchedEventsBatch] @MaxBatchSize int AS SET NOCOUNT ON; UPDATE [dbo].[Batches] SET [Complete] = 1 WHERE [SequenceNumber] >= ( SELECT MIN([SequenceNumber]) FROM [dbo].[Batches] WHERE [Complete] = 0 AND DATEDIFF(ss, [Timestamp], GETDATE()) >= 30); BEGIN TRANSACTION; WITH IncompleteBatches AS ( SELECT [Id] AS [BatchId], [SequenceNumber], [Size] FROM [dbo].[Batches] WHERE [Complete] = 0 ), UnDispatchedEvents AS ( SELECT [Event].[SequenceNumber], [Batch].[BatchId] FROM [dbo].[Events] [Event] LEFT OUTER JOIN IncompleteBatches [Batch] ON ([Event].[SequenceNumber] >= [Batch].[SequenceNumber] AND [Event].[SequenceNumber] < [Batch].[SequenceNumber] + [Batch].[Size]) WHERE [Event].[Dispatched] = 0 ), NextUndispatchedEvents AS ( SELECT TOP (@MaxBatchSize) [SequenceNumber] FROM UnDispatchedEvents WHERE [BatchId] IS NULL ), NextBatch AS ( SELECT MIN([SequenceNumber]) AS [SequenceNumber], MAX([SequenceNumber]) - MIN([SequenceNumber]) + 1 AS [Size] FROM NextUndispatchedEvents ) INSERT INTO [dbo].[Batches] ([SequenceNumber], [Size]) SELECT [SequenceNumber], [Size] FROM NextBatch WHERE [SequenceNumber] IS NOT NULL; COMMIT; DECLARE @BatchId BIGINT = SCOPE_IDENTITY(); SELECT [Id] AS [BatchId] FROM [dbo].[Batches] WHERE [Id] = @BatchId; SELECT [Event].[SequenceNumber], [Type].[Name] AS [PayloadTypeName], [Event].[Payload] FROM [dbo].[Events] [Event] WITH (NOLOCK) INNER JOIN ( SELECT [Id] AS [BatchId], [SequenceNumber], [Size] FROM [dbo].[Batches] WHERE [Id] = @BatchId) [Batch] ON ([Event].[SequenceNumber] >= [Batch].[SequenceNumber] AND [Event].[SequenceNumber] < [Batch].[SequenceNumber] + [Batch].[Size]) INNER JOIN [dbo].[Types] [Type] ON [Event].[TypeId] = [Type].[Id]; GO CREATE PROCEDURE [dbo].[MarkEventAsDispatched] @SequenceNumber bigint AS SET NOCOUNT ON; UPDATE [dbo].[Events] SET [Dispatched] = 1 WHERE [SequenceNumber] = @SequenceNumber; WITH IncompleteBatches AS ( SELECT [Id] AS [BatchId], [SequenceNumber], [Size] FROM [dbo].[Batches] WHERE [Complete] = 0 ), UnDispatchedEvents AS ( SELECT [Batch].[BatchId], [Event].[Dispatched], COUNT([Event].[Dispatched]) AS [Count] FROM [dbo].[Events] [Event] LEFT OUTER JOIN IncompleteBatches [Batch] ON ([Event].[SequenceNumber] >= [Batch].[SequenceNumber] AND [Event].[SequenceNumber] < [Batch].[SequenceNumber] + [Batch].[Size]) WHERE [Batch].[BatchId] IS NOT NULL GROUP BY [Batch].[BatchId], [Event].[Dispatched] ), PendingDispatch AS ( SELECT [BatchId], ISNULL([0], 0) AS [Pending], ISNULL([1], 0) AS Dispatched FROM UnDispatchedEvents PIVOT ( SUM([Count]) for [Dispatched] in ([0], [1]) ) [Results] ) UPDATE [Batch] SET [Batch].[Complete] = 1 FROM PendingDispatch [Pending] INNER JOIN [dbo].[Batches] [Batch] ON [Pending].[BatchId] = [Batch].[Id] WHERE [Pending].[Pending] = 0; GO
-- file:text.sql ln:91 expect:true select format('%s, %s', variadic array[true, false])
<filename>backend/de.metas.printing/de.metas.printing.base/src/main/sql/postgresql/system/80-de.metas.printing/5576650_sys_fix_C_Printing_Queue_PrintInfo_v.sql DROP VIEW IF EXISTS C_Printing_Queue_PrintInfo_v; CREATE OR REPLACE VIEW C_Printing_Queue_PrintInfo_v AS SELECT pq.C_Printing_Queue_ID AS C_Printing_Queue_PrintInfo_v_ID, pq.C_Printing_Queue_ID, pp.AD_Session_ID AS AD_Session_PrintPackage_ID, pq.AD_Archive_ID, pji.C_Print_Job_Instructions_ID, pji.Status AS Status_Print_Job_Instructions, pji.Created AS Created_Print_Job_Instructions, pji.CreatedBy AS CreatedBy_Print_Job_Instructions, pji.AD_Org_ID AS AD_Org_Print_Job_Instructions_ID, pji.Updated AS Updated_Print_Job_Instructions, pji.UpdatedBy AS UpdatedBy_Print_Job_Instructions, pp.C_Print_Package_ID, ppi.C_Print_PackageInfo_ID, ppi.AD_PrinterHW_ID, pwh.Name AS PrintServiceName, ppi.AD_PrinterHW_MediaTray_ID, phwt.TrayNumber AS TrayNumber, phwt.Name AS PrintServiceTray, pq.Created, pq.AD_Org_ID, pq.AD_Client_ID FROM C_Printing_Queue pq LEFT JOIN C_Print_Job_Line pjl ON pjl.C_Printing_Queue_ID=pq.C_Printing_Queue_ID LEFT JOIN C_Print_Job_Instructions pji ON pji.C_Print_Job_ID=pjl.C_Print_Job_ID LEFT JOIN C_Print_Package pp ON pp.C_Print_Job_Instructions_ID=pji.C_Print_Job_Instructions_ID LEFT JOIN C_Print_PackageInfo ppi ON ppi.C_Print_Package_ID=pp.C_Print_Package_ID LEFT JOIN AD_PrinterHW pwh ON pwh.AD_PrinterHW_ID=ppi.AD_PrinterHW_ID LEFT JOIN AD_PrinterHW_MediaTray phwt ON phwt.AD_PrinterHW_MediaTray_ID=ppi.AD_PrinterHW_MediaTray_ID WHERE true;
<reponame>dram/metasfresh UPDATE C_Doctype_trl SET Updated='2019-07-02 04:02:00.090267+00', UpdatedBy=99, Name='Disposal', PrintName='Disposal' WHERE C_Doctype_ID=540948 AND AD_Language='en_US'; UPDATE C_Doctype_trl SET Updated='2019-07-02 04:02:00.090267+00', UpdatedBy=99, Name='Entsorgung', PrintName='Entsorgung' WHERE C_Doctype_ID=540948 AND AD_Language='de_CH';
<filename>server/db/Tables/Group.sql USE boardgameDB; DROP TABLE IF EXISTS Group; CREATE TABLE Group ( GroupId INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, GroupName VARCHAR(50) NOT NULL, GroupDesc VARCHAR(500) NOT NULL );
<reponame>SiverPineValley/algo -- 프로그래머스 -- SQL - 동물 수 구하기 SELECT count(*) AS count from ( SELECT NAME from ANIMAL_INS group by NAME having NAME is not NULL ) AS NAME_TABLE;
<filename>Sql 3.sql #CREATE TABLE HELLO(ID INT VARCHAR(10), DESCRIPTION VARCHAR(100)) #SELECT cast(12345 AS BINARY(5)) #SELECT cast(12345 AS VARBINARY(10)) #SELECT cast('ABC' AS CHAR(10)) #ABC IS OUTPUT #SELECT cast('ABCDEFGHIJKLMNOPQ' AS CHAR(10)) #ABCDEFGHIJ IS OUTPUT CREATE SCHEMA `db2`; #SELECT * FROM db1.`employee table`; #INSERT INTO `db1`.`employee table`(`Employee id`,`Employee firstname`,`Employee lastname`,`Age`) VALUES ('125','nhk2','nhk3','26'); #ALTER TABLE `db1`.`employee table` #ADD COLUMN `Department` VARCHAR(45) NOT NULL AFTER `Age`; #SELECT * FROM db1.`employee table`;
<gh_stars>1-10 /* Dump all triples in the given named graph to a file, serialized as TTL. @param srcgraph dumped graph URI @param out_file (absolute) path to the written file; backslashes must be escaped Adapted from http://www.openlinksw.com/dataspace/dav/wiki/Main/VirtDumpLoadRdfGraphs */ CREATE PROCEDURE dump_graph_ttl ( IN srcgraph VARCHAR, IN out_file VARCHAR) { DECLARE file_name VARCHAR; DECLARE env, ses ANY; DECLARE ses_len, max_ses_len INTEGER; SET ISOLATION = 'uncommitted'; max_ses_len := 10000000; string_to_file( out_file, sprintf ('# Dump of graph <%s>, as of %s\n', srcgraph, CAST (NOW() AS VARCHAR)), -2); env := vector (dict_new (16000), 0, '', '', '', 0, 0, 0, 0); ses := string_output (); FOR (SELECT * FROM ( SPARQL DEFINE input:storage "" SELECT ?s ?p ?o { GRAPH `iri(?:srcgraph)` { ?s ?p ?o } }) AS sub OPTION (LOOP)) DO { http_ttl_triple (env, "s", "p", "o", ses); ses_len := length (ses); IF (ses_len > max_ses_len) { string_to_file (out_file, ses, -1); ses := string_output (); } } IF (LENGTH (ses)) { http (' .\n', ses); string_to_file (out_file, ses, -1); } };
CREATE TABLE `google-play-store` ( `App` varchar(255) NOT NULL, `Category` varchar(255) NOT NULL, `Rating` decimal(15,2) NOT NULL, `Reviews` int NOT NULL, `Size` varchar(50) NOT NULL, `Installs` varchar(50) NOT NULL, `Type` varchar(50) NOT NULL, `Price` varchar(50) NOT NULL, `Content Rating` varchar(255) NOT NULL, `Genres` varchar(255) NOT NULL, `Last Updated` varchar(255) NOT NULL, `Current Ver` varchar(255) NOT NULL, `Android Ver` varchar(255) NOT NULL );
/* * Creates the def, tag and iov tables needed to define a DCU data taking */ /* dcu tag*/ CREATE TABLE dcu_tag ( tag_id NUMBER(10) NOT NULL, gen_tag VARCHAR(100) NOT NULL, location_id NUMBER(10) NOT NULL ); CREATE SEQUENCE dcu_tag_sq INCREMENT BY 1 START WITH 1; ALTER TABLE dcu_tag ADD CONSTRAINT dcu_tag_pk PRIMARY KEY (tag_id); ALTER TABLE dcu_tag ADD CONSTRAINT dcu_tag_uk UNIQUE (gen_tag, location_id); ALTER TABLE dcu_tag ADD CONSTRAINT dcu_tag_fk1 FOREIGN KEY (location_id) REFERENCES location_def (def_id); /* dcu iov */ CREATE TABLE dcu_iov ( iov_id NUMBER(10) NOT NULL, tag_id NUMBER(10) NOT NULL, since DATE NOT NULL, till DATE NOT NULL, db_timestamp TIMESTAMP DEFAULT SYSTIMESTAMP NOT NULL ); CREATE SEQUENCE dcu_iov_sq INCREMENT BY 1 START WITH 1; ALTER TABLE dcu_iov ADD CONSTRAINT dcu_iov_pk PRIMARY KEY (iov_id); CREATE INDEX dcu_iov_ix ON dcu_iov (since, till); ALTER TABLE dcu_iov ADD CONSTRAINT dcu_iov_fk FOREIGN KEY (tag_id) REFERENCES dcu_tag (tag_id); /* triggers, constraint checks */ CREATE OR REPLACE TRIGGER dcu_iov_tg BEFORE INSERT ON dcu_iov REFERENCING NEW AS newiov FOR EACH ROW CALL update_iov_dates('dcu_iov', 'since', 'till', :newiov.since, :newiov.till, :newiov.tag_id) /
prompt Importing table t_usuario_claves... set feedback off set define off insert into t_usuario_claves (ID_USUARIO, TIPO, ESTADO, HASH, SALT, ALGORITMO, CANTIDAD_INTENTOS_FALLIDOS, ITERACIONES, FECHA_ULTIMA_AUTENTICACION) values (1, 'A', 'N', '46287AC928B408ED04C008F7CA391D4C2F1DFA5F2C0A4FD6D7CA9B2327F4D349', '690728D7170C1D25A3B8A1BFC37B3F0DC0FD088F8815073618E2F71DA9765C40', '2', 0, 4096, null); insert into t_usuario_claves (ID_USUARIO, TIPO, ESTADO, HASH, SALT, ALGORITMO, CANTIDAD_INTENTOS_FALLIDOS, ITERACIONES, FECHA_ULTIMA_AUTENTICACION) values (2, 'A', 'N', 'FE20D8C133CE256575F74A717B6EB14D19D4EFD8960B4622779DDD5571CD4E0E', '693BF358E23B3CCBCD7E98496A41F9701E6950366091283D3DF73BE2D7F9FE53', '2', 0, 4096, null); prompt Done.
--Mettez en place ce trigger, puis ajoutez un produit dans une commande, vérifiez que le champ total est bien mis à jour. DELIMITER | DROP TRIGGER IF EXISTS maj_total CREATE TRIGGER maj_total AFTER INSERT ON lignedecommande FOR EACH ROW BEGIN DECLARE id_c INT; DECLARE tot DOUBLE; SET id_c = NEW.id_commande; -- nous captons le numéro de commande concerné SET tot = (SELECT sum(prix*quantite) FROM lignedecommande WHERE id_commande=id_c); -- on recalcul le total UPDATE commande SET total=tot WHERE id=id_c; -- on stock le total dans la table commande END | DELIMITER ; INSERT INTO lignedecommande (id_commande, id_produit, quantite, prix) VALUES (1, 3, 10, 10.00), VALUES (2, 3, 10, 10.00); --Ce trigger ne fonctionne que lorsque l'on ajoute des produits, --les modifications ou suppressions ne permettent pas de recalculer le total. Comment pourrait-on faire ? --Il faut faire trois triggers (AFTER INSERT, AFTER UPDATE et AFTER DELETE) --On peut utiliser NEW et OLD ---------------------------------------------------------------------------------- -- NEW OLD --INSERT inserted rows empty --DELETE empty deleted rows --UPDATE rows after update rows before update --Delete DELIMITER $$ CREATE TRIGGER maj_total_delete AFTER DELETE ON lignedecommande FOR EACH ROW BEGIN DECLARE id_c INT; DECLARE tot DOUBLE; SET id_c = OLD.id_commande; SET tot = (SELECT sum(prix*quantite) FROM lignedecommande WHERE id_commande=id_c); UPDATE commande SET total=total-tot WHERE id=id_c; END $$ DELIMITER ; DELETE FROM lignedecommande WHERE id_commande = 1 AND id_produit = 3 AND quantite = 10; --Update DELIMITER $$ CREATE TRIGGER maj_total_update AFTER UPDATE ON lignedecommande FOR EACH ROW BEGIN DECLARE id_c INT; DECLARE tot DOUBLE; SET id_c = NEW.id_commande; SET tot = (SELECT sum(prix*quantite) FROM lignedecommande WHERE id_commande=id_c); UPDATE commande SET total=tot WHERE id=id_c; END $$ DELIMITER ; UPDATE lignedecommande SET prix = 50 WHERE id_commande = 1 AND id_produit = 3 AND quantite = 2; --Un champ remise était prévu dans la table commande. Comment pourrait-on le prendre en compte ? --Il faut ajouter total=tot-(tot*remise/100) DELIMITER $$ CREATE TRIGGER maj_total_update AFTER UPDATE ON lignedecommande FOR EACH ROW BEGIN DECLARE id_c INT; DECLARE tot DOUBLE; SET id_c = NEW.id_commande; SET tot = (SELECT sum(prix*quantite) FROM lignedecommande WHERE id_commande=id_c); UPDATE commande SET total=tot-(tot*remise/100) WHERE id=id_c;--la remise END $$ DELIMITER ; UPDATE lignedecommande SET prix = 50 WHERE id_commande = 1 AND id_produit = 3 AND quantite = 2;
<filename>drop.sql DROP DATABASE wildlifetracker_test; DROP DATABASE wildlifetracker;
-- MySQL dump 10.13 Distrib 5.5.62, for Linux (x86_64) -- -- Host: localhost Database: wms -- ------------------------------------------------------ -- Server version 5.5.62 /*!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 `customers` -- DROP TABLE IF EXISTS `customers`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `customers` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `customer_code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `customer_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `customer_phonenumber` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `customer_faxnumber` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `customer_email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `customer_postalcode` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `customer_address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `customers_customer_code_unique` (`customer_code`), KEY `customers_user_id_index` (`user_id`), CONSTRAINT `customers_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `customers` -- LOCK TABLES `customers` WRITE; /*!40000 ALTER TABLE `customers` DISABLE KEYS */; INSERT INTO `customers` VALUES (2,1,'sample','sample','0000000000','0000000000','<EMAIL>','0000000','samplecitysample','2020-09-04 17:35:05','2020-09-15 12:33:09','2020-09-15 12:33:09'),(3,2,'T2','T2','00000000','00000000','<EMAIL>','7570004','あああああT2','2020-09-13 11:05:24','2020-09-13 11:46:11',NULL),(4,1,'nakano','nakano','1111111111','1111111111','<EMAIL>','0000000','nakano','2020-09-15 12:35:57','2020-09-15 12:35:57',NULL),(5,1,'TechAcademy','テックアカデミー','0120-12-3456','0120-98-7654','<EMAIL>','9999999','オンライン学習県プログラミング村PHP','2020-11-01 15:56:59','2020-11-01 16:20:14','2020-11-01 16:20:14'),(6,1,'giants','GIANTS','0312345678','0387654321','<EMAIL>','1128575','東京都文京区後楽','2021-01-09 20:53:41','2021-01-09 20:53:41',NULL); /*!40000 ALTER TABLE `customers` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `histories` -- DROP TABLE IF EXISTS `histories`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `histories` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `stocks_id` int(10) unsigned NOT NULL, `inout` int(11) NOT NULL, `date` date NOT NULL, `quantity` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `customer_id` int(10) unsigned NOT NULL, `change_status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `histories_stocks_id_index` (`stocks_id`), KEY `histories_customer_id_index` (`customer_id`), CONSTRAINT `histories_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`), CONSTRAINT `histories_stocks_id_foreign` FOREIGN KEY (`stocks_id`) REFERENCES `stocks` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `histories` -- LOCK TABLES `histories` WRITE; /*!40000 ALTER TABLE `histories` DISABLE KEYS */; INSERT INTO `histories` VALUES (8,1,1,'2020-10-11',100,'2020-10-11 18:32:16','2020-10-11 21:36:00',4,'否'),(9,1,2,'2020-10-11',50,'2020-10-11 18:32:31','2020-10-11 21:36:00',4,'否'),(12,4,1,'2020-10-04',50,'2020-10-25 11:20:30','2020-10-25 11:20:30',4,'可'),(13,4,1,'2020-10-04',50,'2020-10-25 11:20:51','2020-10-25 11:20:51',4,'可'),(15,4,1,'2020-10-04',50,'2020-10-25 11:43:46','2020-10-25 11:43:46',4,'可'),(16,4,1,'2020-09-01',100,'2020-10-25 19:46:17','2020-10-25 19:46:17',4,'可'),(17,1,1,'2020-08-01',100,'2020-10-25 19:46:44','2020-10-25 19:46:44',4,'可'),(19,1,1,'2020-09-01',100,'2020-10-25 20:47:14','2020-10-25 20:47:14',4,'可'),(20,5,1,'2020-09-26',100,'2020-10-26 12:37:51','2020-10-26 12:37:51',4,'可'),(21,2,1,'2020-09-01',100,'2020-10-27 12:40:59','2020-10-27 12:40:59',4,'可'),(23,6,1,'2020-11-09',100,'2020-11-01 17:03:32','2020-11-01 17:03:32',4,'可'),(24,1,2,'2021-01-10',50,'2021-01-10 00:16:02','2021-01-10 00:16:02',6,'可'),(25,1,2,'2021-01-09',50,'2021-01-10 00:20:08','2021-01-10 00:20:08',6,'可'),(26,5,1,'2021-01-10',100,'2021-01-10 00:21:24','2021-01-10 00:21:24',6,'可'),(27,1,2,'2021-01-10',50,'2021-01-10 00:34:28','2021-01-10 00:34:28',4,'可'),(28,1,2,'2021-01-10',50,'2021-01-10 00:34:45','2021-01-10 00:34:45',6,'可'); /*!40000 ALTER TABLE `histories` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `items` -- DROP TABLE IF EXISTS `items`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `items` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `item_code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `item_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `sell_price` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `purchase_price` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `deleted_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `items_item_code_unique` (`item_code`), KEY `items_user_id_index` (`user_id`), CONSTRAINT `items_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `items` -- LOCK TABLES `items` WRITE; /*!40000 ALTER TABLE `items` DISABLE KEYS */; INSERT INTO `items` VALUES (1,1,'cake','cake PHP','2020-09-20 11:59:30','2020-09-20 11:59:30','200','100',NULL),(2,1,'Slim','スリム','2020-09-20 11:59:47','2020-09-20 11:59:47','1000','800',NULL),(3,1,'LARA','LARAVEL','2020-09-22 22:53:20','2020-09-22 22:53:20','50','20',NULL),(4,1,'FUEL','FUEL PHP','2020-09-22 23:14:33','2020-09-22 23:14:33','500','300',NULL),(5,1,'Rails','Ruby on Rails','2020-09-22 23:17:05','2020-11-01 15:31:06','1800','1000',NULL),(6,1,'Bootstrap','ブートストラップ','2020-11-01 15:20:14','2020-11-01 15:36:48','150','100','2020-11-01 15:36:48'),(7,1,'CSS','見た目','2020-11-01 17:15:33','2020-11-01 17:15:33','10','5',NULL); /*!40000 ALTER TABLE `items` 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` ( `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=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_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 (1,'2014_10_12_000000_create_users_table',1),(2,'2014_10_12_100000_create_password_resets_table',1),(3,'2020_06_20_200747_create_warehouses_table',1),(4,'2020_06_21_205020_drop_foreign_key',1),(5,'2020_06_21_210419_create_items_table',1),(6,'2020_06_22_200836_create_stocks_table',1),(7,'2020_06_24_220059_create_histories_table',1),(8,'2020_06_24_230848_create_foreign_key_table',1),(9,'2020_06_24_233302_warehouses_foreign_key',1),(10,'2020_06_24_233432_items_foreign_key',1),(11,'2020_07_04_201913_histories_foreign_key',1),(12,'2019_02_25_111508_create_samples_table',2),(13,'2020_09_01_195210_create_customers_table',2),(14,'2020_09_02_170506_add_price_to_items_table',3),(18,'2020_09_02_172252_add_customer_id_to_histories_table',4),(19,'2020_09_02_195614_foreign_key_to_histories',5),(20,'2020_09_02_204124_foreign_key_to_customers',6),(21,'2020_09_14_210417_add_column_soft_deletes_items_table',7),(22,'2020_09_14_215613_add_column_soft_deletes_warehouses_table',8),(23,'2020_09_15_122432_add_column_soft_deletes_customers_table',9),(24,'2020_10_11_181447_add_chamge_status_to_histories_table',10); /*!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(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=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_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 `samples` -- DROP TABLE IF EXISTS `samples`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `samples` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `item_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `samples` -- LOCK TABLES `samples` WRITE; /*!40000 ALTER TABLE `samples` DISABLE KEYS */; /*!40000 ALTER TABLE `samples` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `stocks` -- DROP TABLE IF EXISTS `stocks`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `stocks` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `item_id` int(10) unsigned NOT NULL, `warehouse_id` int(10) unsigned NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `stocks_item_id_warehouse_id_unique` (`item_id`,`warehouse_id`), KEY `stocks_item_id_index` (`item_id`), KEY `stocks_warehouse_id_index` (`warehouse_id`), CONSTRAINT `stocks_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`) ON DELETE CASCADE, CONSTRAINT `stocks_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `stocks` -- LOCK TABLES `stocks` WRITE; /*!40000 ALTER TABLE `stocks` DISABLE KEYS */; INSERT INTO `stocks` VALUES (1,1,1,'2020-09-20 17:49:15','2020-09-20 17:49:15'),(2,2,1,'2020-09-20 17:49:25','2020-09-20 17:49:25'),(3,5,1,'2020-09-24 23:32:44','2020-09-24 23:32:44'),(4,3,1,'2020-09-26 21:24:36','2020-09-26 21:24:36'),(5,4,1,'2020-10-26 12:37:51','2020-10-26 12:37:51'),(6,5,4,'2020-11-01 17:03:32','2020-11-01 17:03:32'); /*!40000 ALTER TABLE `stocks` 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(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_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=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_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,'nakano','<EMAIL>','$2y$10$bzlzdVA.zP/7BB6meFrpCerFDWX9Mpk5HUvZ6EWDnJkJTg8bNMPl2','2bRKt3Qfs6DCeaLg3q0myJCysZhEiFQXDFzO0XgCZttVYMDld6DY8fsfyjUl','2020-07-05 21:38:28','2020-07-05 21:38:28'),(2,'すだCo','<EMAIL>','$2y$10$5YegU5Yjn65Go01c2vILHea8WPvnmaI71YbAXknlrX/oDLhawfgp.','nVZY4wHyXC4V4XvZ9NfhBYq09mVDbHEuvhZ9XxDKW3mTeGNDtNnO1GU6zksG','2020-07-19 11:01:36','2020-07-19 11:01:36'); /*!40000 ALTER TABLE `users` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `warehouses` -- DROP TABLE IF EXISTS `warehouses`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `warehouses` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `warehouse_code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `warehouse_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `warehouses_warehouse_code_unique` (`warehouse_code`), KEY `warehouses_user_id_index` (`user_id`), CONSTRAINT `warehouses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `warehouses` -- LOCK TABLES `warehouses` WRITE; /*!40000 ALTER TABLE `warehouses` DISABLE KEYS */; INSERT INTO `warehouses` VALUES (1,1,'PHP','PHP','2020-07-05 21:38:40','2020-07-05 21:38:40',NULL),(2,2,'S1','S1','2020-07-19 11:02:05','2020-07-19 11:02:05',NULL),(3,2,'S2','S2','2020-07-19 11:02:12','2020-07-19 11:02:12',NULL),(4,1,'Ruby','Ruby','2020-08-15 22:26:10','2020-09-14 16:04:05',NULL),(6,1,'Python','パイソン','2020-08-17 16:47:12','2020-09-15 12:18:00','2020-09-15 12:18:00'),(7,1,'Java','ジャバ','2020-10-31 21:50:00','2020-10-31 21:51:03','2020-10-31 21:51:03'),(8,1,'Javascript','ジャバスクリプト2','2020-10-31 21:52:23','2020-11-01 14:20:53','2020-11-01 14:20:53'),(9,1,'C+','Cプラス','2020-11-01 14:54:22','2020-11-01 14:54:32','2020-11-01 14:54:32'),(10,1,'HTML','ハイパーテキストメイクアップラングリッジ','2020-11-01 15:03:48','2020-11-01 15:10:44','2020-11-01 15:10:44'),(11,1,'SWIFT','スイフト','2020-11-13 12:38:23','2020-11-13 12:38:30','2020-11-13 12:38:30'); /*!40000 ALTER TABLE `warehouses` 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 2021-01-17 12:14:58
-- Favor de llenar con los datos de los movimientos -- que hagan en su base de datos. -- Esto es para poder tener el mismo esqueme conforme se va desarrollando -- Este archivo se deberia llenar bloque por bloque con la siguiente informacion: -- Autor: -- Fecha de push -- EL bloque de codigo SQL que hace el cambio en la base de datos -- Breve descripcion de que carajos hace... -- Gracias -- -------------------------------------------------------------------------------------------- -- Autor: <NAME> -- Crear nuevas tablas de usuario, curso y un pivote -- CREATE DATABASE "wwc" ----------------------------------- CREATE DATABASE IF NOT EXISTS `wwc` CHARACTER SET utf8 COLLATE utf8_general_ci; USE `wwc`; -- --------------------------------------------------------- -- --------------------- -- Autor: <NAME> -- Fecha: 2 / Feb / 2015 00:04 -- Agrega el valor por defecto a la columna 'admin' de la tabla 'users'. Por alguna razón me daba -- error solo a mi. -- CREATE TABLE "users" ------------------------------------ CREATE TABLE `users` ( `id` Int( 255 ) UNSIGNED AUTO_INCREMENT NOT NULL, `name` VarChar( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `lastname` VarChar( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `nickname` VarChar( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `password` VarChar( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `admin` Smallint( 1 ) UNSIGNED NOT NULL DEFAULT '0', `email` VarChar( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , CONSTRAINT `id` UNIQUE( `id` ), CONSTRAINT `unique_email` UNIQUE( `email` ) ) CHARACTER SET = utf8 COLLATE = utf8_general_ci ENGINE = InnoDB AUTO_INCREMENT = 2; -- --------------------------------------------------------- -- CREATE TABLE "users_workshops" -------------------------- CREATE TABLE `users_workshops` ( `id` Int( 255 ) UNSIGNED AUTO_INCREMENT NOT NULL, `user_id` Int( 255 ) UNSIGNED NOT NULL, `workshop_id` Int( 255 ) UNSIGNED NOT NULL, `inscription_date` Timestamp NOT NULL ON UPDATE CURRENT_TIMESTAMP DEFAULT '0000-00-00 00:00:00' , CONSTRAINT `unique_id` UNIQUE( `id` ) ) CHARACTER SET = utf8 COLLATE = utf8_general_ci ENGINE = InnoDB AUTO_INCREMENT = 1; -- --------------------------------------------------------- -- CREATE TABLE "workshops" -------------------------------- CREATE TABLE `workshops` ( `id` Int( 255 ) UNSIGNED AUTO_INCREMENT NOT NULL, `title` VarChar( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `description` VarChar( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `begin_date` Date NOT NULL, `end_date` Date NOT NULL , CONSTRAINT `unique_id` UNIQUE( `id` ) ) CHARACTER SET = utf8 COLLATE = utf8_general_ci ENGINE = InnoDB AUTO_INCREMENT = 1; -- --------------------------------------------------------- -- CREATE INDEX "fk_user_workshop" ------------------------- CREATE INDEX `fk_user_workshop` USING BTREE ON `users_workshops`( `user_id` ); -- --------------------------------------------------------- -- CREATE INDEX "fk_workshops" ----------------------------- CREATE INDEX `fk_workshops` USING BTREE ON `users_workshops`( `workshop_id` ); -- --------------------------------------------------------- -- CREATE INDEX "index_id" --------------------------------- CREATE INDEX `index_id` USING BTREE ON `workshops`( `id` ); -- --------------------------------------------------------- -- CREATE LINK "fk_workshops" ------------------------------ ALTER TABLE `users_workshops` ADD CONSTRAINT `fk_workshops` FOREIGN KEY ( `workshop_id` ) REFERENCES `workshops`( `id` ) ON DELETE Cascade ON UPDATE Cascade; -- --------------------------------------------------------- -- CREATE LINK "fk_user_workshop" -------------------------- ALTER TABLE `users_workshops` ADD CONSTRAINT `fk_user_workshop` FOREIGN KEY ( `user_id` ) REFERENCES `users`( `id` ) ON DELETE Cascade ON UPDATE Cascade; -- --------------------------------------------------------- -- ---------------------------- -- Autor: <NAME> -- Fecha: 2 / Feb / 2015 00:04 -- Agrega los dos usuarios de pruebas que se usarán en el sistema. Uno administrador y otro un usuario sencillo. -- ---------------------------- INSERT INTO `users` VALUES ('2', 'Usuario', 'Pruebas', 'user', '9a7defef09195e0ec941fa24d031b57792846fb8', '0', '<EMAIL>'); INSERT INTO `users` VALUES ('3', 'Admin', 'Pruebas', 'admin', '94d95ac4b15b3f446726d99290614fb3bb7e0109', '0', '<EMAIL>');
select * /* if we replace with delete statement here, rows will be deleted */ from ( SELECT "Country", ROW_NUMBER() over( partition by "Country" order by "id" ) rn /* row_number column alias */ from public.view_table_first where "Country" = 'India' ) src /*subquery alias */ where rn > 1;
<reponame>rhomicom-systems-tech-gh/Rhomicom-DB-Scripts /* Formatted on 12-18-2018 5:52:58 PM (QP5 v5.126.903.23003) */ DROP TABLE EPAY.EPAY_PSB7_SUSPTRNS_PRS_INST CASCADE CONSTRAINTS PURGE; CREATE TABLE EPAY.EPAY_PSB7_SUSPTRNS_PRS_INST ( PRS_INST_ID NUMBER NOT NULL, PRS_INST_TYPE_ID NUMBER, PRS_INST_NAME CLOB, PERSONAL_ID_TYPE_ID NUMBER, PERSONAL_ID_NUMBER VARCHAR2 (100), APPRHNSN_CHRG_STATUS VARCHAR2 (15), CREATED_BY NUMBER, CREATION_DATE VARCHAR2 (21), LAST_UPDATE_BY NUMBER, LAST_UPDATE_DATE VARCHAR2 (21), SUSPTRNS_ID NUMBER, OTHER_ID_TYPE VARCHAR2 (50), CONSTRAINT PK_SUSPTRNS_PRS_INST_ID PRIMARY KEY (PRS_INST_ID) ) TABLESPACE RHODB PCTUSED 0 PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE (PCTINCREASE 0 BUFFER_POOL DEFAULT) LOGGING NOCOMPRESS NOCACHE NOPARALLEL MONITORING; DROP SEQUENCE EPAY.EPAY_PSB7_SUSPTRNS_PRS_INST_SEQ; CREATE SEQUENCE EPAY.EPAY_PSB7_SUSPTRNS_PRS_INST_SEQ START WITH 1 MAXVALUE 9223372036854775807 MINVALUE 1 NOCYCLE NOCACHE ORDER; CREATE OR REPLACE TRIGGER EPAY.EPAY_PSB7_SUSPTRNS_PRS_INST_TRG BEFORE INSERT ON EPAY.EPAY_PSB7_SUSPTRNS_PRS_INST FOR EACH ROW -- OPTIONALLY RESTRICT THIS TRIGGER TO FIRE ONLY WHEN REALLY NEEDED WHEN (NEW.PRS_INST_ID IS NULL) DECLARE V_ID EPAY.EPAY_PSB7_SUSPTRNS_PRS_INST.PRS_INST_ID%TYPE; BEGIN SELECT EPAY.EPAY_PSB7_SUSPTRNS_PRS_INST_SEQ.NEXTVAL INTO V_ID FROM DUAL; :NEW.PRS_INST_ID := V_ID; END EPAY_PSB7_SUSPTRNS_PRS_INST_TRG;
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Versione server: 10.3.31-MariaDB - mariadb.org binary distribution -- S.O. server: Win32 -- HeidiSQL Versione: 10.2.0.5599 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!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' */; -- Dump database dbapp CREATE DATABASE IF NOT EXISTS `dbapp` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `dbapp`; -- Dump table dbapp.tblone CREATE TABLE IF NOT EXISTS `tblone` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(64) DEFAULT NULL, `description` varchar(128) DEFAULT NULL, `updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; -- Dump table dbapp.tbltwo CREATE TABLE IF NOT EXISTS `tbltwo` ( `id` int(11) NOT NULL AUTO_INCREMENT, `oneId` int(11) NOT NULL, `val` varchar(64) DEFAULT NULL, `unixtime` int(11) NOT NULL, `updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; -- Dump della struttura di tabella dbapp.users CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `permit` int(1) NOT NULL COMMENT, `email` varchar(64) NOT NULL, `password` varchar(128) NOT NULL, `name` varchar(64) DEFAULT NULL, `surname` varchar(64) DEFAULT NULL, `updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `email` (`email`) ) ENGINE=MyISAM AUTO_INCREMENT=45 DEFAULT CHARSET=utf8; -- Dump dei dati della tabella dbapp.users: 1 rows /*!40000 ALTER TABLE `users` DISABLE KEYS */; --INSERT INTO `users` (`id`, `permit`, `email`, `password`, `name`, `surname`) SELECT 1, 9, '<EMAIL>', '<PASSWORD>', 'Name', 'Surname' FROM DUAL WHERE NOT EXISTS (SELECT * FROM `users`) LIMIT 1; /*!40000 ALTER TABLE `users` ENABLE KEYS */; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
INSERT INTO KRIM_ROLE_T (ROLE_ID,NMSPC_CD,ROLE_NM,DESC_TXT,KIM_TYP_ID,ACTV_IND,LAST_UPDT_DT,VER_NBR,OBJ_ID) VALUES (KRIM_ROLE_ID_S.nextval,'KC-UNT','Modify all Protocols','Modify all Protocols', (SELECT KIM_TYP_ID FROM KRIM_TYP_T WHERE NMSPC_CD = 'KC-SYS' AND NM = 'UnitHierarchy'), 'Y',NULL,1,sys_guid()); Insert into KRIM_PERM_T (PERM_ID,NMSPC_CD,NM,DESC_TXT,PERM_TMPL_ID,ACTV_IND,VER_NBR,OBJ_ID) VALUES (KRIM_PERM_ID_S.NEXTVAL,'KC-PROTOCOL','Create Any Amendment','Create amendments on any protocol', (SELECT PERM_TMPL_ID FROM KRIM_PERM_TMPL_T WHERE NMSPC_CD = 'KC-IDM' AND NM = 'Perform Document Action'), 'Y',1,SYS_GUID()); Insert into KRIM_PERM_T (PERM_ID,NMSPC_CD,NM,DESC_TXT,PERM_TMPL_ID,ACTV_IND,VER_NBR,OBJ_ID) VALUES (KRIM_PERM_ID_S.NEXTVAL,'KC-PROTOCOL','Create Any Renewal','Create renewals for any protocol', (SELECT PERM_TMPL_ID FROM KRIM_PERM_TMPL_T WHERE NMSPC_CD = 'KC-IDM' AND NM = 'Perform Document Action'), 'Y',1,SYS_GUID()); Insert into KRIM_PERM_T (PERM_ID,NMSPC_CD,NM,DESC_TXT,PERM_TMPL_ID,ACTV_IND,VER_NBR,OBJ_ID) VALUES (KRIM_PERM_ID_S.NEXTVAL,'KC-PROTOCOL','Submit Any Protocol','Submit Any Protocol', (SELECT PERM_TMPL_ID FROM KRIM_PERM_TMPL_T WHERE NMSPC_CD = 'KC-IDM' AND NM = 'Perform Document Action'), 'Y',1,SYS_GUID()); Insert into KRIM_PERM_T (PERM_ID,NMSPC_CD,NM,DESC_TXT,PERM_TMPL_ID,ACTV_IND,VER_NBR,OBJ_ID) VALUES (KRIM_PERM_ID_S.NEXTVAL,'KC-PROTOCOL','Maintain Protocol Review Comments','Maintain Protocol Review Comments', (SELECT PERM_TMPL_ID FROM KRIM_PERM_TMPL_T WHERE NMSPC_CD = 'KC-IDM' AND NM = 'Edit Document Section'), 'Y',1,SYS_GUID()); Insert into KRIM_PERM_T (PERM_ID,NMSPC_CD,NM,DESC_TXT,PERM_TMPL_ID,ACTV_IND,VER_NBR,OBJ_ID) VALUES (KRIM_PERM_ID_S.NEXTVAL,'KC-PROTOCOL','Maintain Protocol Related Proj','Maintain Protocols link to award and proposal', (SELECT PERM_TMPL_ID FROM KRIM_PERM_TMPL_T WHERE NMSPC_CD = 'KC-IDM' AND NM = 'Edit Document Section'), 'Y',1,SYS_GUID()); Insert into KRIM_PERM_T (PERM_ID,NMSPC_CD,NM,DESC_TXT,PERM_TMPL_ID,ACTV_IND,VER_NBR,OBJ_ID) VALUES (KRIM_PERM_ID_S.NEXTVAL,'KC-PROTOCOL','Maintain Any Protocol Access','Maintain Any Protocol Access', (SELECT PERM_TMPL_ID FROM KRIM_PERM_TMPL_T WHERE NMSPC_CD = 'KC-IDM' AND NM = 'Edit Document Section'), 'Y',1,SYS_GUID()); Insert into KRIM_PERM_T (PERM_ID,NMSPC_CD,NM,DESC_TXT,PERM_TMPL_ID,ACTV_IND,VER_NBR,OBJ_ID) VALUES (KRIM_PERM_ID_S.NEXTVAL,'KC-PROTOCOL','Add Any Protocol Notes','Add Any Protocol Notes', (SELECT PERM_TMPL_ID FROM KRIM_PERM_TMPL_T WHERE NMSPC_CD = 'KC-IDM' AND NM = 'Edit Document Section'), 'Y',1,SYS_GUID()); Insert into KRIM_ROLE_PERM_T (ROLE_PERM_ID,ROLE_ID,PERM_ID,ACTV_IND,VER_NBR,OBJ_ID) VALUES (KRIM_ROLE_PERM_ID_S.NEXTVAL, (SELECT ROLE_ID FROM KRIM_ROLE_T WHERE NMSPC_CD = 'KC-UNT' AND ROLE_NM = 'Modify all Protocols'), (SELECT PERM_ID FROM KRIM_PERM_T WHERE NMSPC_CD = 'KC-PROTOCOL' AND NM = 'Create Any Renewal'), 'Y',1,SYS_GUID()); Insert into KRIM_ROLE_PERM_T (ROLE_PERM_ID,ROLE_ID,PERM_ID,ACTV_IND,VER_NBR,OBJ_ID) VALUES (KRIM_ROLE_PERM_ID_S.NEXTVAL, (SELECT ROLE_ID FROM KRIM_ROLE_T WHERE NMSPC_CD = 'KC-UNT' AND ROLE_NM = 'Modify all Protocols'), (SELECT PERM_ID FROM KRIM_PERM_T WHERE NMSPC_CD = 'KC-PROTOCOL' AND NM = 'Create Any Amendment'), 'Y',1,SYS_GUID()); Insert into KRIM_ROLE_PERM_T (ROLE_PERM_ID,ROLE_ID,PERM_ID,ACTV_IND,VER_NBR,OBJ_ID) VALUES (KRIM_ROLE_PERM_ID_S.NEXTVAL, (SELECT ROLE_ID FROM KRIM_ROLE_T WHERE NMSPC_CD = 'KC-UNT' AND ROLE_NM = 'Modify all Protocols'), (SELECT PERM_ID FROM KRIM_PERM_T WHERE NMSPC_CD = 'KC-PROTOCOL' AND NM = 'Submit Any Protocol'), 'Y',1,SYS_GUID()); Insert into KRIM_ROLE_PERM_T (ROLE_PERM_ID,ROLE_ID,PERM_ID,ACTV_IND,VER_NBR,OBJ_ID) VALUES (KRIM_ROLE_PERM_ID_S.NEXTVAL, (SELECT ROLE_ID FROM KRIM_ROLE_T WHERE NMSPC_CD = 'KC-UNT' AND ROLE_NM = 'Modify all Protocols'), (SELECT PERM_ID FROM KRIM_PERM_T WHERE NMSPC_CD = 'KC-PROTOCOL' AND NM = 'Maintain Protocol Review Comments'), 'Y',1,SYS_GUID()); Insert into KRIM_ROLE_PERM_T (ROLE_PERM_ID,ROLE_ID,PERM_ID,ACTV_IND,VER_NBR,OBJ_ID) VALUES (KRIM_ROLE_PERM_ID_S.NEXTVAL, (SELECT ROLE_ID FROM KRIM_ROLE_T WHERE NMSPC_CD = 'KC-UNT' AND ROLE_NM = 'Modify all Protocols'), (SELECT PERM_ID FROM KRIM_PERM_T WHERE NMSPC_CD = 'KC-PROTOCOL' AND NM = 'Maintain Protocol Related Proj'), 'Y',1,SYS_GUID()); Insert into KRIM_ROLE_PERM_T (ROLE_PERM_ID,ROLE_ID,PERM_ID,ACTV_IND,VER_NBR,OBJ_ID) VALUES (KRIM_ROLE_PERM_ID_S.NEXTVAL, (SELECT ROLE_ID FROM KRIM_ROLE_T WHERE NMSPC_CD = 'KC-UNT' AND ROLE_NM = 'Modify all Protocols'), (SELECT PERM_ID FROM KRIM_PERM_T WHERE NMSPC_CD = 'KC-PROTOCOL' AND NM = 'Maintain Any Protocol Access'), 'Y',1,SYS_GUID()); Insert into KRIM_ROLE_PERM_T (ROLE_PERM_ID,ROLE_ID,PERM_ID,ACTV_IND,VER_NBR,OBJ_ID) VALUES (KRIM_ROLE_PERM_ID_S.NEXTVAL, (SELECT ROLE_ID FROM KRIM_ROLE_T WHERE NMSPC_CD = 'KC-UNT' AND ROLE_NM = 'Modify all Protocols'), (SELECT PERM_ID FROM KRIM_PERM_T WHERE NMSPC_CD = 'KC-PROTOCOL' AND NM = 'Add Any Protocol Notes'), 'Y',1,SYS_GUID()); Insert into KRIM_ROLE_PERM_T (ROLE_PERM_ID,ROLE_ID,PERM_ID,ACTV_IND,VER_NBR,OBJ_ID) VALUES (KRIM_ROLE_PERM_ID_S.NEXTVAL, (SELECT ROLE_ID FROM KRIM_ROLE_T WHERE NMSPC_CD = 'KC-UNT' AND ROLE_NM = 'Modify all Protocols'), (SELECT PERM_ID FROM KRIM_PERM_T WHERE NMSPC_CD = 'KC-PROTOCOL' AND NM = 'Modify Any Protocol'), 'Y',1,SYS_GUID());
BEGIN; INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT001',1,'0900','1000','101'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT031',1,'0945','1045','151'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT061',1,'1030','1130','201'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT091',1,'1115','1215','251'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT121',1,'1200','1300','301'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT151',1,'1245','1345','351'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT181',1,'1330','1430','401'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT211',1,'1415','1515','451'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT241',1,'1500','1600','501'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT271',1,'1545','1645','551'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT301',1,'1630','1730','601'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT331',1,'1715','1815','651'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT361',1,'1800','1900','701'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT391',1,'1845','1945','751'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT421',1,'1930','2030','801'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT451',1,'2015','2115','851'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT481',1,'2100','2200','901'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT511',1,'2145','2245','951'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT006',5,'0900','1050','106'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT036',5,'0945','1135','156'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT066',5,'1030','1220','206'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT096',5,'1115','1305','256'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT126',5,'1200','1350','306'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT156',5,'1245','1435','356'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT186',5,'1330','1520','406'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT216',5,'1415','1605','456'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT246',5,'1500','1650','506'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT276',5,'1545','1735','556'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT306',5,'1630','1820','606'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT336',5,'1715','1905','656'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT366',5,'1800','1950','706'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT396',5,'1845','2035','756'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT426',5,'1930','2120','806'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT456',5,'2015','2205','856'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT486',5,'2100','2250','906'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT516',5,'2145','2335','956'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT013',12,'0900','1130','113'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT043',12,'0945','1215','163'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT073',12,'1030','1300','213'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT103',12,'1115','1345','263'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT133',12,'1200','1430','313'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT163',12,'1245','1515','363'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT193',12,'1330','1600','413'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT223',12,'1415','1645','463'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT253',12,'1500','1730','513'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT283',12,'1545','1815','563'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT313',12,'1630','1900','613'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT343',12,'1715','1945','663'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT373',12,'1800','2030','713'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT403',12,'1845','2115','763'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT433',12,'1930','2145','813'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT463',12,'2015','2245','863'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT493',12,'2100','2330','913'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT523',12,'2145','2415','963'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT016',15,'0900','1010','116'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT046',15,'0945','1055','166'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT076',15,'1030','1140','216'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT106',15,'1115','1225','266'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT136',15,'1200','1310','316'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT166',15,'1245','1355','366'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT196',15,'1330','1440','416'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT226',15,'1415','1525','466'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT256',15,'1500','1610','516'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT286',15,'1545','1655','566'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT316',15,'1630','1740','616'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT346',15,'1715','1825','666'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT376',15,'1800','1910','716'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT406',15,'1845','1955','766'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT436',15,'1930','2040','816'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT466',15,'2015','2125','866'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT496',15,'2100','2210','916'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT526',15,'2145','2255','966'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT018',17,'0910','1130','118'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT048',17,'0955','1215','168'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT078',17,'1040','1300','218'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT108',17,'1125','1345','268'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT138',17,'1210','1430','318'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT168',17,'1255','1515','368'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT198',17,'1340','1600','418'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT228',17,'1425','1645','468'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT258',17,'1510','1730','518'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT288',17,'1555','1815','568'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT318',17,'1640','1900','618'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT348',17,'1725','1945','668'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT378',17,'1810','2030','718'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT408',17,'1855','2115','768'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT438',17,'1940','2145','818'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT468',17,'2025','2245','868'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT498',17,'2110','2330','918'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT528',17,'2155','2415','968'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT019',18,'0900','1005','119'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT049',18,'0945','1050','169'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT079',18,'1030','1135','219'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT109',18,'1115','1220','269'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT139',18,'1200','1305','319'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT169',18,'1245','1350','369'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT199',18,'1330','1435','419'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT229',18,'1415','1520','469'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT259',18,'1500','1605','519'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT289',18,'1545','1650','569'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT319',18,'1630','1745','619'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT349',18,'1715','1820','669'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT379',18,'1800','1905','719'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT409',18,'1845','1950','769'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT439',18,'1930','2035','819'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT469',18,'2015','2120','869'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT499',18,'2100','2205','919'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT529',18,'2145','2250','969'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT021',20,'0900','1050','121'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT051',20,'0945','1135','171'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT081',20,'1030','1220','221'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT111',20,'1115','1305','271'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT141',20,'1200','1350','321'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT171',20,'1245','1435','371'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT201',20,'1330','1520','421'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT231',20,'1415','1605','471'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT261',20,'1500','1650','521'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT291',20,'1545','1735','571'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT321',20,'1630','1820','621'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT351',20,'1715','1905','671'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT381',20,'1800','1950','721'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT411',20,'1845','2035','771'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT441',20,'1930','2120','821'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT471',20,'2015','2205','871'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT501',20,'2100','2250','921'); INSERT INTO FLIGHT_MASTER (FLIGHT_NAME, ROUTE_NO, DEPARTURE_TIME, ARRIVAL_TIME, CRAFT_TYPE) VALUES ('NTT531',20,'2145','2335','971'); COMMIT;
<reponame>avatar42/genSpring CREATE TABLE Watchlist.ShowsUser(id BIGINT NOT NULL primary key auto_increment, `LastWatched` VARCHAR(10) COMMENT 'len=10' NOT NULL, `BestExperience` VARCHAR(17) COMMENT 'len=17', `Comment` VARCHAR(187) COMMENT 'len=187', `Imdb` VARCHAR(2) COMMENT 'len=2', `Ota` VARCHAR(1) COMMENT 'len=1', `Userid` BIGINT, `ShowsId` BIGINT, `N67` VARCHAR(3) COMMENT 'len=3', `InShowRssAs` VARCHAR(47) COMMENT 'len=47', `TabloLink` VARCHAR(6) COMMENT 'len=6', `InRokuFeed` VARCHAR(1) COMMENT 'len=1', `JustWatch` VARCHAR(2) COMMENT 'len=2', CONSTRAINT FK_ShowsUser_ShowsId FOREIGN KEY (ShowsId) REFERENCES Watchlist.Shows(Id), CONSTRAINT FK_ShowsUser_Userid FOREIGN KEY (Userid) REFERENCES Watchlist.Account(Id));
<reponame>Tiamat-Tech/sourcegraph<filename>migrations/frontend/1528395942_remove-org-saved-searches.down.sql BEGIN; -- ALTER TABLE saved_searches -- ALTER COLUMN user_id DROP NOT NULL; COMMIT;
<reponame>YANG-DB/yang-db -- cast,crew,id CREATE TABLE credits ( id NUMBER(7) NOT NULL PRIMARY KEY, cast VARCHAR(400) NOT NULL, crew VARCHAR(400) NOT NULL )
<filename>postgres/deploy/data_bag_item_insert.sql -- Deploy data_bag_item_insert -- requires: data_bag_items -- requires: data_bags -- requires: goiardi_schema BEGIN; CREATE OR REPLACE FUNCTION goiardi.insert_dbi(m_data_bag_name text, m_name text, m_orig_name text, m_dbag_id bigint, m_raw_data bytea) RETURNS BIGINT AS $$ DECLARE u BIGINT; dbi_id BIGINT; BEGIN SELECT id INTO u FROM goiardi.data_bags WHERE id = m_dbag_id; IF NOT FOUND THEN RAISE EXCEPTION 'aiiiie! The data bag % was deleted from the db while we were doing something else', m_data_bag_name; END IF; INSERT INTO goiardi.data_bag_items (name, orig_name, data_bag_id, raw_data, created_at, updated_at) VALUES (m_name, m_orig_name, m_dbag_id, m_raw_data, NOW(), NOW()) RETURNING id INTO dbi_id; RETURN dbi_id; END; $$ LANGUAGE plpgsql; COMMIT;
<filename>k8s-test/tests/kubernetes_stateful_set/test-get-query.sql select name, namespace, service_name, replicas, collision_count, current_replicas, observed_generation, pod_management_policy, ready_replicas, revision_history_limit, updated_replicas, update_strategy from kubernetes.kubernetes_stateful_set where name = 'web' and namespace = 'default' order by namespace, name;
<gh_stars>10-100 select -- Required Columns self_link resource, case when name like 'gke-%' and labels ? 'goog-gke-node' then 'skip' when metadata -> 'items' @> '[{"key": "block-project-ssh-keys", "value": "true"}]' then 'ok' else 'alarm' end status, case when name like 'gke-%' and labels ? 'goog-gke-node' then title || ' created by GKE.' when metadata -> 'items' @> '[{"key": "block-project-ssh-keys", "value": "true"}]' then title || ' has "Block Project-wide SSH keys" enabled.' else title || ' has "Block Project-wide SSH keys" disabled.' end reason, -- Additional Dimensions location, project from gcp_compute_instance;
<reponame>Zhaojia2019/cubrid-testcases select timestamptz'2015-10-8 15:00:00 Australia/Darwin'; select timestamptz'2015-10-8 15:00:00 Australia/Perth'; select timestamptz'2015-10-8 15:00:00 Australia/Eucla'; select timestamptz'2015-10-8 15:00:00 Australia/Brisbane'; select timestamptz'2015-10-8 15:00:00 Australia/Lindeman'; select timestamptz'2015-10-8 15:00:00 Australia/Adelaide'; select timestamptz'2015-10-8 15:00:00 Australia/Hobart'; select timestamptz'2015-10-8 15:00:00 Australia/Currie'; select timestamptz'2015-10-8 15:00:00 Australia/Melbourne'; select timestamptz'2015-10-8 15:00:00 Australia/Sydney'; select timestamptz'2015-10-8 15:00:00 Australia/Broken_Hill'; select timestamptz'2015-10-8 15:00:00 Australia/Lord_Howe'; select timestamptz'2015-10-8 15:00:00 Indian/Christmas'; select timestamptz'2015-10-8 15:00:00 Pacific/Rarotonga'; select timestamptz'2015-10-8 15:00:00 Indian/Cocos'; select timestamptz'2015-10-8 15:00:00 Pacific/Fiji'; select timestamptz'2015-10-8 15:00:00 Pacific/Gambier'; select timestamptz'2015-10-8 15:00:00 Pacific/Marquesas'; select timestamptz'2015-10-8 15:00:00 Pacific/Tahiti'; select timestamptz'2015-10-8 15:00:00 Pacific/Guam'; select timestamptz'2015-10-8 15:00:00 Pacific/Tarawa'; select timestamptz'2015-10-8 15:00:00 Pacific/Enderbury'; select timestamptz'2015-10-8 15:00:00 Pacific/Kiritimati'; select timestamptz'2015-10-8 15:00:00 Pacific/Saipan'; select timestamptz'2015-10-8 15:00:00 Pacific/Majuro'; select timestamptz'2015-10-8 15:00:00 Pacific/Kwajalein'; select timestamptz'2015-10-8 15:00:00 Pacific/Chuuk'; select timestamptz'2015-10-8 15:00:00 Pacific/Pohnpei'; select timestamptz'2015-10-8 15:00:00 Pacific/Kosrae'; select timestamptz'2015-10-8 15:00:00 Pacific/Nauru'; select timestamptz'2015-10-8 15:00:00 Pacific/Noumea'; select timestamptz'2015-10-8 15:00:00 Pacific/Auckland'; select timestamptz'2015-10-8 15:00:00 Pacific/Chatham'; select timestamptz'2015-10-8 15:00:00 Pacific/Niue'; select timestamptz'2015-10-8 15:00:00 Pacific/Norfolk'; select timestamptz'2015-10-8 15:00:00 Pacific/Palau'; select timestamptz'2015-10-8 15:00:00 Pacific/Port_Moresby'; select timestamptz'2015-10-8 15:00:00 Pacific/Pitcairn'; select timestamptz'2015-10-8 15:00:00 Pacific/Pago_Pago'; select timestamptz'2015-10-8 15:00:00 Pacific/Apia'; select timestamptz'2015-10-8 15:00:00 Pacific/Guadalcanal'; select timestamptz'2015-10-8 15:00:00 Pacific/Fakaofo'; select timestamptz'2015-10-8 15:00:00 Pacific/Tongatapu'; select timestamptz'2015-10-8 15:00:00 Pacific/Funafuti'; select timestamptz'2015-10-8 15:00:00 Pacific/Johnston'; select timestamptz'2015-10-8 15:00:00 Pacific/Midway'; select timestamptz'2015-10-8 15:00:00 Pacific/Wake'; select timestamptz'2015-10-8 15:00:00 Pacific/Efate'; select timestamptz'2015-10-8 15:00:00 Pacific/Wallis'; select timestamptz'2015-10-8 15:00:00 Australia/ACT'; select timestamptz'2015-10-8 15:00:00 Australia/Canberra'; select timestamptz'2015-10-8 15:00:00 Australia/NSW'; select timestamptz'2015-10-8 15:00:00 Australia/Queensland'; select timestamptz'2015-10-8 15:00:00 Australia/Tasmania'; select timestamptz'2015-10-8 15:00:00 Australia/Victoria';
WITH rows AS (INSERT INTO items (title, description, imageurl, ownerid) VALUES ('this is a title', 'my description', '<PASSWORD>', 2) RETURNING id) INSERT INTO itemtags (itemid, tagid) VALUES ((SELECT id as itemid from rows), 7);
/* leave this l:see LICENSE file g:utility v:090122\S.Zaglio: again quoting management and expanded @cmd to 4000 chars v:081124\S.Zaglio: managed names with [] that osql don't accept v:081114\S.Zaglio: now is indipendent from other my sp to allow simple trasport&run to remote server v:080916\S.Zaglio: a little modification moved @dbg as paramerter v:080806\S.Zaglio: added @db v:080429\S.Zaglio: added @uid & @pwd v:080429\S.Zaglio t: begin declare @r int exec @r=sp__test_server '10.0.0.228','dontexist' print @r end t: begin declare @r int exec @r=sp__test_server '.','master' print @r end ->1 t: begin declare @r int exec @r=sp__test_server '.','moster' print @r end ->0 t: begin declare @r int exec @r=sp__test_server '.','' print @r end ->0 */ CREATE procedure [dbo].[sp__test_server] @svr_name sysname, @db sysname, @ping_method bit=0, -- 0=osql 1=ping @uid sysname='sa', @pwd sysname='', @error nvarchar(4000)=null out, @dbg bit=0 as BEGIN set nocount on declare @exists int declare @crlf nchar(2) SET @crlf=CHAR(13)+CHAR(10) declare @cmd nvarchar(4000) set @exists=0 set @svr_name=dbo.fn__sql_unquotename(@svr_name) set @db=dbo.fn__sql_unquotename(@db) if @ping_method=1 begin if @dbg=1 print 'ping method' CREATE TABLE #test_svr_temp ( pingResult SYSNAME NULL ); set @cmd='ping '+@svr_name if @dbg=1 print @cmd INSERT #test_svr_temp EXEC master..xp_cmdshell @cmd IF EXISTS ( SELECT 1 FROM #test_svr_temp WHERE pingResult LIKE '%TTL%' ) set @exists=1 IF @dbg=1 SELECT * FROM #test_svr_temp DROP TABLE #test_svr_temp; end -- ping method else begin -- osql method if @dbg=1 print 'osql method' IF EXISTS(SELECT 1 FROM dbo.sysobjects WHERE [ID] = OBJECT_ID('#temp1') AND type = ('U')) drop table #temp1 CREATE TABLE #temp1 (dbname SYSNAME NULL ); set @cmd='osql -S%svr_name% -dMaster -U%uid% -P%pwd% -Q"SELECT [Name] FROM sysdatabases where [name]=''%db%''"'; set @cmd=replace(@cmd,'%svr_name%',@svr_name) set @cmd=replace(@cmd,'%uid%',@uid) set @cmd=replace(@cmd,'%pwd%',@pwd) set @cmd=replace(@cmd,'%db%',@db) if @dbg=1 print @cmd INSERT #temp1 EXEC master..xp_cmdshell @cmd IF EXISTS ( SELECT 1 FROM #temp1 WHERE LTRIM(RTRIM(dbname)) = @db ) set @exists=1 IF @dbg=1 SELECT * FROM #temp1 if @exists=0 begin -- exec sp__readtable '#temp1', @error output declare @txt sysname declare @sql nvarchar(4000) declare cs_tmp_svr cursor local for select dbname from #temp1 open cs_tmp_svr while (1=1) begin fetch next from cs_tmp_svr into @txt if @@error != 0 or @@fetch_status != 0 break if coalesce(@error,'')<>'' set @error=@error+@crlf set @error=@error+@txt end -- while close cs_tmp_svr deallocate cs_tmp_svr DROP TABLE #temp1 end -- readtable end -- osql method return @exists end
<filename>db/notes.sql -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 28, 2021 at 03:39 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.10 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: `notes` -- -- -------------------------------------------------------- -- -- Table structure for table `uploads` -- CREATE TABLE `uploads` ( `file_id` int(11) NOT NULL, `file_name` varchar(225) NOT NULL, `file_description` text NOT NULL, `file_type` varchar(225) NOT NULL, `file_uploader` varchar(225) NOT NULL, `file_uploaded_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `file_uploaded_to` varchar(225) NOT NULL, `file` varchar(225) NOT NULL, `status` varchar(225) NOT NULL DEFAULT 'not approved yet' ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `uploads` -- INSERT INTO `uploads` (`file_id`, `file_name`, `file_description`, `file_type`, `file_uploader`, `file_uploaded_on`, `file_uploaded_to`, `file`, `status`) VALUES (65, 'OOPS', 'Unit 3', 'pdf', 'admin1', '2021-02-28 14:38:06', 'Computer Science', '294213.pdf', 'not approved yet'), (64, 'Computer System Architecture', 'Unit 3', 'docx', 'admin1', '2021-02-28 14:37:40', 'Computer Science', '161202.docx', 'not approved yet'), (63, 'OOPS', 'Unit 2', 'pdf', 'admin1', '2021-02-26 13:16:34', 'Computer Science', '683782.pdf', 'not approved yet'), (62, 'Computer System Architecture', 'Unit 2', 'docx', 'admin1', '2021-02-26 13:14:44', 'Computer Science', '790374.docx', 'not approved yet'), (61, 'OOPS', 'Unit 1', 'pdf', 'admin1', '2021-02-26 12:40:35', 'Computer Science', '965386.pdf', 'not approved yet'), (60, 'Computer System Architecture', 'Unit 1', 'docx', 'admin1', '2021-02-26 12:34:42', 'Computer Science', '286638.docx', 'not approved yet'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(11) NOT NULL, `username` varchar(225) NOT NULL, `name` varchar(225) NOT NULL, `about` varchar(300) NOT NULL DEFAULT 'N/A', `role` varchar(225) NOT NULL, `email` varchar(225) NOT NULL, `token` varchar(225) NOT NULL, `gender` varchar(225) NOT NULL, `password` varchar(225) NOT NULL, `course` varchar(225) NOT NULL, `image` varchar(225) NOT NULL DEFAULT 'profile.jpg', `joindate` varchar(225) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `username`, `name`, `about`, `role`, `email`, `token`, `gender`, `password`, `course`, `image`, `joindate`) VALUES (29, 'admin1', '<NAME>', 'Software Developer', 'student', '<EMAIL>', '<PASSWORD>', 'Male', '$2y$10$zf4vVN0pO0EnAIWY9oLDBO1qujnIct891DPK2y.2nJP5./miaZWyq', 'Computer Science', '591421.png', 'February 25, 2021'); -- -- Indexes for dumped tables -- -- -- Indexes for table `uploads` -- ALTER TABLE `uploads` ADD PRIMARY KEY (`file_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `uploads` -- ALTER TABLE `uploads` MODIFY `file_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=66; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32; 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 */;
-- 1. Select the code that shows the name, region and population of the smallest country in each region SELECT region, name, population FROM bbc x WHERE population <= ALL (SELECT population FROM bbc y WHERE y.region=x.region AND population>0); -- 2. Select the code that shows the countries belonging to regions with all populations over 50000 SELECT name,region,population FROM bbc x WHERE 50000 < ALL (SELECT population FROM bbc y WHERE x.region=y.region AND y.population>0); -- 3. Select the code that shows the countries with a less than a third of the population of the countries around it SELECT name, region FROM bbc x WHERE population < ALL (SELECT population/3 FROM bbc y WHERE y.region = x.region AND y.name != x.name); -- 4. Select the result that would be obtained from the following code: SELECT name FROM bbc WHERE population > (SELECT population FROM bbc WHERE name='United Kingdom') AND region IN (SELECT region FROM bbc WHERE name = 'United Kingdom'); -- Table-D -- France -- Germany -- Russia -- Turkey -- 5. Select the code that would show the countries with a greater GDP than any country in Africa (some countries may have NULL gdp values). SELECT name FROM bbc WHERE gdp > (SELECT MAX(gdp) FROM bbc WHERE region = 'Africa'); -- 6. Select the code that shows the countries with population smaller than Russia but bigger than Denmark SELECT name FROM bbc WHERE population < (SELECT population FROM bbc WHERE name='Russia') AND population > (SELECT population FROM bbc WHERE name='Denmark'); -- 7. >Select the result that would be obtained from the following code: -- Table-B -- Bangladesh -- India -- Pakistan
--liquibase formatted sql --changeset adriano:201812101816 --comment: População da tabela Funcionario com os inserts insert into `lab04db`.`funcionario`(usuario_id,pessoa_id) values (698,8); insert into `lab04db`.`funcionario`(usuario_id,pessoa_id) values (888,4); insert into `lab04db`.`funcionario`(usuario_id,pessoa_id) values (365,5);
DROP TABLE IF EXISTS public.post_tags; CREATE TABLE public.post_tags ( post_id uuid not null, user_id uuid not null );
<reponame>SAUSy-Lab/map-speed-test -- table for points of origin and destination CREATE TABLE map_speed_od ( id serial PRIMARY KEY, vector geometry(LINESTRING,4326), shortest_path geometry(LINESTRING,4326) ); -- table for storing results CREATE TABLE map_speed_results ( id serial PRIMARY KEY, od_id integer, -- id of od table session_id numeric, trace geometry(LINESTRING,4326), load_time numeric, -- javascript time in milliseconds, time the map was revealed start_time numeric, -- javascript time in milliseconds, trace start end_time numeric, -- javascript time in milliseconds, trace end zoom_level real, map_extent geometry(POLYLINE,4326), -- line from screen minX,minY->maxX,maxY min_opacity real, -- variable of interest, opacity of deadends, varied randomly match geometry(LINESTRING,4326) );
<reponame>Shuttl-Tech/antlr_psql<gh_stars>10-100 -- file:rangefuncs.sql ln:474 expect:true select * from tt
<reponame>stlbucket/postgraphile-de-extension -- Revert app_jobs_fn:function/jobs__decrease_job_queue_count from pg BEGIN; DROP FUNCTION IF EXISTS app_jobs_fn.jobs__decrease_job_queue_count(); COMMIT;
SELECT t.hash, t.block_number as block_height, o.index, address FROM `bigquery-public-data.crypto_bitcoin.transactions` AS t, UNNEST(t.outputs) as o, UNNEST(o.addresses) as address WHERE DATE(block_timestamp) >= '{{ds}}' AND DATE(block_timestamp) < DATE_ADD('{{ds}}', INTERVAL 1 {{var.value.INTERVAL}}) AND EXTRACT(YEAR FROM DATE '{{ds}}') = EXTRACT(YEAR FROM block_timestamp) ORDER BY t.hash, o.index
<filename>Monitoring Solutions/CollectLocks/Job [DBA - CollectLocks].sql USE [msdb] GO /****** Object: Job [DBA - CollectLocks] Script Date: 1/7/2018 11:49:02 AM ******/ BEGIN TRANSACTION DECLARE @ReturnCode INT SELECT @ReturnCode = 0 /****** Object: JobCategory [Database Maintenance] Script Date: 1/7/2018 11:49:04 AM ******/ IF NOT EXISTS (SELECT name FROM msdb.dbo.syscategories WHERE name=N'Database Maintenance' AND category_class=1) BEGIN EXEC @ReturnCode = msdb.dbo.sp_add_category @class=N'JOB', @type=N'LOCAL', @name=N'Database Maintenance' IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback END DECLARE @jobId BINARY(16) EXEC @ReturnCode = msdb.dbo.sp_add_job @job_name=N'DBA - CollectLocks', @enabled=1, @notify_level_eventlog=0, @notify_level_email=0, @notify_level_netsend=0, @notify_level_page=0, @delete_level=0, @description=N'No description available.', @category_name=N'Database Maintenance', @owner_login_name=N'sa', @job_id = @jobId OUTPUT IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback /****** Object: Step [CollectLocks] Script Date: 1/7/2018 11:49:07 AM ******/ EXEC @ReturnCode = msdb.dbo.sp_add_jobstep @job_id=@jobId, @step_name=N'CollectLocks', @step_id=1, @cmdexec_success_code=0, @on_success_action=1, @on_success_step_id=0, @on_fail_action=2, @on_fail_step_id=0, @retry_attempts=0, @retry_interval=0, @os_run_priority=0, @subsystem=N'TSQL', @command=N'EXEC DBA.dbo.CollectLocks @timeOfBlockInSec = 5', @database_name=N'master', @flags=4 IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback EXEC @ReturnCode = msdb.dbo.sp_update_job @job_id = @jobId, @start_step_id = 1 IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback EXEC @ReturnCode = msdb.dbo.sp_add_jobschedule @job_id=@jobId, @name=N'Every_10min', @enabled=1, @freq_type=4, @freq_interval=1, @freq_subday_type=4, @freq_subday_interval=10, @freq_relative_interval=0, @freq_recurrence_factor=0, @active_start_date=20160430, @active_end_date=99991231, @active_start_time=0, @active_end_time=235959 IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback EXEC @ReturnCode = msdb.dbo.sp_add_jobschedule @job_id=@jobId, @name=N'RunAsSQLAgentServiceStartSchedule', @enabled=1, @freq_type=64, @freq_interval=0, @freq_subday_type=0, @freq_subday_interval=0, @freq_relative_interval=0, @freq_recurrence_factor=0, @active_start_date=20160430, @active_end_date=99991231, @active_start_time=0, @active_end_time=235959 IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback EXEC @ReturnCode = msdb.dbo.sp_add_jobserver @job_id = @jobId, @server_name = N'(local)' IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback COMMIT TRANSACTION GOTO EndSave QuitWithRollback: IF (@@TRANCOUNT > 0) ROLLBACK TRANSACTION EndSave: GO
DROP TABLE IF EXISTS chat_messages CASCADE; CREATE TABLE chat_messages ( id SERIAL PRIMARY KEY NOT NULL, user_id INTEGER REFERENCES users(id) ON DELETE CASCADE, group_id INTEGER REFERENCES groups(id) ON DELETE CASCADE, text TEXT, created_at DATE NOT NULL );
<filename>db/schema.sql DROP DATABASE IF EXISTS patient_records_db; CREATE DATABASE patient_records_db;
<gh_stars>1-10 UPDATE `creature_template` SET `ScriptName` = 'boss_gyth' WHERE `entry` = 10339; UPDATE `creature_template` SET `ScriptName` = 'boss_rend_blackhand' WHERE `entry` = 10429; UPDATE `creature_template` SET `ScriptName` = 'boss_pyroguard_emberseer' WHERE `entry` = 9816; UPDATE `creature_template` SET `ScriptName` = 'mob_chromatic_elite_guard' WHERE `entry` = 10814; UPDATE `creature_template` SET `ScriptName` = 'mob_ancient_core_hound' WHERE `entry` = 11673; UPDATE `creature_template` SET `ScriptName` = 'mob_core_rager' WHERE `entry` = 11672; UPDATE `creature_template` SET `ScriptName` = 'mob_firesworn' WHERE `entry` = 12099; UPDATE `creature_template` SET `ScriptName` = 'mob_firewalker' WHERE `entry` = 11666; UPDATE `creature_template` SET `ScriptName` = 'mob_flame_guard' WHERE `entry` = 11667; UPDATE `creature_template` SET `ScriptName` = 'mob_flamewaker' WHERE `entry` = 11661; UPDATE `creature_template` SET `ScriptName` = 'mob_flamewaker_elite' WHERE `entry` = 11664; UPDATE `creature_template` SET `ScriptName` = 'mob_flamewaker_healer' WHERE `entry` = 11663; UPDATE `creature_template` SET `ScriptName` = 'mob_flamewaker_protector' WHERE `entry` = 12119; UPDATE `creature_template` SET `ScriptName` = 'mob_lavaspawn' WHERE `entry` = 12265; UPDATE `creature_template` SET `ScriptName` = 'mob_molten_destroyer' WHERE `entry` = 11659; UPDATE `creature_template` SET `ScriptName` = 'mob_molten_giant' WHERE `entry` = 11658; UPDATE `creature_template` SET `ScriptName` = 'boss_azuregos' WHERE `entry` = 6109;
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 18-Abr-2020 às 04:08 -- Versão do servidor: 10.1.33-MariaDB -- PHP Version: 7.2.6 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: `pmf` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `asset_table` -- CREATE TABLE `asset_table` ( `id_asset` int(11) NOT NULL, `id_package` int(11) NOT NULL, `Version` varchar(50) NOT NULL, `SdkVersion` varchar(50) NOT NULL, `Checksum` varchar(150) NOT NULL, `FileName` varchar(150) NOT NULL, `Url` varchar(2500) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `asset_table` -- INSERT INTO `asset_table` (`id_asset`, `id_package`, `Version`, `SdkVersion`, `Checksum`, `FileName`, `Url`) VALUES (1, 1, '0.0.1', '0.0.5', 'asdfasdfasdf', 'asdf.zip', 'http://localhost:3000/asdfasdf.zip'); -- -------------------------------------------------------- -- -- Estrutura da tabela `dependency` -- CREATE TABLE `dependency` ( `id_dependency` int(11) NOT NULL, `id_asset` int(11) NOT NULL, `ID` varchar(50) NOT NULL, `Checksum` varchar(150) NOT NULL, `FileName` varchar(150) NOT NULL, `Url` varchar(2500) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `dependency` -- INSERT INTO `dependency` (`id_dependency`, `id_asset`, `ID`, `Checksum`, `FileName`, `Url`) VALUES (1, 1, 'stuff', 'asdfasdf', 'asdfasdf', 'http://localhost:3000/asdfasdf.zip'); -- -------------------------------------------------------- -- -- Estrutura da tabela `package` -- CREATE TABLE `package` ( `id_package` int(11) NOT NULL, `ID` varchar(50) NOT NULL, `Type` int(11) NOT NULL, `Name` varchar(50) NOT NULL, `Author` varchar(50) NOT NULL, `Description` varchar(500) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `package` -- INSERT INTO `package` (`id_package`, `ID`, `Type`, `Name`, `Author`, `Description`) VALUES (1, 'test', 1, 'Test Package', '', 'This is a package for testing stuff and things'); -- -- Indexes for dumped tables -- -- -- Indexes for table `asset_table` -- ALTER TABLE `asset_table` ADD PRIMARY KEY (`id_asset`), ADD KEY `id_package` (`id_package`); -- -- Indexes for table `dependency` -- ALTER TABLE `dependency` ADD PRIMARY KEY (`id_dependency`), ADD KEY `id_asset` (`id_asset`); -- -- Indexes for table `package` -- ALTER TABLE `package` ADD PRIMARY KEY (`id_package`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `asset_table` -- ALTER TABLE `asset_table` MODIFY `id_asset` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `dependency` -- ALTER TABLE `dependency` MODIFY `id_dependency` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `package` -- ALTER TABLE `package` MODIFY `id_package` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- Constraints for dumped tables -- -- -- Limitadores para a tabela `asset_table` -- ALTER TABLE `asset_table` ADD CONSTRAINT `FK_asset_table_package` FOREIGN KEY (`id_package`) REFERENCES `package` (`id_package`); -- -- Limitadores para a tabela `dependency` -- ALTER TABLE `dependency` ADD CONSTRAINT `FK_dependency_asset_table` FOREIGN KEY (`id_asset`) REFERENCES `asset_table` (`id_asset`); 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>cqrs/SeparateModels/DbScripts/create_db.sql -- cd DbScripts -- "PostgreSQL\9.6\bin\psql.exe" --host "localhost" --port 5432 --username "postgres" --file "create_db.sql" CREATE USER lab_user WITH ENCRYPTED PASSWORD '<PASSWORD>'; CREATE DATABASE lab_policy; GRANT ALL PRIVILEGES ON DATABASE lab_policy TO lab_user; CREATE DATABASE lab_cqrs_dotnet_demo GRANT ALL PRIVILEGES ON DATABASE lab_cqrs_dotnet_demo TO lab_user;
--Video 66 Triggers[Insert] --Estructura -- create triggre Nombretrigger -- on Tabla -- for delete --as -- sentencias select * from TablaAlmacen select * from TablaVentas join TablaAlmacen on TablaVentas.id_producto = TablaAlmacen.id_producto --Creacion trigger-- create trigger EliminarVenta --Asignamos un nombre al trigger on TablaVentas --Indicamos la tabla donde se activara la accion for delete --Despues de insertar en la TablaVentas as begin --Comienza las sentencias declare @total int --Declaramos una variable int set @total = (select sum(cantidad) from TablaVentas) --obtenemos la suma de las cantidades y lo asignamos a la variable update TablaTotales --hacemos un update a lña tabla totales set TablaTotales.cantidad = @total end --finalizan las sentecias --fin Trigger-- --Comprobamos los valores ingresados select * from TablaVentas select * from TablaTotales --insertamos un registro delete TablaVentas where TablaVentas.id_venta = 3
/* * Inserts the new tables fileresources and fileresourcetypes for keeping track of flat file resources available through the web interface. */ SET FOREIGN_KEY_CHECKS=0; CREATE TABLE `fileresourcetypes` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'The primary id.', `name` varchar(255) NOT NULL COMMENT 'The name of the file type.', `description` text NULL COMMENT 'The description of the file type.', `created_on` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'When this record was created.', `updated_on` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'When this record was last updated.', PRIMARY KEY (`id`), INDEX `fileresourcetype_name`(`name`) USING BTREE ); CREATE TABLE `fileresources` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'The primary id.', `name` varchar(255) NOT NULL COMMENT 'The name of the file resource.', `path` text NULL COMMENT 'The file name of the actual data file.', `description` text NULL COMMENT 'A description of the file contents.', `filesize` bigint NULL COMMENT 'The file size in bytes.', `fileresourcetype_id` int NOT NULL COMMENT 'Foreign key to fileresourcetypes.', `created_on` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'When this record was created.', `updated_on` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'When this record was last updated.', PRIMARY KEY (`id`), INDEX `fileresource_name`(`name`) USING BTREE, FOREIGN KEY (`fileresourcetype_id`) REFERENCES `fileresourcetypes` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ); SET FOREIGN_KEY_CHECKS=1;
<filename>migrations/20210514165550_view_nft_tokens.down.sql DROP TABLE IF EXISTS view_nft_tokens;
<reponame>anas11cs/BullsStockExchange create database stockexchange -- 1ST EXECUTION BELOW -- use stockexchange -- NECCESARY TO EXECUTE -- -- DANGER ! -- drop database stockexchange -- DANGER ! -- ---------------------- -- SHARED DATABASES -- --> PSX --> BANK --> BROKERS ---------------------- ----------------------------------------------- ----------------------------------------------- -- DONOT EXECUTE THESE BELOW, GO BELOW AND YOU WILL FIND 'EXECUTE THESE BELOW' EXECUTE EVERYTHING BELOW IT ----------------------------------------------- ----------------------------------------------- -- .8 -- BROKE A SHARE -- PRE-ASSUMPTIONS: as you know we at sign-up/login , login verify if the person have provided right psxno or not, so no need to check here create procedure [f8] @email nvarchar(75), @companyname nvarchar(100), @numberofshares int, @sharevalueoffered int, @output int output AS BEGIN -- cnicperson nvarchar(15) declare @cnic nvarchar(15) select @cnic=person.cnic from person where person.email=@email Declare @tmp int Declare @tmp1 nvarchar(5) Declare @shr int SELECT @tmp=psxaccno FROM psxperson WHERE cnic=@cnic -- SELECT @tmp1=regno FROM psxcompany WHERE compname=@companyname -- SELECT @shr=msvom FROM psxmarket WHERE regno=@tmp1 -- if exists( SELECT * FROM psxrecord WHERE (compname=@companyname AND (psxrecord.noofstocks >= @numberofshares) AND psxaccno=@tmp)) begin if(@sharevalueoffered <=@shr) begin INSERT [dbo].[stockseller] ([cnicp],[nstockstosell],[compname],[sharevoffr])VALUES(@cnic,@numberofshares,@companyname,@sharevalueoffered) set @output=1 end else begin INSERT [dbo].[stockseller] ([cnicp],[nstockstosell],[compname],[sharevoffr])VALUES(@cnic,@numberofshares,@companyname,@sharevalueoffered) set @output=2 --print'Your stock is broked & The chance of your stock to broke is low' -- WE ARE IMPLEMENTING LIMITED FUNCTIONALITIES, SO WITHDRAW IS NOT A FUNCTIONALITY GIVEN INTRODUCING end end else begin set @output=-1 end END go -- SELL PRIME TIME create procedure sellprimetime as begin print ' High Bulls ' select distinct pr.compname, pr.priceofshare from psxrecord as pr join psxcompany as pc on pr.compname= pc.compname join psxmarket as pm on pc.regno=pm.regno where pr.priceofshare < pm.msvom adn = end -- .10 -- BUY A SHARE -- -- BEFORE THE USER ENTER WHAT HE WANTS TO BUY WE WILL HAVE TO SHOW ALL THE FOUR PLACES FROM WHERE HE CAN SEE HIMSELF THAT WHAT HE WANTS TO BUY -- THERE IS TRIGGER REQUIRED FOR STOCKSELLER TABLE THAT KEEPS RUNNING WHENEVER THERE IS INSERTION IN STOCKSELLER TO CHECK IF THE OFFER ENTERED THERE IS USEFUL TO ANYBODY IN THE STOCKBUYER TABLE -- IF USEFUL TO ANYBODY THIS PROCEDURE GETS EXECUTED BY THAT TRIGGER -- -- WE ASSUME CNIC IS VERIFIED AS THE PERSON IS OUR CUSTOMER -- -- STEPS:check person's bank account balance->match the deal->issue noticepsxbank | noticebroker/noticebrokercomp/noticepsxbank/noticepsxcompbank->update the bank accounts of both the parties->remove from table issue notice -- -- STEPS CONTINUE: ->update parallel psx accounts ->update stockseller/stocksellercomp/buybrokercomp/buybrokerperson -- -- ->update psxmarket (and it only updates when share price up/down else no change -- PHANTOM CASE: HANDLING REQUIRED -- HANDLE: DONT SHOW TO ANYBODY ELSE IN EVERY TRANSACTION CASE THAT, THE TRANSACTION DO BLOCKS IN BANK & PSX BUT HOW DO YOU CHECK IT -- IF THE PERSON'S THAT COMPANY STOCKS ARE BEING PROCESSED THEN THESE STOCKS ARE NOT SHOWN TO ANYBODY ELSE AND -- -- 1ST REMOVE THE PERSON FROM STOCK BUYER IF HE ALREADY EXISTS create procedure [f10] @cnic nvarchar(15), @nstockstobuy int, @compname nvarchar(100), @mybankname nvarchar(50), @maxshareval real AS BEGIN -- seller declare @banknames nvarchar(50) declare @regnos nvarchar(5) declare @cnics nvarchar(15) declare @blncseller real declare @priceshareoripo real -- buyer declare @nskbuyer int -- existing stocks in the company declare @blncbuyer real declare @psxaccbuyer int SELECT @psxaccbuyer=psxaccno FROM psxperson WHERE cnic=@cnic if not exists( SELECT [balance] from bank where @cnic=cnic AND [balance]>=(maxshareval*nstockstobuy) AND @mybankname=bankname) begin print'Your account have insufficient balance for purchasing the required stocks/shares' end else begin if exists(SELECT * FROM stockbuyer WHERE cnicp=@cninc AND compname=@compname) begin DELETE FROM stockbuyer WHERE cnicp=@cnic AND compname=@compname end if exists(SELECT * FROM stocksellercomp WHERE stocksellercomp.compname=@compname AND @nstocktobuy<=stocksellercomp.nipostosell AND stocksellercomp.facevalue <= maxshareval) begin SELECT @regnos=[psxregno],@banknames=[bankname],@cnics=cnicbank FROM company WHERE @compname=compname SELECT @priceshareoripo=faceval FROM psxcompany WHERE @regno=[regno].[psxcompany] -- notice issuance INSERT [dbo].[noticebankpsx]([cnic],[bankname])VALUES(@cnic,@mybankname) INSERT [dbo].[noticecompbankpsx]([regno],[compname],[cnic])VALUES(@regnos,@compname,@cnics) -- balance updation of both parties SELECT @blncbuyer=balance FROM bank WHERE @mybankname=bankname AND @cnic=cnic SELECT @blncseller=balance FROM bank WHERE @banknames=bankname AND @cnics=cnic declare @tmp=(@priceshareoripo*@nstockstobuy) SET @blncbuyer=@blncbuyer-(@tmp) SET @blncseller=@blncseller+(@tmp) UPDATE [bank] SET balance=@blncbuyer WHERE @mybankname=bankname AND @cnic=cnic UPDATE [bank] SET balance=@blncseller WHERE @banknames=bankname AND @cnics=cnic -- balance updation -- psx account update -- buyer SELECT @psxaccbuyer=psxaccno FROM psxperson WHERE cnic=@cnic if exists (SELECT * FROM psxrecord WHERE @psxaccbuyer=psxaccno AND @compname=compname) begin SELECT @nskbuyer=noofstocks FROM psxrecord WHERE @psxaccbuyer=psxaccno AND @compname=compname SET @nskbuyer=@nskbuyer+@nstockstobuy UPDATE [dbo].[psxrecord] SET noofstocks=@nskbuyer WHERE @psxaccseller=psxaccno AND @compname=compname end else begin INSERT [dbo].[psxrecord]([psxaccno],[noofstocks],[compname]) VALUES(@psxaccbuyer,@nstockstobuy,@compname) end --seller company declare @nsksellercomp int SELECT @nsksellercomp=nipostosell FROM stocksellercomp WHERE @compname=compname SET @nsksellercomp=@nsksellercomp-@nstockstobuy UPDATE [psxcompany] SET totalshares=totalshares+@nsksellercomp WHERE @compname=compname AND @regnos=regno -- psx account update -- update stocksellercomp start if(@nskseller=0) begin DELETE FROM stocksellercomp WHERE @compname=compname end else begin UPDATE FROM stocksellercomp SET nipostosell=@nsksellercomp WHERE @compname=compname end -- update stocksellercomp end -- notices clearance DELETE FROM [noticecompbankpsx] WHERE regno=@regnos DELETE FROM [noticebankpsx] WHERE bankname=@mybankname AND cnic=@cnic end else if exists(SELECT * FROM buybrokercomp WHERE buybrokercomp.compname=@compname AND @nstocktobuy<=nipostosell.buybrokercomp AND buybrokercomp.facevalue <=maxshareval) begin declare @regbroker int SELECT top 1 @regnos=[compregno],@banknames=[bankname],@cnics=cnicbank,@priceshareoripo=facevalue,@regbroker=regnobroker FROM buybrokercomp WHERE @compname=compname SELECT @priceshareoripo=faceval FROM psxcompany WHERE @regnos=[regno].[psxcompany] -- notice issuance INSERT [dbo].[noticebankpsx]([cnic],[bankname])VALUES(@cnic,@mybankname) INSERT [dbo].[noticecompbankpsx]([regno],[compname],[cnic])VALUES(@regnos,@compname,@cnics) INSERT [dbo].[brokernoticecomp]([regnocompany],[regnobroker],[cnicbank])VALUES(@regnos,@regbroker,@cnics) INSERT [dbo].[stockselling] -- balance updation of both parties SELECT @blncbuyer=balance FROM bank WHERE @mybankname=bankname AND @cnic=cnic SELECT @blncseller=balance FROM bank WHERE @banknames=bankname AND @cnics=cnic declare @tmp=(@priceshareoripo*@nstockstobuy) SET @blncbuyer=@blncbuyer-(@tmp) SET @blncseller=@blncseller+(@tmp) UPDATE [bank] SET balance=@blncbuyer WHERE @mybankname=bankname AND @cnic=cnic UPDATE [bank] SET balance=@blncseller WHERE @banknames=bankname AND @cnics=cnic -- balance updation -- psx account update -- buyer SELECT @psxaccbuyer=psxaccno FROM psxperson WHERE cnic=@cnic if exists (SELECT * FROM psxrecord WHERE @psxaccbuyer=psxaccno AND @compname=compname) begin SELECT @nskbuyer=noofstocks FROM psxrecord WHERE @psxaccbuyer=psxaccno AND @compname=compname SET @nskbuyer=@nskbuyer+@nstockstobuy UPDATE [dbo].[psxrecord] SET noofstocks=@nskbuyer WHERE @psxaccseller=psxaccno AND @compname=compname end else begin INSERT [dbo].[psxrecord]([psxaccno],[noofstocks],[compname]) VALUES(@psxaccbuyer,@nstockstobuy,@compname) end --seller company declare @nsksellercomp int SELECT @nsksellercomp=nipostosell FROM buybrokercomp WHERE @compname=compname AND @regbroker=regnobroker SET @nsksellercomp=@nsksellercomp-@nstockstobuy UPDATE [psxcompany] SET totalshares=totalshares+@nsksellercomp WHERE @compname=compname AND @regnos=regno -- psx account update -- update buybrokercomp start if(@nsksellercomp=0) begin DELETE FROM [buybrokercomp] WHERE @compname=compname AND @regbroker=regnobroker end else begin UPDATE [buybrokercomp] SET nipostosell=@nsksellercomp WHERE @compname=compname AND @regbroker=regnobroker end -- update buybrokercomp end -- notices clearance DELETE FROM [noticecompbankpsx] WHERE regno=@regnos DELETE FROM [noticebankpsx] WHERE bankname=@mybankname AND cnic=@cnic DELETE FROM [brokernoticecomp] WHERE regnocompany=@regnos AND regnobroker=@regbroker end else if exists( SELECT * FROM stockseller WHERE stockseller.compname=@compname AND @nstocktobuy<=stockseller.nstockstosell AND stockseller.sharevoffr <=maxshareval) begin -- OPTIMIZATION OF LESSEST PRICE REQUIRED HERE -> DONE USING 'ORDER BY' declare psxaccseller int SELECT top 1 @cnics=cnicp,@priceshareoripo=sharevoffr FROM stockseller WHERE @compname=stockseller.compname order by sharevoffr asc SELECT @regnos=[psxaccno],@banknames=[bankname] FROM person WHERE @cnics=person.cnic -- notice issuance INSERT [dbo].[noticebankpsx]([cnic],[bankname])VALUES(@cnic,@mybankname) INSERT [dbo].[noticebankpsx]([cnic],[bankname])VALUES(@cnics,@banknames) -- balance updation of both parties SELECT @blncbuyer=balance FROM bank WHERE @mybankname=bankname AND @cnic=cnic SELECT @blncseller=balance FROM bank WHERE @banknames=bankname AND @cnics=cnic declare @tmp=(@priceshareoripo*@nstockstobuy) SET @blncbuyer=@blncbuyer-(@tmp) SET @blncseller=@blncseller+(@tmp) UPDATE [bank] SET balance=@blncbuyer WHERE @mybankname=bankname AND @cnic=cnic UPDATE [bank] SET balance=@blncseller WHERE @banknames=bankname AND @cnics=cnic -- balance updation end -- psx account update st -- update stockseller st declare @nskseller int SELECT @psxaccseller=psxaccno FROM psxperson WHERE cnic=@cnics SELECT @nskseller=noofstocks FROM psxrecord WHERE @psxaccseller=psxaccno AND @compname=compname SET @nskseller=@nskseller-@nstockstobuy -- seller if(@nskseller=0) begin DELETE FROM [dbo].[psxrecord] WHERE @psxaccseller=psxaccno AND @compname=compname DELETE FROM [dbo].[stockseller] WHERE @cnics=cnicp AND @compname=compname end else begin UPDATE [dbo].[psxrecord] SET noofstocks=@nskseller WHERE @psxaccseller=psxaccno AND @compname=compname UPDATE [dbo].[stockseller] SET nstockstosell=@nskseller WHERE cnicp=@cnics AND @compname=compname end -- buyer if exists (SELECT * FROM psxrecord WHERE @psxaccbuyer=psxaccno AND @compname=compname) begin SELECT @nskbuyer=noofstocks FROM psxrecord WHERE @psxaccbuyer=psxaccno AND @compname=compname SET @nskbuyer=@nskbuyer+@nstockstobuy UPDATE [dbo].[psxrecord] SET noofstocks=@nskbuyer WHERE @psxaccseller=psxaccno AND @compname=compname end else begin INSERT [dbo].[psxrecord]([psxaccno],[noofstocks],[compname]) VALUES(@psxaccbuyer,@nstockstobuy,@compname) end declare @datup date declare @regnoc nvarchar(5) SELECT @regnoc=regno.psxcompany FROM psxcompany WHERE @compname=compname if exists(SELECT * FROM psxmarket WHERE @regnoc=regno.psxmarket) begin SELECT @datup=dat FROM psxmarket WHERE @regnoc=regno.psxmarket if(@datup=GETDATE()) begin UPDATE psxmarket SET msvom=@priceshareoripo WHERE @regnoc=regno end else begin UPDATE psxmarket SET msvom=@priceshareoripo,dat=GETDATE() WHERE @regnoc=regno end end else begin INSERT [dbo].[psxmarket]([regno],[msvom],[dat]) VALUES (@regnoc,@priceshareoripo,GETDATE()) end -- psx account update end -- update stockseller end -- notices clearance DELETE FROM [dbo].[noticebankpsx] WHERE bankname=@mybankname AND cnic=@cnic DELETE FROM [dbo].[noticebankpsx] WHERE bankname=@banknames AND cnic=@cnics end else if exists(SELECT * FROM buybrokerperson WHERE buybrokerperson.compname=@compname AND @nstocktobuy<=buybrokerperson.noofshares AND buybrokerperson.sharevalue <=maxshareval) begin declare psxaccseller int declare @regbroker int -- OPTIMIZATION OF LESSEST PRICE REQUIRED HERE SELECT top 1 @banknames=[bankname],@cnics=cnicp,@priceshareoripo=sharevalue,@regbroker=regnobroker FROM buybrokerperson WHERE @compname=compname -- notice issuance INSERT [dbo].[noticebankpsx]([cnic],[bankname]) VALUES(@cnic,@mybankname) INSERT [dbo].[noticebankpsx]([cnic],[bankname]) VALUES(@cnics,@banknames) INSERT [dbo].[brokernotice] ([cnicp],[regnobroker])VALUES(@cnics,@regbroker) -- balance updation of both parties st SELECT @blncbuyer=balance FROM bank WHERE @mybankname=bankname AND @cnic=cnic SELECT @blncseller=balance FROM bank WHERE @banknames=bankname AND @cnics=cnic declare @tmp=(@priceshareoripo*@nstockstobuy) SET @blncbuyer=@blncbuyer-(@tmp) SET @blncseller=@blncseller+(@tmp) UPDATE [bank] SET balance=@blncbuyer WHERE @mybankname=bankname AND @cnic=cnic UPDATE [bank] SET balance=@blncseller WHERE @banknames=bankname AND @cnics=cnic -- balance updation end -- psx account update -- update buybrokerperson declare @nskseller int SELECT @psxaccseller=psxaccno FROM psxperson WHERE cnic=@cnics SELECT @nskseller=noofstocks FROM psxrecord WHERE @psxaccseller=psxaccno AND @compname=compname SET @nskseller=@nskseller-@nstockstobuy -- seller if(@nskseller=0) begin DELETE FROM [dbo].[psxrecord] WHERE @psxaccseller=psxaccno AND @compname=compname DELETE FROM [dbo].[buybrokerperson] WHERE @cnics=cnicp AND @compname=compname AND @regbroker=regnobroker end else begin UPDATE [dbo].[psxrecord] SET noofstocks=@nskseller WHERE @psxaccseller=psxaccno AND @compname=compname UPDATE [dbo].[buybrokerperson] SET noofstocks=@nskseller WHERE @cnics=cnicp AND @compname=compname AND @regbroker=regnobroker end -- buyer if exists (SELECT * FROM psxrecord WHERE @psxaccbuyer=psxaccno AND @compname=compname) begin SELECT @nskbuyer=noofstocks FROM psxrecord WHERE @psxaccbuyer=psxaccno AND @compname=compname SET @nskbuyer=@nskbuyer+@nstockstobuy UPDATE [dbo].[psxrecord] SET noofstocks=@nskbuyer WHERE @psxaccseller=psxaccno AND @compname=compname end else begin INSERT [dbo].[psxrecord]([psxaccno],[noofstocks],[compname]) VALUES(@psxaccbuyer,@nstockstobuy,@compname) end declare @datup date declare @regnoc nvarchar(5) SELECT @regnoc=regno.psxcompany FROM psxcompany WHERE @compname=compname if exists(SELECT * FROM psxmarket WHERE @regnoc=regno.psxmarket) begin SELECT @datup=dat FROM psxmarket WHERE @regnoc=regno.psxmarket if(@datup=GETDATE()) begin UPDATE psxmarket SET msvom=@priceshareoripo WHERE @regnoc=regno end else begin UPDATE psxmarket SET msvom=@priceshareoripo,dat=GETDATE() WHERE @regnoc=regno end end else begin INSERT [dbo].[psxmarket]([regno],[msvom],[dat]) VALUES (@regnoc,@priceshareoripo,GETDATE()) end -- psx account update end -- update buybrokerperson end -- notices clearance DELETE FROM [noticebankpsx] WHERE bankname=@banknames AND cnic=@cnics DELETE FROM [noticebankpsx] WHERE bankname=@mybankname AND cnic=@cnic DELETE FROM [brokernotice] WHERE cnicp=@cnics AND regnobroker=@regbroker end else begin INSERT [dbo].[stockbuyer]([cnicp],[nstockstobuy],[compname],[maxshareval]) VALUES (@cnic,@nstockstobuy,@compname,@maxshareval) end end END go -- .14 -- company's share holders create procedure [myshareholders] @companynamein nvarchar(100) -- OUTPUT TWO THINGS NO. OF SHARE HOLDERS AND EACH SHAREHOLDERS NAME AND NO. OF SHARES THEY HAVE PURCHASED AS BEGIN if exists( SELECT * FROM psxrecord WHERE @companynamein=psxrecord.compname) begin SELECT psxrecord.psxaccno,psxrecord.noofstocks FROM psxrecord WHERE @companynamein=psxrecord.compname end else begin print'Currently there are no share holders of your company in the market' end END go -- .16 -- person's share holdings SELECT psxrecord.noofstocks,psxrecord.compname,psxrecord.priceofshare FROM (person inner join psxperson on person.cnic=psxperson.cnic) inner join psxrecord on psxrecord.psxaccno=psxperson.psxaccno WHERE @email=person.email -- .17 -- prime time -- SELLING PRIME TIME create procedure sellprimetime as begin print ' Sell Shares of ' select pr.compname, pc.faceval, pc.totalshares from psxrecord as pr join psxcompany as pc on pr.compname= pc.compname join psxmarket as pm on pc.regno=pm.regno where pr.price < pm.msvom end execute sellprimetime DROP procedure buyprimetime -- BUYING PRIME TIME create procedure buyprimetime as begin print ' Buy from ' if exists begin select bbc.compname, bbc.sharevalue, bbc.dividend from buybrokercomp as bbc where bbc.facevalue 0 end if exists begin select bbc.compname, bbc.sharevalue, bbc.dividend from buybrokercomp as bbc where bbc.nipostosell > 0 and bbc.dividend>0 end else if exists begin select bbc.compname, bbc.sharevalue, bbc.dividend from buybrokercomp as bbc where bbc.nipostosell > 0 and bbc.dividend>0 select * from stockseller select * from stocksellercomp select * from buybrokercomp select * from buybrokerpersonx end end go -- 21,22,23 QUERIES -- 23 -------MARKET CAPITAL--------- select top 10 pc.totalshares * pm.msvom as marketcapital, pc.compgenre, pc.compname from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno order by marketcapital desc -------PERSON CAPITAL--------- select top 10 pr.noofstocks * pr.price as marketcapital, p.pname from person as p join psxrecord as pr on p.psxaccno= pr.psxaccno order by marketcapital desc -- 22 -- kse-30 index declare @agri1 varchar (30), @agri2 varchar (30), @agri3 varchar (30), @tech1 varchar (30), @tech2 varchar (30), @tech3 varchar (30), @eco1 varchar (30), @eco2 varchar (30), @eco3 varchar (30) set @agri1 = ( select pc.compname from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno where pc.totalshares * pm.msvom = ( select max (pc.totalshares * pm.msvom) as marketcapital from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno where pc.compgenre= 'agri' ) ) set @agri2= ( select pc.compname from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno where pc.totalshares * pm.msvom = ( select max (pc.totalshares * pm.msvom) as marketcapital from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno where pc.compgenre= 'agri' and pc.compname!= @agri1 ) ) set @agri3= ( select pc.compname from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno where pc.totalshares * pm.msvom = ( select max (pc.totalshares * pm.msvom) as marketcapital from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno where pc.compgenre= 'agri' and pc.compname!= @agri1 and pc.compname!=@agri2 ) ) set @tech1 = ( select pc.compname from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno where pc.totalshares * pm.msvom = ( select max (pc.totalshares * pm.msvom) as marketcapital from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno where pc.compgenre= 'tech' ) ) set @tech2= ( select pc.compname from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno where pc.totalshares * pm.msvom = ( select max (pc.totalshares * pm.msvom) as marketcapital from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno where pc.compgenre= 'tech' and pc.compname!= @tech1 ) ) set @tech3= ( select pc.compname from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno where pc.totalshares * pm.msvom = ( select max (pc.totalshares * pm.msvom) as marketcapital from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno where pc.compgenre= 'tech' and pc.compname!= @tech1 and pc.compname!=@tech2 ) ) set @eco1 = ( select pc.compname from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno where pc.totalshares * pm.msvom = ( select max (pc.totalshares * pm.msvom) as marketcapital from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno where pc.compgenre= 'eco' ) ) set @eco2= ( select pc.compname from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno where pc.totalshares * pm.msvom = ( select max (pc.totalshares * pm.msvom) as marketcapital from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno where pc.compgenre= 'eco' and pc.compname!= @eco1 ) ) set @eco3= ( select pc.compname from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno where pc.totalshares * pm.msvom = ( select max (pc.totalshares * pm.msvom) as marketcapital from psxcompany as pc join psxmarket as pm on pc.regno= pm.regno where pc.compgenre= 'eco' and pc.compname!= @eco1 and pc.compname!=@eco2 ) ) select @agri1,@agri2,@agri3,@tech1,@tech2,@tech3,@eco1,@eco2,@eco3 go -- 21 -------MARKET HAPPENINGS--------- select pc.compname, pc.compgenre, pr.priceofshare from psxcompany as pc join psxrecord as pr on pc.compname= pr.compname go -- .24 -- ipos companies create procedure checkfirsttime @compname nvarchar(100), @output int output as begin if not exists(select * from psxcompany where psxcompany.compname=@compname) begin set @output=1 end else begin set @output=-1 end end go use stockexchange create Procedure isfirsttime @compname nvarchar(100), @noofipos int, @priceofipo real, @dividend real, @output int output as begin set @output=-1 declare @regisNo int select @regisNo=max(regno) from psxcompany set @regisNo=@regisNo+1 update company set company.iposrem=@noofipos,company.psxregno=@regisNo where company.compname=@compname declare @genre nvarchar(20) select @genre=compgenre from company where compname=@compname insert into psxcompany values (@regisNo,@compname,@genre,@priceofipo,@dividend,0) set @output=1 select @output=company.iposrem from company where compname=@compname end go declare @ouu int exec isfirsttime @compname='avein',@noofipos=9,@priceofipo=9,@dividend=8, @output=@ouu output go select @ouu go create procedure isnotfirsttime @compname nvarchar(100), @noofipos int, @output int output as begin update company set iposrem=iposrem+@noofipos where compname=@compname if exists( select * from stocksellercomp where stocksellercomp.compname=@compname) begin update stocksellercomp set stocksellercomp.nipostosell=stocksellercomp.nipostosell+@noofipos where stocksellercomp.compname=@compname end else begin declare @faceval real select @faceval=faceval from psxcompany where psxcompany.compname=@compname declare @dividend real select @dividend=dividend from psxcompany where psxcompany.compname=@compname insert into stocksellercomp values(@compname,@noofipos,@faceval,@dividend) end select @output=company.iposrem from company where compname=@compname end go ---- DEAD ----- ---- DEAD ----- ---- DEAD ----- create Procedure companyipos @inputIpos int, @compName1 nvarchar(15) as begin declare @check1 int if not exists(select * from psxcompany where @compName1=compname) begin end select @check1=iposrem from company where @compName1=compname if @check1<@inputIpos begin print 'Error: companys remaining ipos are less than ipos to be sold' end else if @check1>=@inputIpos begin update company set iposrem=iposrem-@inputIpos where compname=@compName1 insert into stocksellcomp values (@compName1,@inputIpos) end end go ---- DEAD ----- ---- DEAD ----- ---- DEAD ----- -- .27 -- MATCH THE DEAL -- UNDER WORK SELECT * FROM stocksellercomp WHERE (((stocksellercomp.facevalue >=@shv1) and (stocksellercomp.facevalue <=@shv2)) and ((stocksellercomp.nipostosell >=@n1) and (@n2 <=stocksellercomp.nipostosell)) and ((stocksellercomp.dividend >=@r1) and (stocksellercomp.dividend <=@r2))) use stockexchange; SELECT * FROM buybrokercomp inner join psxcompany on buybrokercomp.compregno=psxcompany.regno WHERE ((psxcompany.faceval >=@shv1) and (psxcompany.faceval <=@shv2)) and ((buybrokercomp.nipostosell >=@n1) and( buybrokercomp.nipostosell <=@n2 )) and ((psxcompany.dividend >=@r1) and (psxcompany.dividend <=@r2) ) SELECT * FROM stockseller inner join psxcompany on stockseller.compname=psxcompany.compname WHERE ((stockseller.sharevoffr >=@shv1 and stockseller.sharevoffr <=@shv2) and (stockseller.nstockstosell >=@n1 and stockseller.nstockstosell <=@n2 ) and (psxcompany.dividend >=@r1 and psxcompany.dividend <=@r2) ) use stockexchange SELECT * FROM buybrokerperson inner join psxcompany on psxcompany.compname=buybrokerperson.compname WHERE ((buybrokerperson.sharevalue >=@shv1 and buybrokerperson.sharevalue <=@shv2) and (buybrokerperson.noofshares >=@n1 and buybrokerperson.noofshares <=@n2 ) and (psxcompany.dividend >=@r1 and psxcompany.dividend <=@r2) ) ------------------- -- TABLES ------------------- ------------------ ------------------ -- kse30 ------------------ ------------------ create table kse30dat ( indexv int, dat date primary key(dat) NOT NULL ) ------------------ ------------------ -- notices ------------------ ------------------ ------------------ -- NOTICE TO PSX ------------------ create table noticecompbankpsx( regno nvarchar(5) NOT NULL, compname nvarchar(100) NOT NULL, cnic nvarchar(15) NOT NULL -- C-ANAS: THIS IS CNIC BY COMPANY FOR THE BANK USAGE primary key(cnic) ) ------------------ ------------------ create table noticebankpsx( cnic nvarchar(15) NOT NULL, bankname nvarchar(50) primary key(cnic) foreign key(bankname) references bank(bankname) ) ------------------ -- NOTICE TO BROKER ------------------ create table brokernoticecomp( regnocompany nvarchar(5), regnobroker int, cnicbank nvarchar(15)primary key(regnocompany,regnobroker) foreign key(regnobroker) references psxbroker(regnobroker) ) ------------------ ------------------ create table brokernotice( cnicp nvarchar(15), regnobroker int primary key(cnicp) foreign key(regnobroker) references psxbroker(regnobroker) ) ------------------ ------------------ ------------------ ------------------ -- stockbuyer ------------------ ------------------ create table stockbuyer( cnicp int, nstockstobuy int, compname nvarchar(100) maxshareval int ) ------------------ ------------------ -- stockseller ------------------ ------------------ create table stockseller ( cnicp int, nstockstosell int, compname nvarchar(100), sharevoffr int primary key(cnicp,compname) NOT NULL ) ------------------ ------------------ -- stocksellercomp ------------------ ------------------ create table stocksellercomp ( compname nvarchar(100), nipostosell int, -- C-ANAS: NO. OF IPO'S TO SELL facevalue real, dividend real primary key(compname) foreign key(compname) references company(compname) ) ----------------------------------------------- ----------------------------------------------- -- EXECUTE ALL BELOW ----------------------------------------------- ----------------------------------------------- ------------------ ------------------ -- company sign-up ------------------ ------------------ create procedure SignUpcompany @compname nvarchar(100), @compgenre nvarchar(20), @psxregno nvarchar(5), @iposrem int, @cnicbank nvarchar(15), @bankaccno int , @bankname nvarchar(50), @output int OUTPUT as begin if(@psxregno=0) begin set @psxregno=NULL end declare @bankVerification BIT,@psxVerification BIT set @psxVerification=0 set @bankVerification=0 if not exists (select * from [bank] where [bank].bankaccno=@bankaccno AND [bank].bankname=@bankname and [bank].cnic=@cnicbank) begin set @bankVerification=1 SET @output=2 print 'Invalid Bank Details' end if(@iposrem!=0) begin if @psxregno is not NULL AND (not exists(select * from psxcompany where @psxregno=regno)) begin set @output=3 set @psxVerification=1 print 'Invalid PSX Credentials' end end if (@bankVerification=0 and @psxVerification=0) begin if not exists(select company.compname from company where company.compname=@compname) begin set @output=1 insert into company values (@compname,@compgenre,@psxregno,@iposrem,@cnicbank,@bankaccno,@bankname) end else begin SET @output=-2 -- company already exists sign-in end end end go declare @ot int execute SignUpcompany @compname='bulls stock exchange', @compgenre='Consumer Disc', @psxregno=NULL, @iposrem=0, @cnicbank='09876-9087654-9', @bankaccno=1, @bankname='ding <PASSWORD>o', @output=@ot OUTPUT select @ot go -- STRICT NOTICES : VERIFY BANK ACC. & OTHER ACCOUNTS USING CNIC PROVIDED -- YE NA HOU KE AIK ACCOUNT PE DOU 3EEN BANDAY DANDANTE PHIREN :3 go INSERT INTO bank values( '09876-9087654-9', 0909, 'ding dono', 100000) go ------------------ ------------------ -- company sign-in ------------------ ------------------ create procedure SignIncompany @compname nvarchar(100), @bankaccno int, @output int OUTPUT as begin if exists (select * from company where compname=@compname and bankaccno=@bankaccno) begin SET @output=1 print 'Login Successful' end else begin SET @output=-1 print 'Sign In Required OR Incorrect Company Details' end end go declare @ot int execute [SignIncompany] @compname='bulls stock exchange', @bankaccno=0900, @output=@ot OUTPUT select @ot go ------------------ ------------------ -- person sign-up ------------------ ------------------ create procedure SignUp @lpname nvarchar (50), @lbdate date, @lcnic nvarchar (15), @lcountry nvarchar (25), @lemail nvarchar (75), @lpass nvarchar(8), @lbankaccno int, @lbankname nvarchar(50), @lpsxaccno int, @output int OUTPUT as begin set @output=9 declare @bol BIT SET @bol=1 if(@lpsxaccno=0) begin SET @lpsxaccno=NULL end if exists (select * from person as p where p.cnic= @lcnic) begin SET @output=2 SET @bol=0 print 'Cnic Already Taken - Sign In' end else begin if exists( select * from person as p where p.email=@lemail ) begin SET @output=3 SET @bol=0 print 'Use Another Email or Sign In' end if(@bol=1) begin if not exists(select * from [bank] where [bank].bankaccno=@lbankaccno AND [bank].bankname=@lbankname AND [bank].cnic=@lcnic ) begin SET @output=4 print 'Invalid Bank Credentials' end if(@lpsxaccno!=NULL and @output!=4) begin if not exists ( select * from psxperson where [psxperson].psxaccno=@lpsxaccno) begin SET @output=5 print'Invalid PSX Credentials' end else begin SET @output=1 insert into person values (@lpname,@lbdate,@lcnic,@lcountry,@lemail,@lpass,@lbankaccno,@lbankname,@lpsxaccno) end end else if(@output!=4) begin SET @output=1 insert into person values (@lpname,@lbdate,@lcnic,@lcountry,@lemail,@lpass,@lbankaccno,@lbankname,@lpsxaccno) end end end end go declare @ot int execute SignUp @lpname = '<NAME>', @lbdate = '1998-01-29', @lcnic = '098765432112345', @lcountry = 'Pakistan', @lemail = '<EMAIL>', @lpass = '12345678', @lbankaccno = 2, @lbankname = 'islamic bank', @lpsxaccno = 0, @output=@ot OUTPUT select @ot go ------------------ ------------------ -- person sign-in ------------------ ------------------ create procedure SignIn @lemail nvarchar (75), @lpass nvarchar(8), @output int OUTPUT as begin if exists(select * from [person] where [person].email=@lemail) begin if exists(select * from [person] where [person].pass=@lpass AND [person].email=@lemail) begin SET @output=1 print 'Login Successful' end else begin SET @output=-1 print'Incorrect Password' end end else begin SET @output=2 print 'Sign Up Required or Incorrect Email' end end go execute SignIn @lemail = 'as@as', @lpass = 'hi' go ------------------ ------------------ ------------------ ------------------ -- ADMIN PAGE & ITS SUB CATEGORIES ------------------ ------------------ ------------------ ------------------ ------------------ ------------------ -- admin verify ------------------ ------------------ create procedure [adminverify] @passing nvarchar(8), @output int OUTPUT AS BEGIN if exists(SELECT * FROM [dbo].[admine] WHERE @passing=passkey) begin SET @output=1 end else begin SET @output=-1 end END go declare @ot int execute [adminverify] @passing='!@#$%^&*', @output=@ot OUTPUT select @ot go -- INSERT [dbo].[admine]([passkey]) VALUES('!@#$%^&*') ------------------ ------------------ -- BROKER OPTION ------------------ ------------------ ------------------ ------------------ -- broker verify ------------------ ------------------ create procedure [brokerverify] @regbroker int, @ot int OUTPUT AS BEGIN if exists(SELECT * FROM psxbroker WHERE @regbroker=psxbroker.regnobroker) begin SET @ot=1 end else begin SET @ot=-1 end END go ------------------ ------------------ -- admin broker - company ------------------ ------------------ create procedure [Adminbrokercompany] @regnobroker int, @compregno nvarchar(5), @compname nvarchar(100), @cnicbank nvarchar(15), @bankname nvarchar(50), @nipostosell int, @output int OUTPUT AS BEGIN -- embedded procedure declare @otu int execute [brokerverify] @regbroker=@regnobroker, @ot=@otu OUTPUT -- embedded procedure if(@otu=1) begin if exists ( SELECT * FROM psxcompany WHERE @compname=compname AND @compregno=regno) begin if exists(SELECT * FROM bank WHERE @cnicbank=cnic AND @bankname=bankname) begin INSERT [dbo].[buybrokercomp]([regnobroker],[compregno],[compname],[cnicbank],[bankname],[nipostosell]) VALUES(@regnobroker,@compregno,@compname,@cnicbank,@bankname,@nipostosell) end else begin SET @output=-3 -- bank issue end end else begin SET @output=-2 -- psx asc. issue end end else begin SET @output=-1 -- broker not registered ! end END go ------------------ ------------------ -- admin broker - person ------------------ ------------------ create procedure [Adminbrokerperson] @regnobroker int, @cnicp nvarchar(15), @bankname nvarchar(50), @compname nvarchar(100), @sharevalue real, @noofshares int, @output int OUTPUT AS BEGIN -- embedded procedure declare @otu int execute [brokerverify] @regbroker=@regnobroker, @ot=@otu OUTPUT -- embedded procedure if(@otu=1) begin if exists ( SELECT * FROM psxperson WHERE @cnicp=cnic) begin declare @vr int SELECT @vr=psxaccno FROM psxperson WHERE @cnicp=cnic if exists ( SELECT * FROM psxrecord WHERE @vr=psxaccno AND @noofshares<=noofstocks AND @compname=compname) begin if exists( SELECT * FROM bank where bank.bankname=@bankname AND bank.cnic=@cnicp) begin INSERT [dbo].[buybrokerperson]([regnobroker],[cnicp],[bankname],[compname],[sharvalue],[noofshares]) VALUES(@regnobroker,@cnicp,@bankname,@compname,@sharevalue,@noofshares) end else begin SET @output=-4 -- bank credentials issue end end else begin SET @output=-3 -- stocks doesn't exist end end else begin SET @output=-2 -- psx reg issue end end else begin SET @output=-1 -- broker issue end END go ------------------ ------------------ ------------------ ------------------ ------------------ ------------------ ------------------ ------------------ ------------------ ------------------ -- DATABASE -- ------------------ ------------------ ------------------ ------------------ ------------------ ------------------ ------------------ ------------------ ------------------ ------------------ --------------- -- PSX DATA START -- --------------- ------------------ ------------------ -- psx company ------------------ ------------------ -- C-ANAS: IF A COMPANY IS NOT REGISTERED IN THE PSX THEN THAT COMPANY CANNOT OFFER SHARES -- C-ANAS: AND LETS SAY ANY COMPANY COMES THAT NEEDS TO OFFER SHARES THEN WE WILL OPEN THAT COMPANY'S ACCOUNT IN THIS TABLE USING PROC -- C-ANAS: EACH COMPANY MUST BE REGISTERED HERE IF THE COMPANIES SHARES ARE IN THE MARKET create table psxcompany( regno nvarchar(5) NOT NULL, compname nvarchar(100) NOT NULL unique, compgenre nvarchar(20) NOT NULL, faceval real, dividend real, totalshares int -- C-ANAS: TOTAL NO. OF SHARES(in which each SINGLE SHARE WORTH 5/10 RS.) OF COMPANY SOLD primary key(regno) ) ------------------ ------------------ -- psx person ------------------ ------------------ -- C-ANAS: WE ASSUME THAT THIS IS THE DATABASE CONNECTION TO PSX'S DATABASE WHERE SIMPLY THE USER CNIC AND STOCKS ARE KEPT AS RECORD FOR GOVERNMENT -- C-ANAS : THINK OF THE SCOPE THAT, THAT USER COULD HAVE BEEN CONNECTED TO MORE THEN ONE STOCKBROKERS LIKE US create table psxperson( psxaccno int NOT NULL, pname nvarchar(50) NOT NULL, cnic nvarchar(15) NOT NULL primary key(psxaccno) ) ------------------ ------------------ -- psx broker ------------------ ------------------ -- C-ANAS: THIS TABLE TELLS THAT WHICH BROKER'S ARE REGISTERED create table psxbroker( regnobroker int NOT NULL, brokername nvarchar(50) --brokerid int primary key(regnobroker) ) ------------------ ------------------ -- psx record ------------------ ------------------ create table psxrecord( psxaccno int NOT NULL, noofstocks int DEFAULT NULL, compname nvarchar(100) DEFAULT NULL, priceofshare real primary key(psxaccno,compname) ) --------------- -- PSX DATA END -- --------------- --------------- -- BROKER'S DATA INTERCHANGE START -- --------------- ------------------ ------------------ -- buy broker person ------------------ ------------------ -- C-ANAS: AFTER WE HAVE BOUGHT THE STOCK, WE REMOVE THAT STOCK AND DETAIL FROM THE LIST OF 'BUYBROKER' -- C-ANAS: WE NEED 'TRIGGER' HERE THAT VERIFY'S THE INCOMING PERSON FROM THE PSX TABLE create table buybrokerperson( regnobroker int NOT NULL unique, cnicp nvarchar(15) unique, -- C-ANAS: THIS CNIC NEEDS TO BE VERIFIED FROM PSX, I.E THE PERSON WHO WANTS TO SELL THE STOCK AND AFTER VERIFICATION THE PERSON IS ALSO ADDED IN THE 'PERSONANY' TABLE bankname nvarchar(50), compname nvarchar(100), -- C-ANAS: THIS MUST BE A REGISTERED PSX COMPANY REQUIRES TRIGGER & we will get dividend & face value from psx sharevalue real, -- C-ANAS: HERE WE WILL SEE THE SHAREVALUE OF THE SHARE THAT WE HAVE TO SHOW TO OUR USER, TO LET HIM'HER BUY IT noofshares int primary key(regnobroker,cnicp,compname) foreign key(compname) references psxcompany(compname) -- C-ANAS: AFTER WE GET THE CNIC OF A PERSON AND COMPANY THEN WE ENTER CNIC+COMPANY IN THE 'PERSONANY' TABLE AND THEN WE ENTER THE NO OF SHARES THERE ) ------------------ ------------------ -- buy broker company ------------------ ------------------ -- C-ANAS: AFTER WE HAVE BOUGHT THE STOCK, WE REMOVE THAT STOCK AND DETAIL FROM THE LIST OF 'BUYBROKERCOMP' -- C-ANAS: EQUATION - 11 -- WE NEED 'TRIGGER' HERE WHICH VERIFYS THE INCOMING VALUE IN THE TABLE FROM PSX create table buybrokercomp( -- C-ANAS: HERE FACE VALUE IS NOT MISSING WE WILL SEE THAT FROM PSX regnobroker int NOT NULL, compregno nvarchar(5) NOT NULL, compname nvarchar(100) NOT NULL, cnicbank nvarchar(15) NOT NULL unique, bankname nvarchar(50), nipostosell int NOT NULL primary key(regnobroker,compregno) ) --------------- -- BROKER'S DATA INTERCHANGE END -- --------------- --------------- -- BANK'S DATA INTERCHANGE START -- --------------- ------------------ ------------------ -- bank ------------------ ------------------ -- C-ANAS: BANK TABLE ADDED SINCE WE NEED TO ADD OR SUBTRACT MONEY FROM BANK ACCOUNT AS WELL -- C-ANAS: WE ARE NOT ALLOWING A USER TO HAVE MORE THAN ONE BANK ACCOUNTS IN A SAME BANK OR DIFFERENT ACCOUNT IN DIFFERENT I.E HE/SHE IS ALLOWED ONLY TO CONNECT HIS/HER SINGLE BANK ACCOUNT FOR STOCK SELL/BUY -- C-ANAS: THE CUSTOMER FROM THE OTHER BROKER WILL BE ALSO HAVING A BANK ACCOUNT THAT WE WILL SEE FROM THE BANK'S DATABASE BELOW create table bank ( cnic nvarchar(15), -- COMPANIES AND PERSON BOTH WILL HAVE BANK ACCOUNTS bankaccno int, bankname nvarchar(50), balance real primary key(bankaccno,bankname) NOT NULL ) --------------- -- BANK'S DATA INTERCHANGE END -- --------------- --------------- -- ADMIN DOMAIN START -- --------------- ------------------ ------------------ -- admine ------------------ ------------------ -- C-ANAS: THIS TABLE IS CREATED FOR US, WE WILL LOGIN WITH THIS PASSWORD ONLY AND NOTHING ELSE AND WILL ADD ANY BROKER IN THE 'OTHERBROKER' AND THE STOCK HE WANTS TO SELL create table admine( passkey nvarchar(8) DEFAULT '!@#$%^&*' primary key(passkey) ) ------------------ ------------------ -- person ------------------ ------------------ -- C-ANAS: THIS TABLE IS CREATED FOR US, WE WILL LOGIN WITH THIS PASSWORD ONLY AND NOTHING ELSE AND WILL ADD ANY BROKER IN THE 'OTHERBROKER' AND THE STOCK HE WANTS TO SELL create table person ( pname nvarchar (50) NOT NULL, bdate date NOT NULL, cnic nvarchar (15) NOT NULL, country nvarchar (25) NOT NULL, email nvarchar (75) NOT NULL, pass nvarchar(8) NOT NULL, -- C-ANAS: It is necessary to have the bank account -- C-ANAS: THAT BANK ACCOUNT DETAILS WILL BE MADE TO ENTER HERE BY USER AND BANK TABLE WILL VERIFY THAT IS THERE ANY USER LIKE THAT bankaccno int NOT NULL, bankname nvarchar(50) NOT NULL, psxaccno int DEFAULT NULL, -- C-ANAS: IF USER IS NEW HE WILL HAVE THIS ACCOUNT CREDITENTIALS EQUAL TO NULL, BUT ON ANY TRANSACTION IT WILL BE OPENED AUTOMATICALLY I.E WE WILL SEND ALL THE CREDITENTIALS TO PSX IN PSX TABLE -- C-ANAS: AND IF USER ALREADY HAVE AN ACCOUNT THEN WE WILL NOT BUT INSTEAD WILL VERIFY IF HE HAS AN ACCOUNT IN THE PSX OR NOT, IF NOT THEN ADD NULLS SHOWING THAT HE/SHE DONT HAVE ACCOUNT RE-ENTER INFO ETC INSTEAD OF PUTTING 'STATUSS' --statuss BIT --1,0,NULL i.e whether a person is verified or not primary key(cnic), foreign key(bankaccno,bankname) references bank(bankaccno,bankname), foreign key(psxaccno) references psxperson(psxaccno) ) ------------------ ------------------ -- company ------------------ ------------------ -- C-ANAS: THE STATUS IS ORIGINALLY DONE WHEN THE PERSON HAVE SENT THE DOCUMENT & HIS EMAIL IS VERIFIED, BUT WE ARE PSX RIGHT NOW -SO, LETS MAP THE CONCEPT THAT -- C-ANAS: SO THE STATUS WILL BE TRUE AND TRANSACTIONS WILL BE DONE WHEN PERSON'S BANK ACCOUNT NO. AND BANK NAME MATCHES + THIS CAN BE FALSE IF HIS PSX NO. DONOT MATCH -- C-ANAS: THE COMPANY'S IPO'S CAN ALSO BE OFFERED BY OTHER BROKER'S SO IN THAT CASE create table company ( compname nvarchar(100), compgenre nvarchar(20) NOT NULL, -- C-ANAS: IF COMPANY IS COMING FIRST TIME TO OFFER SHARES THEN THIS VALUE IS ASSIGNED BY US AND WE ENTER THIS -- C-ANAS: statuss because there will be some companies that will be here but not registered IN PSX SO THOSE COMPANIES WILL GIVE EVERY DETAIL ELSE -- statuss BIT, -- 1,0,NULL (its boolean) psxregno nvarchar(5) DEFAULT NULL, -- FETCHED AS FOREIGN KEY -> MEANS WHEN ASSIGNED THIS VALUE THEN FIRST ENTERED IN THE PSX TABLE AND THEN ENTERED HERE IF STATUS '0' IF STATUS '1' THEN VALUE ONLY FETCHED FROM PSX TABLE USING compname -- C-ANAS: THE INFO. THAT, IF THE COMPANY IS REG. IN PSX OR NOT TOLD BY COMPANY AND THEN VERIFIED FROM TABLE IF YES THEN STATUSS '1' AND REGNO FETCHED ELSE -- C-ANAS: (CONT. C) AND IF COMPANY IS FOUND NOT IN PSX OR IS NOT REGISTERED THEN WE FIRST ADD THAT COMPANY AND THERE AND THEN REGNO. FETCHED HERE -- c-ANAS: BUT YOU SEE THERE I NO NEED OF STATUS BIT, BECAUSE WHETHER COMPANY IS REGISTERED OR NOT HE IS MUST GETTING REGNO. SO JUST A MATTER OF PROC/TRIGGER iposrem int DEFAULT NULL, --- remaining ipo to sell from our platform -- C-ANAS: IF THERE ARE IPO'S REMAINING THEN TAKE THE FOLLOWING DETAILS FROM COMPANY ELSE LEAVE THEM AS DEFAULT cnicbank nvarchar(15) DEFAULT NULL, bankaccno int DEFAULT NULL, bankname nvarchar(50) DEFAULT NULL primary key(compname) NOT NULL, foreign key(psxregno) references psxcompany(regno), foreign key(bankaccno,bankname) references bank(bankaccno,bankname) )
ALTER TABLE `users` ADD `erp_user_role_id` INT NULL DEFAULT NULL AFTER `role_id`; INSERT INTO `erp_users_role` (`erp_user_role_id`, `user_role`, `permission`, `created`, `updated`, `is_deleted`) VALUES (NULL, 'admin', NULL, '2019-01-12 00:00:00', '2019-01-12 00:00:00', '0');
<reponame>thirunjuguna/ttu<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: May 09, 2017 at 01:02 PM -- Server version: 5.7.18-0ubuntu0.16.04.1 -- PHP Version: 7.0.15-0ubuntu0.16.04.4 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: `ttu` -- -- -------------------------------------------------------- -- -- Table structure for table `courses` -- CREATE TABLE `courses` ( `id` int(10) UNSIGNED NOT NULL, `mini_dp_id` int(11) NOT NULL, `course` varchar(255) 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 `courses` -- INSERT INTO `courses` (`id`, `mini_dp_id`, `course`, `created_at`, `updated_at`) VALUES (1, 1, 'Bsc. Mathematics& Computer Science', NULL, NULL), (2, 2, 'Bsc.Commerce', NULL, NULL), (3, 1, 'Bsc.Information Technology', '2017-03-28 17:47:55', '2017-03-28 17:47:55'), (4, 1, 'Msc.Computer Systems', '2017-04-10 04:58:28', '2017-04-10 04:58:28'), (5, 3, 'Bsc.Mining And Mineral Processing Engineering', '2017-04-30 07:31:53', '2017-04-30 07:31:53'); -- -------------------------------------------------------- -- -- Table structure for table `departments` -- CREATE TABLE `departments` ( `id` int(10) UNSIGNED NOT NULL, `department` varchar(255) 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 `departments` -- INSERT INTO `departments` (`id`, `department`, `created_at`, `updated_at`) VALUES (1, 'ACADEMICS', NULL, NULL), (2, 'HALLS', NULL, NULL), (3, 'LIBRARY', '2017-04-16 22:46:12', '2017-04-16 22:46:12'), (4, 'GAMES & SPORTS', '2017-04-16 22:46:28', '2017-04-16 22:46:28'), (5, 'DEANS OFFICE', '2017-04-16 22:46:44', '2017-04-16 22:46:44'), (6, 'REGISTRAR', '2017-04-16 22:47:06', '2017-04-16 22:47:06'); -- -------------------------------------------------------- -- -- Table structure for table `messages` -- CREATE TABLE `messages` ( `id` int(10) UNSIGNED NOT NULL, `dp` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `minidp` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `from_` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `to_` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `message` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'unread', `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 `messages` -- INSERT INTO `messages` (`id`, `dp`, `minidp`, `from_`, `to_`, `message`, `status`, `created_at`, `updated_at`) VALUES (1, '1', '1', '6', '1', 'tes', 'read', '2017-03-30 05:43:22', '2017-04-15 09:16:34'), (2, '1', '1', '6', '6', 'tes', 'unread', '2017-03-30 05:43:22', '2017-03-30 05:43:22'), (3, '1', '1', '6', '1', 'tes', 'unread', '2017-03-30 05:43:22', '2017-03-30 05:43:22'), (4, '1', '1', '6', '6', 'tes', 'unread', '2017-03-30 05:43:22', '2017-03-30 05:43:22'), (5, '1', '1', '11', '6', 'Testing', 'unread', '2017-04-15 09:16:34', '2017-04-15 09:16:34'), (6, '1', '1', '11', '7', 'Thiru Thiru', 'unread', '2017-04-15 10:38:35', '2017-04-15 10:38:35'), (7, '1', '2', '6', '2', 'tets', 'unread', '2017-04-16 16:21:32', '2017-04-16 16:21:32'), (8, '1', '1', '6', '1', 'test', 'unread', '2017-04-18 21:52:09', '2017-04-18 21:52:09'), (9, '1', '1', '6', '1', 'kimani wamanta', 'unread', '2017-04-18 21:52:20', '2017-04-18 21:52:20'), (10, '4', '1', '6', '1', '<NAME>', 'unread', '2017-04-18 22:14:39', '2017-04-18 22:14:39'), (11, '1', '1', '11', '15', 'Dan Test sms', 'unread', '2017-04-18 22:23:34', '2017-04-18 22:23:34'); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) 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, '2017_03_23_085442_create_departments_table', 2), (4, '2017_03_23_085503_create_minidepartments_table', 2), (5, '2017_03_23_093946_create_courses_table', 2), (6, '2017_03_24_214046_create_userdp_table', 3), (7, '2017_03_26_120215_create_years_table', 4), (8, '2017_03_28_214105_create_messages_table', 5), (9, '2017_04_01_104026_create_notices_table', 6), (10, '2017_04_04_003628_create_records_table', 7), (11, '2017_04_04_004536_create_remarks_table', 7), (12, '2017_04_13_061628_create_transactions-table', 8); -- -------------------------------------------------------- -- -- Table structure for table `minidepartments` -- CREATE TABLE `minidepartments` ( `id` int(10) UNSIGNED NOT NULL, `dp_id` int(11) NOT NULL, `department` varchar(255) 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 `minidepartments` -- INSERT INTO `minidepartments` (`id`, `dp_id`, `department`, `created_at`, `updated_at`) VALUES (1, 1, 'M&I', NULL, NULL), (2, 1, 'BSE', NULL, '2017-04-03 21:22:58'), (3, 1, 'MMPE', '2017-04-16 22:47:40', '2017-04-16 22:47:40'); -- -------------------------------------------------------- -- -- Table structure for table `notices` -- CREATE TABLE `notices` ( `id` int(10) UNSIGNED NOT NULL, `dp` int(11) NOT NULL, `notice` longtext 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 `notices` -- INSERT INTO `notices` (`id`, `dp`, `notice`, `created_at`, `updated_at`) VALUES (2, 1, 'Hey People', '2017-04-15 09:36:43', '2017-04-15 09:36:43'), (3, 1, 'Hey Clearance is a web-based data driven clearance systems that helps ease in clearing higher learning institutionsHey Clearance is a web-based data driven clearance systems that helps ease in clearing higher learning institutionsHey Clearance is a web-based data driven clearance systems that helps ease in clearing higher learning institutionsHey Clearance is a web-based data driven clearance systems that helps ease in clearing higher learning institutionsHey Clearance is a web-based data driven clearance systems that helps ease in clearing higher learning institutionsHey Clearance is a web-based data driven clearance systems that helps ease in clearing higher learning institutions', '2017-04-15 09:41:25', '2017-04-15 09:41:25'); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) 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 `records` -- CREATE TABLE `records` ( `id` int(10) UNSIGNED NOT NULL, `user_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `year` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `status` varchar(255) 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 `records` -- INSERT INTO `records` (`id`, `user_id`, `year`, `status`, `created_at`, `updated_at`) VALUES (45, '4', '1', '1', '2017-04-18 21:35:56', '2017-04-18 21:35:56'), (46, '4', '4', '1', '2017-04-18 21:35:56', '2017-04-18 21:35:56'), (47, '6', '1', '1', '2017-04-18 21:35:56', '2017-04-18 21:35:56'), (48, '6', '4', '1', '2017-04-18 21:35:56', '2017-04-18 21:35:56'), (49, '7', '1', '1', '2017-04-18 21:35:56', '2017-04-18 21:35:56'), (50, '7', '4', '1', '2017-04-18 21:35:56', '2017-04-18 21:35:56'), (51, '9', '1', '1', '2017-04-18 21:35:56', '2017-04-18 21:35:56'), (52, '9', '4', '1', '2017-04-18 21:35:56', '2017-04-18 21:35:56'), (53, '13', '1', '1', '2017-04-18 21:35:56', '2017-04-18 21:35:56'), (54, '13', '4', '1', '2017-04-18 21:35:57', '2017-04-18 21:35:57'), (55, '15', '1', '1', '2017-04-18 21:35:57', '2017-04-18 21:35:57'), (56, '15', '4', '1', '2017-04-18 21:35:57', '2017-04-18 21:35:57'), (57, '16', '1', '1', '2017-04-30 07:26:18', '2017-04-30 07:26:18'), (58, '16', '4', '1', '2017-04-30 07:26:18', '2017-04-30 07:26:18'); -- -------------------------------------------------------- -- -- Table structure for table `remarks` -- CREATE TABLE `remarks` ( `id` int(10) UNSIGNED NOT NULL, `record` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remark` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `price` int(11) NOT NULL DEFAULT '0', `dp` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `minidp` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `paid` int(25) NOT NULL DEFAULT '0', `status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `reg` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `year` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `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 `transactions` -- CREATE TABLE `transactions` ( `id` int(10) UNSIGNED NOT NULL, `sender` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `to_` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `amount` int(11) NOT NULL DEFAULT '0', `status` int(11) NOT NULL DEFAULT '0', `code` varchar(255) 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 `transactions` -- INSERT INTO `transactions` (`id`, `sender`, `to_`, `amount`, `status`, `code`, `created_at`, `updated_at`) VALUES (1, '254714876995', 'tuo1-sc211-0134/2013', 100, 1, '9470', NULL, '2017-04-18 22:08:43'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `first_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `last_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `balance` int(25) NOT NULL DEFAULT '0', `mobile` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `reg` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `department` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `course` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `yos` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `level` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `status` int(2) NOT NULL DEFAULT '1', `verify_code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `verify_status` int(10) NOT NULL DEFAULT '0', `complete` int(2) NOT NULL DEFAULT '0', `minidp` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT 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 `users` -- INSERT INTO `users` (`id`, `first_name`, `last_name`, `email`, `balance`, `mobile`, `reg`, `password`, `department`, `course`, `yos`, `level`, `status`, `verify_code`, `verify_status`, `complete`, `minidp`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'Thiru', 'Thiru', '<EMAIL>', 0, '', '', '$2y$10$K6jtlmK9cGoV2dvZHZKzTuExbQMXZSDpGJ.yMNFkLPRPF/RNGKNIe', '', '', '', '', 1, '', 0, 0, '', NULL, '2017-03-23 05:19:31', '2017-03-23 05:19:31'), (3, 'tets', 'jsfed', '<EMAIL>', 0, '', '', '$2y$10$s.xEOx8qVlrm6oAggER/teS0cIdwWC8RT/y.QjST/uP3.fkbYDO/S', '', '', '', '', 1, '', 0, 0, '', NULL, '2017-03-23 11:57:44', '2017-03-23 11:57:44'), (4, 'hun', 'hun', '<EMAIL>', 0, '254', 'tuo1-sc211-0134/2013', '$2y$10$qSK7bk/GmWfFb4UnewRTmOCwTziLbqZS87bsV7paMFrOxZQPaxpt2', '1', '1', '1', 'STUDENT', 1, '', 0, 1, '1', 'E3AwSuX1h7G91GPS4U2gc2NPnWRGfjxwyygTrQxlFBc8TgqqSijxIxBHwf9R', '2017-03-24 15:24:21', '2017-03-24 16:33:20'), (6, 'Student', 'Student', '<EMAIL>', 7584, '254714876995', 'tuo1-sc211-0134/2013', '$2y$10$ZB5SEMlvBqQZxrA1vbYaZeqo7/9tKU/THSUGIj5CkNlZGw6LtCsgq', '1', '3', '1', 'STUDENT', 1, '9180883', 0, 1, '1', 'tm1lHoSVlT7xjIiT8FZPrmngHcw5xgnWLauXsYTmTF41g1x8Mfz0QO6Q0o6j', '2017-03-28 18:07:39', '2017-04-18 22:08:43'), (7, 'ann', 'ann', '<EMAIL>', 0, '254714876995', 'tuo1-sc211-0134/2013', '$2y$10$yo6GJm2HhBTapPbES2KeU.JfOwb8SKCtsvxsqhVf2SHcXS0gApYJW', '1', '1', '1', 'STUDENT', 1, '', 0, 1, '1', 'IFo0zqFk9chKEANTlRqrrJWjfFn12nyVmwv6bGReQvdsthUcMUGoWJf1pWkB', '2017-04-01 08:09:14', '2017-04-01 08:11:03'), (8, 'as', 'sd', '<EMAIL>', 0, '254714876995', 'tuo1-sc211-0134/2013', '$2y$10$huo86waM9pZ/0o1/F0rGsOqUPcWsgTGrBGtmL6KpliW1T4L1TXB/m', '1', '1', '1', 'ADMIN', 1, '1914318', 0, 1, '1', 'XCksEbnGbIJJvGRGfXm6BXujHqjQ7RPEF3M1CLdnTfX3FukQ5osgGxXXw4FU', '2017-04-01 08:28:20', '2017-04-16 16:13:28'), (9, 'tets', 'test', '<EMAIL>', 0, '254737194759', 'tuo1-sc211-0134/2013', '$2y$10$i8Hp9Yx3fXDujCOx.sdwtOtxDmE/eXHbF7QqBFHViE7Fgpfz5SAQO', '1', '1', '1', 'STUDENT', 1, '', 0, 1, '', 'DS4BYI6RYVOqQ2F4YMzEw38FEjPC833Um2jy79LldQQ1ZzC6WDV5lMOhRvxd', '2017-04-01 08:41:34', '2017-04-01 08:43:29'), (10, 'Jane', 'Jamed', '<EMAIL>', 0, '254714876995', '', '$2y$10$o4KD5i9K/uf2GnZ.cDQmNeKp8pD8e7MWBodj2lxeHwVeBExnvgW5i', '1', '', '', 'DEPARTMENT', 1, '', 0, 1, '1', 'azxK0cs6EgbXGg4wgI8DGdoCbveZyBAdxJ8TvGipEktmOaQfj6AbLSPQwvLN', '2017-04-10 04:54:55', '2017-04-10 04:57:42'), (11, '<EMAIL>', '<EMAIL>', '<EMAIL>', 0, '254714876995', '', '$2y$10$MOVauWW1m0y2nRXEwHy1ueLXOORRKXHIOxg9SbrSJnq7Iv8ct0twG', '1', '', '', 'DEPARTMENT', 1, '', 1, 1, '3', 'l6IfH07BMIansDLxUsOSRGdgjcRDoLjoqCsE6UYXz4CQ6WJbIPXjC1ApO4W7', '2017-04-13 03:30:12', '2017-04-30 07:31:17'), (12, 'Student', 'Daggy', '<EMAIL>', 0, '254714876995', '', '$2y$10$lmysvYjDRawLog2M08xgeemFqFsO7env6VqOIVw7/WVGIJJgApXHi', '2', '', '', 'DEPARTMENT', 1, '', 0, 1, '', 'wtVn1DCD6FrX4jINC5AvxKVFwG6V22dp6IztRE3rAQAvNplRccOzG7bRATkQ', '2017-04-16 16:16:11', '2017-04-17 14:40:30'), (13, 'Ruth', 'Wageci', '<EMAIL>', 0, '254714876995', 'tuo1-sc211-0134/2012', '$2y$10$YQoXw40FhRPmXKO59oS5ZOcSUmNHExBhhTb66T7mGNH5AOuCVkJrC', '2', '2', '1', 'STUDENT', 1, '', 0, 1, '1', 'kAPRLkRCOk4SSAEMKpKO8udliJoQ9nyYXjsrvRkGKbLiVaq9ZXz1GBnQauWo', '2017-04-17 18:30:51', '2017-04-17 18:41:04'), (14, 'Daniel', 'Mbuthia', '<EMAIL>', 0, '', '', '$2y$10$AgiBDSb21VH4hieD0SN.MuFyaVmCiUguRbggW7tueMsfYOej7PGXm', '', '', '', '', 1, '', 0, 0, '', '8rWj7hPZaJy1Ww7jhlsB2cH1Pmiv3LXh1I1UKWyIp1Rc1kguhOU67CN5oYCy', '2017-04-17 18:41:52', '2017-04-17 18:41:52'), (15, 'Joy', 'Mwangi', '<EMAIL>', 0, '254714876995', 'tuo1-sc211-0104/2013', '$2y$10$ePMh/k.Hpv9LhfZyr7ZETefjhYc4n/gB0jKWPzSObhhi.lrOYQ/Q2', '1', '4', '2', 'STUDENT', 1, '', 0, 1, '1', 'GVMDMB0XqAuiyAhzoKmjWH6txoVHqRTnuekx8Zv5pN4IrmrPKgugQuTDBfUz', '2017-04-17 18:52:44', '2017-04-17 18:54:30'), (16, 'A', 'B', '<EMAIL>', 0, '254714876995', 'tuo1-sc211-0134/2013', '$2y$10$GlELmXUU8RYHI8WmTRbsmukXfAzJtI/HLE83EktNDSMbmgyaglnsa', '1', '3', '1', 'STUDENT', 1, '', 0, 1, '1', 'olDPs2AG8L7YnwdEGvPWSVEMPzqa7AtAewEwwUV8o00bwDK0ONuIGinafkT3', '2017-04-30 07:25:46', '2017-04-30 07:26:18'), (17, 'gdgs', 'ds', '<EMAIL>', 0, '', '', '$2y$10$sgkhs5Bv.h4UZejXad3cG.4x.fPQzGD9YMBUD5XkcaPXA3GMf6fGu', '', '', '', '', 1, '', 0, 0, '', NULL, '2017-04-30 07:32:15', '2017-04-30 07:32:15'); -- -------------------------------------------------------- -- -- Table structure for table `years` -- CREATE TABLE `years` ( `id` int(10) UNSIGNED NOT NULL, `year` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `semester` int(25) NOT NULL DEFAULT '1', `status` int(5) NOT NULL DEFAULT '0', `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 `years` -- INSERT INTO `years` (`id`, `year`, `semester`, `status`, `created_at`, `updated_at`) VALUES (1, '2016/2017', 1, 0, NULL, '2017-04-16 16:13:15'), (4, '2016/2017', 2, 1, '2017-04-16 22:52:38', '2017-04-16 22:52:38'); -- -- Indexes for dumped tables -- -- -- Indexes for table `courses` -- ALTER TABLE `courses` ADD PRIMARY KEY (`id`); -- -- Indexes for table `departments` -- ALTER TABLE `departments` ADD PRIMARY KEY (`id`); -- -- Indexes for table `messages` -- ALTER TABLE `messages` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `minidepartments` -- ALTER TABLE `minidepartments` ADD PRIMARY KEY (`id`); -- -- Indexes for table `notices` -- ALTER TABLE `notices` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`), ADD KEY `password_resets_token_index` (`token`); -- -- Indexes for table `records` -- ALTER TABLE `records` ADD PRIMARY KEY (`id`); -- -- Indexes for table `remarks` -- ALTER TABLE `remarks` ADD PRIMARY KEY (`id`); -- -- Indexes for table `transactions` -- ALTER TABLE `transactions` 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 `years` -- ALTER TABLE `years` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `courses` -- ALTER TABLE `courses` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `departments` -- ALTER TABLE `departments` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `messages` -- ALTER TABLE `messages` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `minidepartments` -- ALTER TABLE `minidepartments` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `notices` -- ALTER TABLE `notices` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `records` -- ALTER TABLE `records` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=59; -- -- AUTO_INCREMENT for table `remarks` -- ALTER TABLE `remarks` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `transactions` -- ALTER TABLE `transactions` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18; -- -- AUTO_INCREMENT for table `years` -- ALTER TABLE `years` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=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 */;
• SELECT • CASE • WHEN e.Age BETWEEN 0 AND 10 THEN '[0-10]' • WHEN e.Age BETWEEN 11 AND 20 THEN '[11-20]' • WHEN e.Age BETWEEN 21 AND 30 THEN '[21-30]' • WHEN e.Age BETWEEN 31 AND 40 THEN '[31-40]' • WHEN e.Age BETWEEN 41 AND 50 THEN '[41-50]' • WHEN e.Age BETWEEN 51 AND 60 THEN '[51-60]' • WHEN e.Age > 60 THEN '[61+]' • END • AS [AgeGroup], • COUNT(*) AS [WizzardGount] • FROM WizzardDeposits AS e • GROUP BY • CASE • WHEN e.Age BETWEEN 0 AND 10 THEN '[0-10]' • WHEN e.Age BETWEEN 11 AND 20 THEN '[11-20]' • WHEN e.Age BETWEEN 21 AND 30 THEN '[21-30]' • WHEN e.Age BETWEEN 31 AND 40 THEN '[31-40]' • WHEN e.Age BETWEEN 41 AND 50 THEN '[41-50]' • WHEN e.Age BETWEEN 51 AND 60 THEN '[51-60]' • WHEN e.Age > 60 THEN '[61+]' • END
<reponame>KlientutvecklingGrupp2/NackademiskaAuktionsframjandet USE GUNNARSDATABAS; -- ----------------------------------------------------- -- Table `Customer` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `Customer` ( `Id` INT NOT NULL AUTO_INCREMENT, `Name` VARCHAR(45) NOT NULL, `Address` VARCHAR(45) NULL, `PostalCode` VARCHAR(6) NULL, `City` VARCHAR(45) NULL, `Phone` VARCHAR(12) NULL, `Email` VARCHAR(45) NOT NULL, `Password` VARCHAR(10) NOT NULL, PRIMARY KEY (`Id`) ); -- ----------------------------------------------------- -- Table `Supplier` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `Supplier` ( `Id` INT NOT NULL AUTO_INCREMENT, `Name` VARCHAR(45) NULL, `Address` VARCHAR(45) NULL, `PostalCode` VARCHAR(45) NULL, `City` VARCHAR(45) NULL, `Phone` VARCHAR(12) NULL, `Email` VARCHAR(45) NOT NULL, `Provision` DECIMAL(10,2) NOT NULL, PRIMARY KEY (`Id`) ); -- ----------------------------------------------------- -- Table `Auktion`.`Category` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `Category` ( `Id` INT NOT NULL AUTO_INCREMENT, `Name` VARCHAR(45) NULL, PRIMARY KEY (`Id`) ); -- ----------------------------------------------------- -- Table `Auction` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `Auction` ( `Id` INT NOT NULL AUTO_INCREMENT, `Name` VARCHAR(45) NULL, `Description` TEXT(256) NULL, `StartTime` DATETIME NULL, `EndTime` DATETIME NULL, `Image` BLOB NULL, `CategoryId` INT NOT NULL, `SupplierId` INT NOT NULL, `AcceptPrice` DECIMAL(10,2) NOT NULL, `Sold` BOOL, PRIMARY KEY (`Id`), FOREIGN KEY (`CategoryId`) REFERENCES `Category` (`Id`), FOREIGN KEY (`SupplierId`) REFERENCES `Supplier` (`Id`) ); -- ----------------------------------------------------- -- Table `Auktion`.`Offer` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `Offer` ( `Id` INT NOT NULL AUTO_INCREMENT, `CustomerId` INT NOT NULL, `AuctionId` INT NOT NULL, `DateTime` DATETIME NOT NULL, `Offer` DECIMAL(10,2) NOT NULL, PRIMARY KEY (`Id`), FOREIGN KEY (`CustomerId`) REFERENCES `Customer` (`Id`), FOREIGN KEY (`AuctionId`) REFERENCES `Auction` (`Id`) );
<filename>prisma/migrations/20220323185343_add_ondelete_order/migration.sql -- DropForeignKey ALTER TABLE `ProductInOrder` DROP FOREIGN KEY `ProductInOrder_orderId_fkey`; -- DropForeignKey ALTER TABLE `ProductInOrder` DROP FOREIGN KEY `ProductInOrder_productId_fkey`; -- AddForeignKey ALTER TABLE `ProductInOrder` ADD CONSTRAINT `ProductInOrder_productId_fkey` FOREIGN KEY (`productId`) REFERENCES `Product`(`code`) ON DELETE CASCADE ON UPDATE CASCADE; -- AddForeignKey ALTER TABLE `ProductInOrder` ADD CONSTRAINT `ProductInOrder_orderId_fkey` FOREIGN KEY (`orderId`) REFERENCES `Order`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
<gh_stars>1-10 -- "Copyright (C) <NAME>, 2009-2017." drop TABLE "t_config" ; CREATE TABLE "t_config" ( "id" uuid DEFAULT uuid_generate_v4() not null primary key -- customer_id , "customer_id" uuid not null , "item_name" char varying (80) not null , "value" text , "i_value" int , "updated" timestamp -- Project update timestamp (YYYYMMDDHHMMSS timestamp). , "created" timestamp default current_timestamp not null -- Project creation timestamp (YYYYMMDDHHMMSS timestamp). ); create unique index "t_config_p1" on "t_config" ( "customer_id", "item_name" ); CREATE OR REPLACE function t_config_upd() RETURNS trigger AS $BODY$ BEGIN NEW.updated := current_timestamp; RETURN NEW; END $BODY$ LANGUAGE 'plpgsql'; CREATE TRIGGER t_config_trig BEFORE update ON "t_config" FOR EACH ROW EXECUTE PROCEDURE t_config_upd();
CREATE PROCEDURE [dbo].[uspMoveSitesToNewProvider] @oldUKPRN int, @oldUPIN int, @newUKPRN int, @newUPIN int AS BEGIN DECLARE @oldProviderID INT = (SELECT ProviderID FROM dbo.Provider WHERE UPIN = @oldUPIN AND UKPRN = @oldUKPRN); IF @oldProviderID IS NULL BEGIN RAISERROR('Couldn''t find Old UKPRN %d with UPIN %d in the Provider table, exiting', 16, 1 , @oldUKPRN,@oldUPIN ); RETURN -1 END DECLARE @newProviderID INT = (SELECT ProviderID FROM dbo.Provider WHERE UPIN = @newUPIN AND UKPRN = @newUKPRN); IF @newProviderID IS NULL BEGIN RAISERROR('Couldn''t find New UKPRN %d with UPIN %d in the Provider table, the existing UKPRN %d will be updated to %d', 10, 1 , @newUKPRN,@newUPIN, @oldUKPRN, @newUKPRN ); UPDATE dbo.PROVIDER SET UKPRN = @newUKPRN WHERE UPIN = @oldUPIN AND UKPRN = @oldUKPRN; RETURN 0 END -- Move the relationships to the new ProviderID UPDATE dbo.ProviderSiteRelationship SET ProviderID = @newProviderID OUTPUT DELETED.*, INSERTED.* WHERE ProviderID = @oldProviderID; IF NOT EXISTS (SELECT * FROM dbo.SectorSuccessRates WHERE ProviderID = @newProviderID) BEGIN UPDATE dbo.SectorSuccessRates SET ProviderID = @newProviderID OUTPUT DELETED.*, INSERTED.* WHERE ProviderID = @oldProviderID; END SELECT * FROM vacancy WHERE contractownerid = @oldProviderID; UPDATE Vacancy SET ContractOwnerID = @NewProviderID WHERE ContractOwnerID = @OldProviderID; SELECT * FROM vacancy WHERE contractownerid = @NewProviderID; UPDATE dbo.Provider SET OriginalUPIN = (SELECT OriginalUPIN FROM dbo.Provider WHERE ProviderID = @oldProviderID) OUTPUT DELETED.*, INSERTED.* WHERE dbo.Provider.ProviderID = @newProviderID; UPDATE Provider SET ProviderStatusTypeID = 2 WHERE ProviderID = @oldProviderID DELETE FROM dbo.SectorSuccessRates WHERE ProviderID = @oldProviderID; END
<reponame>ThiagoBfim/stocks<gh_stars>1-10 ALTER TABLE TB_STOCK ADD COLUMN DT_LAST_UPDATE timestamp DEFAULT now();
-- file:limit.sql ln:142 expect:true select sum(tenthous) as s1, sum(tenthous) + random()*0 as s2 from tenk1 group by thousand order by thousand limit 3
<reponame>xavier506/lifebank DROP TABLE "public"."location";
<reponame>dram/metasfresh -- 2020-08-20T12:24:20.532Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET AD_Reference_ID=36, FieldLength=1661992960,Updated=TO_TIMESTAMP('2020-08-20 14:24:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=568302 ; -- 2020-08-20T12:24:22.482Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO t_alter_column values('ad_process','JSONPath','TEXT',null,null) ;
/* Navicat SQLite Data Transfer Source Server : fakeed Source Server Version : 30714 Source Host : :0 Target Server Type : SQLite Target Server Version : 30714 File Encoding : 65001 Date: 2015-04-11 09:14:07 */ PRAGMA foreign_keys = OFF; -- ---------------------------- -- Table structure for torrent -- ---------------------------- DROP TABLE IF EXISTS "main"."torrent"; CREATE TABLE "torrent" ( "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "info_hash" BLOB NOT NULL, "peer_id" BLOB NOT NULL, "netloc" TEXT NOT NULL, "uploaded" INTEGER, "downloaded" INTEGER, "left" INTEGER, "fake_uploaded" INTEGER, "fake_downloaded" INTEGER, "fake_left" INTEGER, "ip" TEXT, "event" TEXT, "update_date" TIMESTAMP, "tracker_date" TIMESTAMP ); -- ---------------------------- -- Indexes structure for table torrent -- ---------------------------- CREATE UNIQUE INDEX "main"."idx_info_hash_peer_id_netloc" ON "torrent" ("info_hash" ASC, "peer_id" ASC, "netloc" ASC); -- ---------------------------- -- Triggers structure for table torrent -- ---------------------------- DROP TRIGGER IF EXISTS "main"."UPDATE_DATE_INSERT_ TRIGGER"; CREATE TRIGGER "UPDATE_DATE_INSERT_ TRIGGER" AFTER INSERT ON "torrent" BEGIN UPDATE torrent SET update_date = datetime('now') WHERE id = new.id; END; ; DROP TRIGGER IF EXISTS "main"."UPDATE_DATE_UPDATE_ TRIGGER"; CREATE TRIGGER "UPDATE_DATE_UPDATE_ TRIGGER" AFTER UPDATE ON "torrent" BEGIN UPDATE torrent SET update_date = datetime('now') WHERE id = new.id; END; ;
<reponame>incomparable/Django<filename>dumps/Dump20171230/todolist_django_content_type.sql CREATE DATABASE IF NOT EXISTS `todolist` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `todolist`; -- MySQL dump 10.13 Distrib 5.7.20, for Linux (x86_64) -- -- Host: localhost Database: todolist -- ------------------------------------------------------ -- Server version 5.7.20-0ubuntu0.16.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 `django_content_type` -- DROP TABLE IF EXISTS `django_content_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `django_content_type` ( `id` int(11) NOT NULL AUTO_INCREMENT, `app_label` varchar(100) NOT NULL, `model` varchar(100) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `django_content_type_app_label_45f3b1d93ec8c61c_uniq` (`app_label`,`model`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `django_content_type` -- LOCK TABLES `django_content_type` WRITE; /*!40000 ALTER TABLE `django_content_type` DISABLE KEYS */; INSERT INTO `django_content_type` VALUES (2,'admin','logentry'),(4,'auth','group'),(3,'auth','permission'),(5,'auth','user'),(6,'contenttypes','contenttype'),(7,'sessions','session'),(1,'todo','todo1'); /*!40000 ALTER TABLE `django_content_type` 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 2017-12-30 16:37:45
<gh_stars>0 # # Add a column to record entry status code. The default is 1 # which is a confirmed booking. The status codes are defined # in systemdefaults.inc.php ALTER TABLE %DB_TBL_PREFIX%entry ADD COLUMN status tinyint NOT NULL DEFAULT 1;
-- Verify nz-buildings:buildings_reference/functions/suburb_locality on pg BEGIN; SELECT has_function_privilege('buildings_reference.suburb_locality_intersect_polygon(geometry)', 'execute'); SELECT has_function_privilege('buildings_reference.suburb_locality_delete_removed_areas()', 'execute'); SELECT has_function_privilege('buildings_reference.suburb_locality_insert_new_areas()', 'execute'); SELECT has_function_privilege('buildings_reference.suburb_locality_update_suburb_locality()', 'execute'); ROLLBACK;
DELIMITER // CREATE PROCEDURE `recur_job_orders`(id INT, diff INT, type INT) BEGIN DECLARE _cnt INT; DECLARE _id INT; Declare ea int; SET _cnt = 1; WHILE _cnt <= diff DO IF type = 1 THEN BEGIN INSERT into estimates(`campaign_id`, `status_id`, `received_date`, `confirmed_date`, `schedule_date_time`,`tax`, `discount`, `factor`, `schedule_end_date`, `recurring_value`) select `campaign_id`, `status_id`, `received_date`, `confirmed_date`, `schedule_date_time`+ INTERVAL _cnt WEEK, `tax`, `discount`, `factor`, `schedule_end_date` + INTERVAL _cnt WEEK, null from estimates WHERE estimate_id = id; END; END IF; IF type = 2 THEN BEGIN INSERT into estimates(`campaign_id`, `status_id`, `received_date`, `confirmed_date`, `schedule_date_time`,`tax`, `discount`, `factor`, `schedule_end_date`, `recurring_value`) select `campaign_id`, `status_id`, `received_date`, `confirmed_date`, `schedule_date_time`+ INTERVAL _cnt MONTH, `tax`, `discount`, `factor`, `schedule_end_date` + INTERVAL _cnt WEEK, null from estimat es WHERE estimate_id = id; END; END IF; set _id = (select LAST_INSERT_ID()); insert into estimated_areas(estimate_id,area_id) select _id, `area_id` from estimated_areas where estimate_id = id; create table estimate_area_temp (ID int not null auto_increment, PRIMARY KEY (ID)) as select `estimated_area_id` from estimated_areas where estimate_id = _id; insert into products_used_per_area(`estimated_area_id`, `product_id`, `quantity`, `product_cost_at_time`) select (select `estimated_area_id` from estimate_area_temp) as `estimated_area_id`, `product_id`, `quantity`, `product_cost_at_time` from estimated_areas inner join products_used_per_area on products_used_per_area.estimated_area_id = estimated_areas.estimated_area_id where estimated_areas.estimate_id = id; drop table estimate_area_temp; SET _cnt = _cnt + 1; END WHILE; END// DELIMITER ;
<filename>db/migrations/2001161839_drop_column_items_items_id.sql -- +migrate Up # 13 rows DELETE `items_items` FROM `items_items` JOIN `items_items` AS `orig` USING(`parent_item_id`, `child_item_id`) WHERE `items_items`.`child_order` > `orig`.`child_order` OR `items_items`.`child_order` = `orig`.`child_order` AND `items_items`.`id` > `orig`.`id`; ALTER TABLE `items_items` DROP PRIMARY KEY, ADD PRIMARY KEY (`parent_item_id`, `child_item_id`), DROP INDEX `parent_child`, DROP INDEX `parent_version`, DROP COLUMN `id`, ADD CONSTRAINT `fk_items_items_parent_item_id_items_id` FOREIGN KEY (`parent_item_id`) REFERENCES `items`(`id`), ADD CONSTRAINT `fk_items_items_child_item_id_items_id` FOREIGN KEY (`child_item_id`) REFERENCES `items`(`id`); DROP TRIGGER `before_insert_items_items`; -- +migrate StatementBegin CREATE TRIGGER `before_insert_items_items` BEFORE INSERT ON `items_items` FOR EACH ROW BEGIN INSERT IGNORE INTO `items_propagate` (id, ancestors_computation_state) VALUES (NEW.child_item_id, 'todo') ON DUPLICATE KEY UPDATE `ancestors_computation_state` = 'todo' ; END -- +migrate StatementEnd -- +migrate Down ALTER TABLE `items_items` DROP PRIMARY KEY, ADD COLUMN `id` BIGINT(20) FIRST; UPDATE `items_items` SET `id` = FLOOR(RAND() * 1000000000) + FLOOR(RAND() * 1000000000) * 1000000000; ALTER TABLE `items_items` MODIFY COLUMN `id` BIGINT(20) NOT NULL, ADD PRIMARY KEY (`id`), DROP FOREIGN KEY `fk_items_items_parent_item_id_items_id`, DROP FOREIGN KEY `fk_items_items_child_item_id_items_id`, ADD INDEX `parent_child` (`parent_item_id`, `child_item_id`), ADD INDEX `parent_version` (`parent_item_id`); DROP TRIGGER `before_insert_items_items`; -- +migrate StatementBegin CREATE TRIGGER `before_insert_items_items` BEFORE INSERT ON `items_items` FOR EACH ROW BEGIN IF (NEW.id IS NULL OR NEW.id = 0) THEN SET NEW.id = FLOOR(RAND() * 1000000000) + FLOOR(RAND() * 1000000000) * 1000000000; END IF; INSERT IGNORE INTO `items_propagate` (id, ancestors_computation_state) VALUES (NEW.child_item_id, 'todo') ON DUPLICATE KEY UPDATE `ancestors_computation_state` = 'todo' ; END -- +migrate StatementEnd