Professional Documents
Culture Documents
Programme: DTK 6
Assessment task: PRACTICAL WORK 6
Student Learning Time (SLT) : 60 minutes
Lecturer:
Date:
Total marks : (30
report) +
(70 rubric)
Duration: 4 hours
TITLE
Theory: creating database can be in two forms, using GUI or using CLI. In this
lab we will expose to both lab.
Activity Outcome: Create database. Create database named DTK6.
Procedures:
1. Open MySQL Workbench as usual. Click new connection under SQL development.
2. A new windows Connect to Database will appear, name the connection as test.
Click Store in Vault according to password, key in password as admin.
3. Click Okay. A new connection will appear, right click on the connection name test
and select Start Command Line Client
4. Another window will appear.Its shows that we have enter MySQL command
line interface.
Question 1: Type the command to see all the data from table student. (1m)
Question 7: What is the result? Discuss what did you see and print into
the report. (1m)
Question 8: What is the result? Discuss what did you see and print into
the report. (1m)
Question 11: What is the result? Discuss what did you see and print
into the report. (2m)
3. Type the following SQL command to insert record/ tuple in existing table in
MySQL GUI query.
INSERT INTO SUBJECT VALUES ('EC601','DATABASES SYSTEMS');
INSERT INTO SUBJECT VALUES ('ET101','ELECTRICAL TECHNOLOGY');
INSERT INTO SUBJECT VALUES ('ET102','ELECTRICAL WIRING');
4. Type a command to obtain the output in both MySQL Workbench and mySQL CLI.
Question 12: What is the result? Discuss what did you see and print
into the report. (2m)
5. Type the following SQL command to insert record/ tuple in existing table in
Question 13: What is the result? Discuss what did you see and print
into the report. (2m)
7. Type the following SQL command to insert record/ tuple in existing table in
MySQL GUI query.
INSERT INTO RESULT VALUES('S01','EC601', 80, 'A');
INSERT INTO RESULT VALUES('S02','EC601', 75, 'B');
INSERT INTO RESULT VALUES('S03','EC601', 55, 'C');
INSERT INTO RESULT VALUES('S05','ET101', 82, 'A');
INSERT INTO RESULT VALUES('S04','ET101', 85, 'A');
INSERT INTO RESULT VALUES('S06','ET102', 78, 'B');
8. Type a command to obtain the output in both MySQL Workbench and mySQL CLI.
Question 14: What is the result? Discuss what did you see and print
into the report. (2m)
Question 15: What is the result? Discuss what did you see and print
into the report. (2m)
Question 16: What is the result? Discuss what did you see and print
into the report.
REPORT(2m)
Please include the following item in your report:
1.
2.
3.
4.
5.
6.
7.
Title 2 marks
Outcomes 2 marks
Procedure - 2 marks
Result 6 marks
Questions - 10 marks
Discussion for both activity 5 marks
Conclusion 3 marks
REFERENCE BOOK
Anderson V. (2003). Microsoft Office 2003: The Complete Reference. Osborne
McGraw-Hill. (ISBN: 0-072-22917-9)
Connolly T.M and Begg C.E (2009). Database System A Practical Approach to
Design, Implementation and Management 5th Edition. Pearson Addison Wesley.
(ISBN: 0-321-521306-5)
No
Aspects
(LD)
1.
2.
A. Create table
in database
Able to create
table with steps
given.
B. See the
comparison
Able to
compare the
appearance
using GUI and
CLI.
Unsatisfactor
Excellent
Very Good
Good
Fair
10
7-9
4-6
1-3
y
0
Student can
understand and
able to create
table with
successfully
without being
assisted.
Student can
understand
and able to
create table
successfully
after being
assisted.
Student can
understand
and able to
create table
but complete
only some.
Student can
understand
but unable
create table.
Student did
not
understand
and unable
to create
table.
Student can
Student can
understand and
understand
able to
and able to
compare the
compare the
appearance
appearance
using GUI and using GUI and
CLI without
CLI after
being
being
assisted.
assisted.
Student can
understand
and able to
compare the
appearance
using GUI and
CLI but
complete
only some.
Student can
understand
but unable to
compare the
appearance
using GUI and
CLI.
Student did
not
understand
and unable
to compare
the
appearance
using GUI
and CLI.
Points
CLO2, LD1
3.
4.
5.
C. Building
another
tables
Able to build
another table in
database.
D. Create
duplicate
table in
selected
database.
Able to
duplicate table
in selected
database.
E. Modifying the
table
Able to modify
the table.
Student can
understand and
able to build
another table in
database
without being
assisted.
Student can
understand
and able to
build another
table in
database
after being
assisted.
Student can
Student can
understand and
understand
able to
and able to
duplicate table duplicate table
in selected
in selected
database
database
without being after being
assisted.
assisted.
Student can
understand and
able to modify
the table
without being
assisted.
Student can
understand
and able to
modify the
table after
being
assisted.
Student can
understand
and able to
build another
table in
database but
completes
only some.
Student can
understand
but unable to
build another
table in
database.
Student did
not
understand
and unable
to build
another
table in
database.
Student can
understand
and able to
duplicate table
in selected
database but
complete
only some.
Student can
understand
but unable to
duplicate table
in selected
database.
Student did
not
understand
and unable
to duplicate
table in
selected
database.
Student can
understand
and able to
modify the
table but
complete
only some.
Student can
understand
but unable to
modify the
table.
Student did
not
understand
and unable
to modify the
table.
6.
7.
F. Insert
record/tuple
in existing
table.
Able to Insert
record/tuple in
existing table.
G. Modify record
in existing
table(s).
Able to modify
record in
existing
table(s).
Student can
Student can
understand
understand and
and able to
able to Insert
Insert
record/tuple in
record/tuple in
existing table
existing table
without being
after being
assisted.
assisted.
Student can
understand
and able to
Insert
record/tuple in
existing table
but complete
only some.
Student can
Student can
understand
understand
and able to
and able to
modify record
modify record
in existing
in existing
table(s)
table(s) after
Without being
being
assisted.
assisted.
Student can
understand
and able to
modify record
in existing
table(s).but
complete
only some.
Student can
understand
but unable to
Insert
record/tuple in
existing table.
Student did
not
understand
and unable
to Insert
record/tuple
in existing
table.
Student can
understand
but unable to
modify record
in existing
table(s).
Student did
not
understand
and unable
to modify
record in
existing
table(s)..