Question: DBA 1 2 0 MySQL Practice ( Extra credit ) IMPORTANT: You must complete the project with MySQL . You must test your work before

DBA120 MySQL Practice (Extra credit)
IMPORTANT:
You must complete the project with MySQL. You must test your work before submitting it for
grading. Assignments completed on a database other than MySQL will get a zero (0) grade. You
can use NetLab in CPCC virtual environment or any MySQL to complete the assignment.
Instructions on how to use Netlab can be found in Brightspace.
DELIVERABLES (must submit both):
A text file with all your SQL commands. If not submitted, you will get a zero for the assignment.
A Word file with a MySQL workbench sereenshot for each task. This includes your code and the
result. If not submitted, you will get a zero for the assignment.
TASKS to Complete:
Create a database named mySQL firsthame your lastname. For example, if your name is John
Smith, the database name must be mySQL_JOHN_SMITH. Use this database to complete all of
the following tasks. See below:
CREATE DATABASE mySQL_your firsthame_your lasthame;
Type the following statements and display the results.
USE mySQL_your firstname_your lastname;
SELECT current_user(), now (), database();
Type the following command to create a table with your name.
CREATE TABLE ex_your firstname your lastname
( ID integer primary key,
FNAME varchar(25),
LNAME varchar(25));
Type the following command to display the structure of the table.
DESCRIBE ex_your firsthame_your lastname;
Type the following command to insert a record (with your first and last name) into the table ex-
your firstname your lastname.
INSERT INTO ex_your firsthame_your lasthame
VALUES (100, 'your firstname', 'your lastname');
Type the following command to display the records from the table ex_your firstiame_your
lastname.
SELECT * FROM ex_your firstname_your lastname;
 DBA120 MySQL Practice (Extra credit) IMPORTANT: You must complete the project

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!