Exercises DDL Command
Exercises DDL Command
Countries Table
+--------------+---------------+------+-----+---------+-------+
Job Table
+------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------+--------------+------+-----+---------+-------+
| JOB_ID | varchar(10) | NO | | NULL | |
| JOB_TITLE | varchar(35) | NO | | NULL | |
| MIN_SALARY | decimal(6,0) | YES | | NULL | |
| MAX_SALARY | decimal(6,0) | YES | | NULL | |
+------------+--------------+------+-----+---------+-------+
+---------------+--------------+------+-----+---------+-------+
7. Write a MySql statement to add a columns ID as the first column of the table
locations.
9. Write a MySql statement change the data type of the column country_id to
integer in the table locations.
10. Write a MySql statement to drop the column city from the table locations.
11. Write a MySql statement to change the name of the column state_province to
state, keeping the data type and size same.