100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
DAD-220 Module Four Major Activity $4.98   Add to cart

Essay

DAD-220 Module Four Major Activity

1 review
 904 views  26 purchases

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

Preview 2 out of 8  pages

  • March 14, 2021
  • 8
  • 2020/2021
  • Essay
  • Unknown
  • A+
All documents for this subject (15)

1  review

review-writer-avatar

By: barberdalene • 3 year ago

avatar-seller
Riveneye
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()

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Riveneye. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $4.98. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

60281 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$4.98  26x  sold
  • (1)
  Add to cart