Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
38 views1 page

P9 Section3 MS SQL Upload Code

The document contains SQL statements to create a Consumer_Complaints table in a database and populate it with data from a RAW_Consumer_Complaints table. The Consumer_Complaints table will contain consumer complaint records with fields for the date, product, issue, company response, location, and other details to track and analyze consumer complaints over time.

Uploaded by

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

P9 Section3 MS SQL Upload Code

The document contains SQL statements to create a Consumer_Complaints table in a database and populate it with data from a RAW_Consumer_Complaints table. The Consumer_Complaints table will contain consumer complaint records with fields for the date, product, issue, company response, location, and other details to track and analyze consumer complaints over time.

Uploaded by

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

USE [Consumer Complaints]

GO

CREATE TABLE Consumer_Complaints (


date_received varchar(12),
product_name varchar(500),
sub_product varchar(500),
issue varchar(5000),
sub_issue varchar(5000),
consumer_complaint_narrative varchar(5000),
company_public_response varchar(5000),
company varchar(500),
state_name varchar(2),
zip_code varchar(6),
tags varchar(400),
consumer_consent_provided varchar(30),
submitted_via varchar(100),
date_sent varchar(12),
company_response_to_consumer varchar(5000),
timely_response varchar(30),
consumer_disputed varchar(30),
complaint_id varchar(10)
)

INSERT INTO [dbo].[Consumer_Complaints]


SELECT *
FROM [dbo].[RAW_Consumer_Complaints]

You might also like