Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Connect to the database you created and named in Module One ( for example, Jetson ) . Type after the prompt mysql > use (
Connect to the database you created and named in Module One for example, Jetson Type after the prompt mysql
use table you named;
Example: mysql use Jetson;
Create the Employee table using the SQL statement shown here. Press Return after each line.
CREATE TABLE Employee
EmployeeID SMALLINT,
FirstName VARCHAR
LastName VARCHAR
DepartmentID SMALLINT,
Classification VARCHAR
STATUS VARCHAR
Salary DECIMAL;
Create the Branches table. Fill in the missing characters or punctuation in the incomplete statement shown below to complete this action.
CREATE Branches
DepartmentID SMALLINT,
DepartmentName
After creating the tables, use the correct commands to describe them Youll only be given commands to describe one of the tables and must complete the same action for the second one on your own. Validate your work with a screenshot.
describe Employee;
Write the correct command to describe the Branches table
Insert the following records into the Employee table with support Each line going from left to right is a record. Each line going from top to bottom is a column. Validate your work with a screenshot.
INSERT INTO Employee VALUES 'John', 'Smith', 'Exempt', 'FullTime',
'Mary','Jones','NonExempt','PartTime',
'Mary','Williams','Exempt','FullTime',;
Type the command select from Employee; and take a screenshot of it to validate this step.
Insert the following records into the Employee table for Gwen Johnson and Michael Jones by writing the correct SQL commands on your own without support
Gwen Johnson: Employee ID DEPARTMENTID Classification NULL, Status FullTime, SALARY
Michael Jones: Employee ID DEPARTMENTID Classification NonExempt, Status FullTime, SALARY
Insert your name into the table to verify and prove your work.
Your First and Last Name, or a nickname: Employee ID DEPARTMENTID Classification NonExempt, Statues Fulltime, SALARY Choose a value between and
Type the command select from Employee; and take a screenshot of it to validate this step.
Insert records for a musician, athlete, or other famous character of your choice. Make sure to enter information for all of the fields listed in this table. The DepartmentID must be a number between and
Write the correct command to prove that youve successfully completed this step, and validate it with a screenshot.
Select the fields of last name, first name, and department id from the table. Validate your work with a screenshot.
Select FirstName, LastName, EmployeeID DepartmentID from Employee;
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