0% found this document useful (0 votes)
14 views5 pages

Dfc20283 DF Pw2

This document outlines a practical assessment for a Database Fundamentals course focusing on Structured Query Language (SQL). Students are required to create and manipulate a database using MySQL, with specific tasks related to database creation, data insertion, and querying. The assessment is scheduled for April 13, 2025, and is worth a total of 20 marks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views5 pages

Dfc20283 DF Pw2

This document outlines a practical assessment for a Database Fundamentals course focusing on Structured Query Language (SQL). Students are required to create and manipulate a database using MySQL, with specific tasks related to database creation, data insertion, and querying. The assessment is scheduled for April 13, 2025, and is worth a total of 20 marks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

DEPARTMENT OF INFORMATION TECHNOLOGY AND COMMUNICATION

DFC20283 & DATABASE FUNDAMENTALS


LECTURER NAME MAZLINA BINTI MUSTAPHA

TYPE OF ASSESSMENT PRACTICAL WORK 2

TOPIC STRUCTURED QUERY LANGUAGE

DURATION 2 HOURS

DATE OF ASSESSMENT 13/04/2025

NAME REGISTRATION NO.

STUDENT’S INFORMATION

TOTAL MARKS CLO 2 /20 MARKS


DFC20283 DATABASE FUNDAMENTALS

PRACTICAL WORK 2
Show a well-structured database using the database query to
manipulate a database with an appropriate commercial Database
CLO 2 Management System (DBMS) in solving an organization’s P3, PLO 3
requirements.

A. OBJECTIVES

By the end of this practical, students should be able:


✔ To apply SQL commands to a database

B. LEARNING OUTCOME

At the end of this activity session, you should be able to:


1. Understand about DDL, DML, TCL and DCL

C. TOOLS

1. MySQL
D. INSTRUCTIONS

Answer all the questions referring to the Table 1 and Table 2.

i. Create database name ORDERING_SYSTEM. (1 mark)


ii. Create table CUSTOMER and table ORDER. (4 marks)
iii. Add phone_num column in the CUSTOMER table . (1 mark)
iv. Change the data type of the column name Age in the CUSTOMER table from int(2) to
varchar(2). (1 marks)
v. Insert all the data into table CUSTOMER and ORDER referring to the table given. (4 marks)
vi. List the minimum , maximum and average of the Amount in Table 2. (3 marks)
vii. Count the numbers of customer in a CUSTOMER table (1 mark)
viii. Update a record in the CUSTOMER column from Muthu to Muthusamy. (1 mark)
ix. Display only Cust_ID and Order_Date from ORDER table (1 mark)
x. Select all customers from table CUSTOMER, sorted accending by customer name (1 mark)
xi. Display all the data where customer name begin with ‘A’. (1 mark)
xii. Sum the Amount in the table ORDER. (1 mark)

Table 1

CUSTOMER

Cust_ID Cust_Name Age

C001 Adam 35

C002 Muthu 40

C003 Faez 32

C004 Rahman 30

C005 Azib 25
ORDER

Order-ID Cust_ID Order_Date Amount

Table 2
0001 C001 5/2/2023 10000

0002 C002 6/2/2023 20000

0003 C001 10/2/2023 50000

0004 C004 10/2/2023 40000

0005 C003 15/2/2023 30000


Nota : Item di dalam templat ini boleh diubahsuai mengikut struktur kurikulum yang berkuatkuasa dan boleh
disediakan secara digital ataupun bercetak.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy