Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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;
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Theory And Applications 27th Australasian Database Conference Adc 20 Sydney Nsw September 28 29 20 Proceedings Lncs 9877

Authors: Muhammad Aamir Cheema ,Wenjie Zhang ,Lijun Chang

1st Edition

3319469215, 978-3319469218

More Books

Students also viewed these Databases questions

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago