Hi this assignment needs to be completed on Codio and use the name Agboola

1 answer below »
Hi this assignment needs to be completed on Codio and use the name Agboola


Codio link https://codio.com/wagboola/dad-220-sql-lab-environment/terminal/backend-1652661267358 Username WAGBOOLA password @AugustAgb4 Overview To complete this assignment, you’ll work in the Codio virtual lab environment to create tables similar to the ones that you saw in the previous activity. Directions To begin, go to your Codio virtual lab environment and start a new terminal session. Once there, perform the steps below to complete this activity. Manually enter any commands you are asked to write. To validate that these commands work, capture screenshots of the results and place them in a document for submission. Each screenshot should be around one quarter of a page. 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 ( Employee_ID SMALLINT, First_Name VARCHAR(40), Last_Name VARCHAR(60), Department_ID SMALLINT, Classification VARCHAR(10), STATUS VARCHAR(10), Salary DECIMAL(7,2)); Create the Branches table. Fill in the missing characters or punctuation in the incomplete statement shown below to complete this action. CREATE Branches ( Department_ID SMALLINT, Department_Name ) After creating the tables, use the correct commands to describe them. You’ll 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 (100, 'John', 'Smith', 1, 'Exempt', 'Full-Time', 90000), (101,'Mary','Jones',2,'Non-Exempt','Part-Time',35000), (102,'Mary','Williams',3,'Exempt','Full-Time',80000); 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 = 103, DEPARTMENT_ID = 4, Classification = NULL, Status = Full-Time, SALARY = 40000 Michael Jones: Employee ID = 104, DEPARTMENT_ID = 4, Classification = Non-Exempt, Status = Full-Time, SALARY = 90000 Insert your name into the table to verify and prove your work. (Your First and Last Name, or a nickname): Employee ID = 105, DEPARTMENT_ID = 1, Classification = Non-Exempt, Statues = Full-time, SALARY = (Choose a value between 50000 and 99000) 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 Department_ID must be a number between 1 and 4. Write the correct command to prove that you’ve 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 First_Name, Last_Name, Employee_ID, Department_ID from Employee; What to Submit Submit all screenshots, clippings, or other text in a Word document with 12-point Times New Roman font, double spacing, and one-inch margins. Each screenshot and its explanation should be sized to approximately one quarter of the page, with a description written below the screenshot.
Answered 7 days AfterMay 17, 2022

Answer To: Hi this assignment needs to be completed on Codio and use the name Agboola

Mohd Abas answered on May 24 2022
91 Votes
Start:
Logged on codio.com using my user name and password and opened the Terminal window there for
starting my project work.
· Initiated the compiler to mysql by typing the mysql –u WAGBOOLA –h localhost –p
· Goto mysql>
· Created Database emp_information using mysql command
· Mysql>CREATE DATABASE emp_Inforamtion;
· MySql> use emp_information;
· Message popped Database changed
Screenshot for Creating and Using database
1. Create Table Employee:
Now the database has been created and it is time to create the tables in the database as required for the project.
Mysql>CREATE TABLE
    ( Employee_ID SMALLINT,
    First_Name VARCHAR(40),
     Last_Name VARCHAR(60),
    Department_ID SMALLINT,
    Classification VARCHAR(10),
    STATUS VARCHAR(10),
    Salary DECIMAL(7,2)
    );
                Screenshort for Creating Table
In order to modify the structure of the Employee Table, we user ALTER command to add PRIMARY KEY using following...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here