Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Reference MySQLTutorial. ( n . d . ) . MySQL sample database classicmodels [ Data file ] . MySQLTutorial. https: / / www . mysqltutorial.org

Reference
MySQLTutorial. (n.d.). MySQL sample database classicmodels [Data file]. MySQLTutorial.
https://www.mysqltutorial.org/mysql-sample-
database.aspx
Before you begin, load the "classicmodels" data set:
Reading: Import CSV File Into My SQL Table ?()
This resource discusses the process of creating a table with the necessary data types, fields, and their lengths so that information can be
imported for querying. As you read, consider the following:
How do you properly size a VARCHAR?
How do you identify all of the column types that need to be in the table?
Start a terminal session and run this command: mysqlsampledatabase.sql
Write commands to use the classicmodels database and show its tables to verify that you're in the right place.
Retrieve employee tuples and identify the number of employees in San Francisco and New York.
A. Command for San Francisco: select firstName, lastName, jobTitle, offices.city from employees inner join offices on
employees. officeCode = offices. officeCode where state ='CA'.
B. Write and run a command to return records from New York on your own.
C. Validate the completion of this step with a screenshot of these two tables.
Retrieve order details for orderNumber 10330,10338, and 10194 and identify what type of cardinality this represents in the entity
relationship model.
A. Retrieve the order details by running SELECT queries with WHERE clauses against the orders table.
B. Validate the completion of this step with a screenshot.
C. Then, reference the Module Four Lab ERD to assist in identifying relationships. A version with alternative text is available: Module Four
image text in transcribed

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

Introduction To Constraint Databases

Authors: Peter Revesz

1st Edition

1441931554, 978-1441931559

More Books

Students also viewed these Databases questions

Question

a. How are members selected to join the team?

Answered: 1 week ago

Question

b. What are its goals and objectives?

Answered: 1 week ago