Question: TASKS to Complete: Create a database named mySQL _ firstname _ your lastname. For example, if your name is John Smith, the database name must

TASKS to Complete:
Create a database named mySQL_firstname_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 firstname_your lastname;
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 firstname_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 firstname_your lastname
VALUES (100,your firstname,your lastname);
Type the following command to display the records from the table ex_ your firstname_your lastname.
SELECT * FROM ex_ your firstname_your lastname;

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!