Write the correct command to describe the branches table

Assignment Help Computer Engineering
Reference no: EM133749845

Homework: Computer Science

Overview

To complete this homework, 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.

I. Connect to the database you created and named in Module One (for example, Jetson). Type after the prompt mysql>

A. use (table you named);

a. Example: mysql> use Jetson;

II. 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));

III. Create the Branches table. Fill in the missing characters or punctuation in the incomplete statement shown below to complete this action.

A. CREATE Branches (Department_ID SMALLINT,Department_Name )

IV. 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.

A. describe Employee;

B. Write the correct command to describe the Branches table

V. 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.

A. 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);

B. Type the command select* from Employee; and take a screenshot of it to validate this step.

VI. 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).

A. Gwen Johnson: Employee ID = 103, DEPARTMENT_ID = 4, Classification = NULL, Status = Full-Time, SALARY = 40000

B. Michael Jones: Employee ID = 104, DEPARTMENT_ID = 4, Classification = Non-Exempt, Status = Full-Time, SALARY = 90000

C. Insert your name into the table to verify and prove your work.

a. (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)

D. Type the command select* from Employee; and take a screenshot of it to validate this step.

E. 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.

F. Write the correct command to prove that you've successfully completed this step, and validate it with a screenshot.

VII. Select the fields of last name, first name, and department id from the table. Validate your work with a screenshot.

A. Select First_Name, Last_Name, Employee_ID, Department_ID from Employee;

Reference no: EM133749845

Questions Cloud

How three concepts from the reading help you understand : How three concepts from the reading help you understand what was or was not happening during your context/experience/phenomenon.
What do you think the biggest challenge was : How do you feel about your experience with the features? If you've worked for / with a global organization, what do you think the biggest challenge was?
Resurging infectious disease threat to public health : Should normal civil liberties be curtailed and infected patients quarantined? What about their families, or other individuals suspected to be at risk?
How a specific company has addressed social responsibility : How a specific company has addressed at least two of the following: social responsibility, ethical behavior, interdependence and sustainability.
Write the correct command to describe the branches table : DAD 220 Southern New Hampshire University- Create the Branches table. Write the correct command to describe the Branches table.
About communication and staff behavior are widespread issue : Atient complaints about communication and staff behavior are a widespread issue in the United States healthcare system.
What were the roots of the cultures : What were the roots of these cultures and how did they develop over time? From studying these cultures, what insights do you get about your own culture?
Excessive sleeping-overeating-craving for carbohydrates : A patient complains of not feeling well, overall lack of energy, excessive sleeping, overeating, craving for carbohydrates, and weight gain
Social work practice despite deficits of resources : How can you include evaluations of social work practice despite deficits of resources? How can you incorporate evaluations into your practice plans?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd