Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Reference MySQLTutorial. ( n . d . ) . MySQL sample database classicmodels [ Data file ] . MySQLTutorial. https: / / www . mysqltutorial.org
Reference
MySQLTutorial. nd MySQL sample database classicmodels Data file MySQLTutorial.
https:wwwmysqltutorial.orgmysqlsample
database.aspx
Before you begin, load the "classicmodels" data set:
Reading: Import CSV File Into My 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 and 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started