Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This question is regarding sql (creating tables and populating the tables with data from 3 csv files and an xml file). I have already populated

This question is regarding sql (creating tables and populating the tables with data from 3 csv files and an xml file).

I have already populated the first 3 tables (Pets, supplies, and customers) with info from the csv files as shown in the loadData function in the python file.

For the rest of the tables, they need to be populated with data from the transaction.xml file (attached in this question).

Pls complete the for loop under loadData (I have started it but it doesnt seem to work so you can either fix it or write a different one that works)

Thanks in advance

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

CREATE TABLE Pets( ID TEXT PRIMARY KEY, Name TEXT, Species TEXT, Color TEXT, Age INT, Price DECIMAL) CREATE TABLE Supplies UPC INT PRIMARY KEY Name TEXT, Price DECIMAL) CREATE TABLE Customers ( INT PRIMARY KEY ID Name TEXT, Phone TEXT, Address TEXT); AUTOINCREMENT CREATE TABLE Pets( ID TEXT PRIMARY KEY, Name TEXT, Species TEXT, Color TEXT, Age INT, Price DECIMAL) CREATE TABLE Supplies UPC INT PRIMARY KEY Name TEXT, Price DECIMAL) CREATE TABLE Customers ( INT PRIMARY KEY ID Name TEXT, Phone TEXT, Address TEXT); AUTOINCREMENT

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions