0% found this document useful (0 votes)
21 views2 pages

Backup Customer

The document contains SQL insert statements for adding a new customer and their associated billing and shipping addresses into a database. The customer is identified by the Oracle code '11153' and is located in Huế, Vietnam. Two billing addresses and two shipping addresses are being inserted for the customer, all marked as active.

Uploaded by

Bonbihandmade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views2 pages

Backup Customer

The document contains SQL insert statements for adding a new customer and their associated billing and shipping addresses into a database. The customer is identified by the Oracle code '11153' and is located in Huế, Vietnam. Two billing addresses and two shipping addresses are being inserted for the customer, all marked as active.

Uploaded by

Bonbihandmade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

-- Customer Oracle Code: 1115333

INSERT INTO customer ( parent_customer_id, customer_code, customer_oracle_code,


full_name, short_name, email, phone_number, business_registration_number,
business_registration_address, tax_numer, business_type_id, founding_date,
business_channel_id, customer_type_id, number_of_days_credit, country_id, status,
approved_by, approved_time, rejected_by, rejected_reason, rejected_time,
editable_flag, send_approved_by, send_approved_time, location_code, created_by,
created_time, modified_by, modified_time, is_historical, send_approved_by_email,
sync_errors, customer_oracle_account_id ) VALUES ( null, (SELECT
TO_CHAR(nextval('sequence_customer_code'), 'KHfm00000000')), '11153', 'Công ty TNHH
Khánh Linh', 'Công ty TNHH Khánh Linh', null, null, null, 'Tầng 3,số nhà 21 đường
Hai Bà Trưng,Thành phố Huế,Tỉnh Thừa Thiên Huế', '3300363592', null, null, null,
'3', null, '1', 'ACTIVE', null, null, null, null, null, 't', null, null, null,
'MIGRATOR', now(), 'MIGRATOR', now(), 'f', null, null, '32399');

-- bill_address has 2 data(s)


INSERT INTO bill_address ( customer_id, bill_address_code, company_id,
phone_number, address, national_id, province_id, distric_id, wards_id,
orc_location, effective, created_by, created_time, modified_by, modified_time,
is_all_purpose, full_address, sub_status, bill_site_use_code ) VALUES ( (SELECT
customer_id FROM customer WHERE customer_oracle_code = '11153' AND status =
'ACTIVE' LIMIT 1), '11006', '0', null, 'Tầng 3,số nhà 21 đường Hai Bà Trưng,Thành
phố Huế,Tỉnh Thừa Thiên Huế', '1', null, null, null, '261893', true, 'MIGRATOR',
'2024-03-14 13:54:38.337', null, '2024-03-14 13:54:37.279345', null, 'Tầng 3,số nhà
21 đường Hai Bà Trưng,Thành phố Huế,Tỉnh Thừa Thiên Huế', 'ACTIVE', '261895');
INSERT INTO bill_address ( customer_id, bill_address_code, company_id,
phone_number, address, national_id, province_id, distric_id, wards_id,
orc_location, effective, created_by, created_time, modified_by, modified_time,
is_all_purpose, full_address, sub_status, bill_site_use_code ) VALUES ( (SELECT
customer_id FROM customer WHERE customer_oracle_code = '11153' AND status =
'ACTIVE' LIMIT 1), '11006', '0', null, 'Tầng 3,số nhà 21 đường Hai Bà Trưng,Thành
phố Huế,Tỉnh Thừa Thiên Huế', '1', null, null, null, '21484', true, 'MIGRATOR',
'2024-03-14 13:54:38.339', null, '2024-03-14 13:54:37.279345', null, 'Tầng 3,số nhà
21 đường Hai Bà Trưng,Thành phố Huế,Tỉnh Thừa Thiên Huế', 'ACTIVE', '11006');
-- shipping_address has 2 data(s)
INSERT INTO shipping_address ( customer_id, shipping_address_code, company_id,
bill_address_id, address, national_id, province_id, distric_id, wards_id,
position_id, authority_full_name, authority_phone_number, authority_email,
authority_identified_number, effective, created_by, created_time, modified_by,
modified_time, orc_location, bill_address_id_was_map, is_map_with_bill,
full_address, sub_status, ship_site_use_code ) VALUES ( (SELECT customer_id FROM
customer WHERE customer_oracle_code = '11153' AND status = 'ACTIVE' LIMIT 1),
'11006', '0', null, 'Tầng 3,số nhà 21 đường Hai Bà Trưng,Thành phố Huế,Tỉnh Thừa
Thiên Huế', '1', null, null, null, null, null, null, null, null, true, 'MIGRATOR',
'2024-03-14 13:54:58.656', null, '2024-03-14 13:54:57.681577', '261894', null,
null, 'Tầng 3,số nhà 21 đường Hai Bà Trưng,Thành phố Huế,Tỉnh Thừa Thiên Huế',
'ACTIVE', '261896');
INSERT INTO shipping_address ( customer_id, shipping_address_code, company_id,
bill_address_id, address, national_id, province_id, distric_id, wards_id,
position_id, authority_full_name, authority_phone_number, authority_email,
authority_identified_number, effective, created_by, created_time, modified_by,
modified_time, orc_location, bill_address_id_was_map, is_map_with_bill,
full_address, sub_status, ship_site_use_code ) VALUES ( (SELECT customer_id FROM
customer WHERE customer_oracle_code = '11153' AND status = 'ACTIVE' LIMIT 1),
'11006', '0', null, 'Tầng 3,số nhà 21 đường Hai Bà Trưng,Thành phố Huế,Tỉnh Thừa
Thiên Huế', '1', null, null, null, null, null, null, null, null, true, 'MIGRATOR',
'2024-03-14 13:54:58.658', null, '2024-03-14 13:54:57.681577', '21483', null, null,
'Tầng 3,số nhà 21 đường Hai Bà Trưng,Thành phố Huế,Tỉnh Thừa Thiên Huế', 'ACTIVE',
'11006');

You might also like