0% found this document useful (0 votes)
16 views3 pages

Lab1 DI220152 DATABASE

Uploaded by

Razlan Rahim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views3 pages

Lab1 DI220152 DATABASE

Uploaded by

Razlan Rahim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

UNIVERSITI TUN HUSSEIN ONN MALAYSIA

FACULTY OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY

Course : BIC21404 Database


Session : II 2023/2024
Lab task : 1
Name : ABDUL RAZLAN KHAIRY BIN ABDUL RAHIM

Matric No : DI220152

1. Summary of Lab 1 Task:


Write a summary (approximately 300 words) of lessons learned, difficulties arising, or new
knowledge gained during Lab Exercise 1.
During Lab Exercise 1, several key lessons were learned, and some difficulties arose,
particularly in creating tables and databases in MySQL.

One significant lesson learned the significance of data types and constraints in database
design. For instance, when defining columns in a table, specifying appropriate data types
(such as INT for integers or VARCHAR for variable-length strings) ensures data integrity
and efficient storage.

Difficulties were encountered in ensuring the accuracy and completeness of the SQL
commands. Syntax errors can easily occur if commands are not written correctly, leading to
issues in creating tables or databases. Debugging these errors required careful examination of
the commands and understanding SQL syntax rules.

New knowledge was gained about the primary key constraint, which uniquely identifies each
record in a table. In the exercise, primary keys were defined for both the Customer_Order and
Employees tables to ensure data integrity and enable efficient data retrieval.

Overall, the exercise provided valuable hands-on experience in database management using
MySQL. It reinforced the importance of precision in SQL syntax, the significance of data
types and constraints in database design, and the role of primary keys in maintaining data
integrity. These lessons will be beneficial in future endeavors involving database
development and management.

Page | 1
UNIVERSITI TUN HUSSEIN ONN MALAYSIA
FACULTY OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY

2. Show the capture screen showing the results of Exercise no. 1

The Code:

The Output:

Page | 2
UNIVERSITI TUN HUSSEIN ONN MALAYSIA
FACULTY OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY

3. Write the SQL statement and show the capture screen showing the results of Exercise
no. 2

The Code:

The Output:

Page | 3

You might also like