Hands-On Activity 1.1 SQL Data Definition Language Commands
Hands-On Activity 1.1 SQL Data Definition Language Commands
6. Database Output:
DESCRIBE vehicles –
This command will show
you the attributed in
the table that you
created.
FINAL OUTPUT
Questions:
1. Try and run your SQL Commands in opposite case or in mixed cases (ex.
SHOW TABLES – show tables). What is the output and what is the feature of
SQL that you can see in doing this task?
4. Try creating two fields in table with two similar names with same then
with different data types. What are the results? Why?
Because MySQL is case-insensitive, there is a duplicate column
name.
5. From the output of Question #4. How does MySQL perform the check to
determine the output the result in Question#4? Does its data type matter?
MySQL examines the column name to see whether it exists. It didn't matter
what data type it was if it already existed.
6. Why do you think the keywords in SQL commands written in the instructions
of this manual and online references are capitalized? Does it affect the query
in anyway? Why?
It didn't matter if the letters were capitalized, lower-case, or upper-case
because MySQL is case-insensitive.
8. Conclusion:
By using the Data Definition Language (DDL) commands in a MySQL database, I
learnt more about the Structured Query Language (SQL) in this lab exercise. I also
learnt how to build, delete, and modify databases and tables. In MySQL Server, I also
learnt how to display databases, tables, and their structures.