Question: When you are using CLC for practice activity # 2 , follow these steps: You need to create a database: let's say its name is

When you are using CLC for practice activity # 2, follow these steps:
You need to create a database: let's say its name is INFO2312:
mysql> CREATE DATABASE INFO2312;
Query OK,1 row affected (0.04 sec)
Use this database by running:
mysql> CREATE DATABASE INFO2312;
Query OK,1 row affected (0.04 sec)
Next step is to create table:
CREATE TABLE employees3(
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100),
age INT,
position VARCHAR(100)
);
Insert data into table:
mysql> INSERT INTO employees3(name, age, position) VALUES
->('John Doe', 30, 'Manager'),
->('Jane Smith', 25, 'Developer'),
->('Michael Johnson', 35, 'Designer'),
->('Emily Davis', 28, 'Marketing');
Query OK,4 rows affected (0.01 sec)
Records: 4Duplicates: 0Warnings: 0
Run query:
mysql> SELECT * FROM employees3;
+----+-----------------+------+-----------+
| id | name | age | position |
+----+-----------------+------+-----------+
|1| John Doe |30| Manager |
|2| Jane Smith |25| Developer |
|3| Michael Johnson |35| Designer |
|4| Emily Davis |28| Marketing |
+----+-----------------+------+-----------+
4 rows in set (0.00 sec)
We will start DDL programming in the next lecture, covering all the steps. This activity only provides you with an exercise on how to start working with CLC.

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!