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
Essay

DAD-220 Module Four Major Activity

Rating
5.0
(1)
Sold
26
Pages
8
Grade
A+
Uploaded on
14-03-2021
Written in
2020/2021

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

Institution
Course

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()

Written for

Institution
Course

Document information

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

Subjects

$5.48
Get access to the full document:

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

Reviews from verified buyers

Showing all reviews
5 year ago

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

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 Southern New Hampshire University
Follow You need to be logged in order to follow users or courses
Sold
382
Member since
5 year
Number of followers
225
Documents
51
Last sold
1 day ago

4.2

66 reviews

5
43
4
10
3
2
2
4
1
7

Recently viewed by you

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