Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 8 pages
Essay

DAD-220 Module Four Major Activity

Document preview thumbnail
Preview 2 out of 8 pages

Completed Major Activity submission with source code and screenshots for references.

Content preview

Module Four Major Activity: Load and Query Data
1.Import the data from each file into tables. a.Use the import utility of your database program to load the data from each file into the table of the same name. You will perform this step three times, once for each table.
b.Provide the SQL commands you ran against MySQL to complete this successfully in your answer:
LOAD DATA INFILE ‘/home/codio/workspace/customers.csv
INTO TABLE Customers
FIELDS TERMINATED BY ‘,’
ENCLOSED BY “” LINES TERMINATED BY ‘\n’;
LOAD DATA INFILE ‘/home/codio/workspace/orders.csv
INTO TABLE Orders
FIELDS TERMINATED BY ‘,’
ENCLOSED BY ‘”’ LINES TERMINATED BY ‘\n’;
LOAD DATA INFILE ‘/home/codio/workspace/rma.csv
INTO TABLE RMA
FIELDS TERMINATED BY ‘,’
ENCLOSED BY ‘”’
LINES TERMINATED BY ‘\n’;
Before I begin, I load the local CSV files provided for the project with three separate LOAD statements. 2.Write basic queries against imported tables to organize and analyze targeted data. For each query, include a screenshot of the query and its output. You should also include a brief, 1-3 sentence description of the output.
a.Write an SQL query that returns the count of orders for customers located only in the city of Framingham, Massachusetts i.How many records were returned?
SELECT COUNT(*)
FROM Customers INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID
WHERE Customers.city = 'Framingham' AND Customers.state = 'Massachusetts';
The total records presented of customer orders from Framingham, MA was 505.
While we could visibly display every customer from Massachusetts in this exercise, it would be incredibly inefficient. To complete this task, we utilize a SELECT COUNT()

Document information

Uploaded on
March 14, 2021
Number of pages
8
Written in
2020/2021
Type
Essay
Professor(s)
Unknown
Grade
A+
$5.48

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Riveneye
4.2
(66)
Sold
383
Followers
225
Items
51
Last sold
3 months ago

Reviews from verified buyers




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions