Professional Documents
Culture Documents
SESI 1 2021/2022: Jabatan Teknologi Maklumat Dan Komunikasi Politeknik Ungku Omar
SESI 1 2021/2022: Jabatan Teknologi Maklumat Dan Komunikasi Politeknik Ungku Omar
ARAHAN PENILAIAN:
1. Jawab semua / pilihan soalan dalam masa ……1.5…….minit/jam/hari
2. Jawapan adalah secara individu/berkumpulan (2 orang /kumpulan).
3. Kembalikan soalan setelah selesai menjawab / Soalan boleh disimpan oleh pelajar.
NO.
NAMA CLO MARKAH
PENDAFTARAN
01DDT20F2006 THAYALAN A/L RAMASAMY 1 -
2 / 20
3 -
Jumlah / 20
You are working with Delima IT Solution to complete a database project for House Rental. Help
your team members to prepare a manual consist of step-by-step instruction and SQL commands for
the House Rental system. Write the appropriate MySQL command and screenshot the output to
show the steps taken based on the following steps / procedures:
Steps / Procedures:
a) Create a database name as DelimaHouseDB.
b) Create all the tables with description details shown in Figure 1.0. Display all the table’s
descriptions.
CUSTOMER
OWNER
HOUSE
RENT
Figure 1.0
LABORATORY TASK 3 DFC 20123 DATABASE DESIGN
c) Write the SQL statement to insert data into the tables as shown in Figure 2.0.
CUSTOMER
OWNER
HOUSE
RENT
Figure 2.0
LABORATORY TASK 3 DFC 20123 DATABASE DESIGN
d) Display all records that have been inserted into all tables.
e) Write SQL query display the result for the following situation:
INSTRUCTION:
Based on the given scenario, follow the steps to complete the task and screenshot all the SQL
statement and result’s table which consist of:
a) SQL statement for DDL process (create database and tables)
b) Description for each table’s information
c) SQL statement to inserting data for each table
d) All data for each table
SQL statement for create and using Shows the correct SQL
Shows the correct SQL Shows the correct SQL Shows the incorrect SQL
statement for creating and
database statement for creating and statement for creating statement for creating and [ ]/4*5
using database with
using database. database only. using database.
screenshot.
Create all tables Create all tables Create all tables Create tables
completely and shows the completely and shows the completely and shows the incompletely and shows
SQL statement for create table and
correct description correct description correct description the incorrect description
view description for each table’s [ ] / 4 * 20
(variable and data type) (variable and data type) (variable and data type) (variable and data type)
information
for all tables with perfect for all tables with suitable for at least 2 tables. for tables.
domain constraint. domain constraint.
Shows the correct and Shows the correct or Shows the correct or Shows the incorrect or
SQL statement inserting data for complete SQL statement complete SQL statement complete SQL statement incomplete SQL
for inserting data for all for inserting data for all for inserting data for at statement for inserting [ ] / 4 * 20
each table
tables. tables. least 2 tables. data for tables.
Shows the correct and Shows the correct or Shows the correct or Shows the incorrect or
SQL Statements for situation complete SQL statement complete SQL statement complete SQL statement incomplete SQL [ ] / 4 * 25
for all situations for all situations for at least 2 situations statement for situations
Shows the complete and Shows the complete or Shows the complete or
Shows the incomplete
Screenshot output for the situation correct screenshot for all correct screenshot for all correct screenshot for at [ ] / 4 * 20
screenshot for situations
the situations the situations least 2 situations
[ ] / 100 [ ] / 100 * 20
TOTAL MARKS [ ] / 20