Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PART 1 Creating the Table and Importing the Data 1 . Create the table with appropriate data types a . Name the table customer _
PART Creating the Table and Importing the Data
Create the table with appropriate data types
a Name the table customerspending
b Reuse the column titles from the csv do not change these
c When selecting data types for your tables, ensure they accommodate the full
range of values and avoid truncating any values. Ensure that decimals, lengths,
and other specifications are sufficient for all data to be imported completely.
i You must declare precision and scale when applicable.
ii Go bigger if needed you will not lose points for adding extra space but
you will lose points if your data types do not accommodate all values.
iii. Do not use double precision as a data type in this assignment.
Write the copy statement to bring the data into the database
a Remember that if you choose an incompatible data type, you can enter the
command DROP TABLE customerspending to remove the table and restart.
Run a basic select statement that verifies the data is present and matches what is in the
csv file.
Make sure to include the table creation and copy statement in your code as this is a
component of your grade as demonstrated in the rubric below.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started