The words you are searching are inside this book. To get more targeted content, please make full-text search by clicking here.
Discover the best professional documents and content resources in AnyFlip Document Base.
Search
Published by MOHAMAD LUQMAN HAKIM MOHD ZAINUDIN, 2020-06-24 11:39:13

PBL2 -DBMS - (luqnic)

PBL2 -DBMS - (luqnic)

CIT-0573

Database Management System
(PBL 2)

Class: NWS Sem. 3 January 2020

Group:
Name: Mohamad Luqman Hakim Bin Mohd Zainudin
(NWS 19010059)
Name: Nicholas Yong Zhen Qi (NWS 19010034)
TTO’s Name: Ms. Norulmubarakah Ibrahim

Database Management System- CIT 0573

INDUSTRIAL ELECTRONICS DEPARTMENT

Table of Contents

1. Problem Statement ......................................................................................................... 3
2. Introduction..................................................................................................................... 4
3. screenshot er-diagram from pbl 1 ................................................................................... 5
4. screenshot (refer on above question) ............................................................................. 6
5. conclusion..................................................................................................................... 16
6. reference ......................................................................................................................... 17

Page 2 of 17

Database Management System- CIT 0573

INDUSTRIAL ELECTRONICS DEPARTMENT

1. Problem Statement
1. These tasks are continuing from previous title project that completed in PBL 1
2. Produce a report and system with Interface that compulsory include these following list

of criteria:

 Use SQL command to CREATE and INSERT VALUE manually using Microsoft
access
- Insert data for each table created with MAX row = 5 data

 Use appropriate data type and field size.

 Create SQL command(query) to run the following task
i) view data
ii) update data
iii) delete data

- Screenshot for each task and attach in report

 Create Form (Interface)
- Can use Microsoft Access or any software related to create interface. – Refer
youtube link given in GMI VLU
- Database engine can use any platform (example: Microsoft Access/ Xampp)
- Creativity; (will get extra mark)
- Screenshot and attach in report

Page 3 of 17

Database Management System- CIT 0573

INDUSTRIAL ELECTRONICS DEPARTMENT

2. INTRODUCTION
SQL is a language which is used to interact with relational database management system.
A database management system is a software application which is used for managing
different databases. It helps us to create and manage database. With the help of DBMS we
can do Data Security, Data Backup and Manages huge amount of data.
In this PBL 2, we will create a form interfaces in Microsoft Access, create SQL command,
and use appropriate data type and field size

Page 4 of 17

Database Management System- CIT 0573

INDUSTRIAL ELECTRONICS DEPARTMENT

3. SCREENSHOT ER-DIAGRAM FROM PBL 1

Page 5 of 17

Database Management System- CIT 0573

INDUSTRIAL ELECTRONICS DEPARTMENT

4. SCREENSHOT (REFER ON ABOVE QUESTION)
 Use SQL command to CREATE and INSERT VALUE manually using Microsoft
access
o Insert data for each table created with MAX row = 5 data
 Use appropriate data type and field size.

CUSTOMER
Create SQL Command
CREATE TABLE Customer
(
CustomerID text NOT NULL PRIMARY KEY,
CustomerType text,
CustomerName text
)

Insert SQL Command
INSERT INTO Customer VALUES ('NWS0034', 'regular', 'nicholas');

5 Data

Data Type

Page 6 of 17

Database Management System- CIT 0573

INDUSTRIAL ELECTRONICS DEPARTMENT

TICKET PURCHASEMENT
Create SQL Command
CREATE TABLE TicketPurchasement
(
PurchaseID text NOT NULL PRIMARY KEY,
SeatNumber text,
MovieID text NOT NULL,
CustomerID text NOT NULL,
TimeSlotID text NOT NULL
)

Insert SQL Command
INSERT INTO TicketPurchasement VALUES ('PAID01', 'A69', 'MV01', 'NWS0034',
'10PM-12PM');

5 Data

Data Type

Page 7 of 17

Database Management System- CIT 0573

INDUSTRIAL ELECTRONICS DEPARTMENT

MOVIE
Create SQL Command
CREATE TABLE Movie
(
MovieID text NOT NULL PRIMARY KEY,
MovieName Text,
MovieGenre Text,
MovieDuration Text,
MovieSynopsis Memo
)

Insert SQL Command
INSERT INTO Movie VALUES ('MV01', 'Joker', 'Thriller', '2h20m', 'Forever alone in a
crowd, failed comedian Arthur Fleck seeks connection as he walks the streets of
Gotham City');

5 data

Data Type

Page 8 of 17

Database Management System- CIT 0573

INDUSTRIAL ELECTRONICS DEPARTMENT

TIMESLOT
Create SQL Command
CREATE TABLE TimeSlot
(
TimeSlotID time NOT NULL PRIMARY KEY,
StartTime time,
EndTime time,
StartDate date,
EndDate date
)

Insert SQL Command
INSERT INTO TimeSlot VALUES ('TS01', '10AM', '1PM', '1 JAN 2020', '1 FEB 2020');

5 Data

Data Type

Page 9 of 17

Database Management System- CIT 0573

INDUSTRIAL ELECTRONICS DEPARTMENT

HALL
Create SQL Command
CREATE TABLE Hall
(
HallNumberID text NOT NULL PRIMARY KEY,
SeatAmount int,
HallSize text,
MovieID text
)

Insert SQL Command
INSERT INTO Hall VALUES ('H001', 100, '50m x 50m', 'MV01');

5 data

Data Type

Page 10 of 17

Database Management System- CIT 0573

INDUSTRIAL ELECTRONICS DEPARTMENT

 Create SQL command(query) to run the following task
i) view data
ii) update data
iii) delete data
- Screenshot for each task and attach in report

CUSTOMER
View Data SQL Command(Method 1)
select CustomerID, CustomerType, CustomerName
from Customer
where CustomerID <='NWS0036'

View Data SQL Command(Method 2)
select CustomerType, CustomerName
from Customer
where CustomerType='Member'

View Data SQL Command(Method 3)
select CustomerID, CustomerName
from Customer

Page 11 of 17

Database Management System- CIT 0573

INDUSTRIAL ELECTRONICS DEPARTMENT

Update Data SQL Command
UPDATE Customer SET CustomerType = 'Member' WHERE CustomerID = 'NWS0035'

Delete Data SQL Command
DELETE FROM Customer WHERE CustomerID = 'NWS0038'

Page 12 of 17

Database Management System- CIT 0573

INDUSTRIAL ELECTRONICS DEPARTMENT

 Create Form (Interface)
- Screenshot and attach in report

CUSTOMER

TICKET PURCHASEMENT

Page 13 of 17

Database Management System- CIT 0573

INDUSTRIAL ELECTRONICS DEPARTMENT

MOVIE

TIMESLOT

Page 14 of 17

Database Management System- CIT 0573

INDUSTRIAL ELECTRONICS DEPARTMENT

HALL

Page 15 of 17

Database Management System- CIT 0573

INDUSTRIAL ELECTRONICS DEPARTMENT

5. CONCLUSION
In conclusion, learning SQL will allow you to do data manipulation, manage large pools of
data and data mining. Besides that, Proper database management systems help increase
organizational accessibility to data, which in turn helps the end users share the data quickly
and effectively across the organization.

Page 16 of 17

Database Management System- CIT 0573

INDUSTRIAL ELECTRONICS DEPARTMENT

6. REFERENCE
1. URL: https://app.lucidchart.com/
2. Magic Monk, March 6 2016, SQL with Microsoft Access 2016 lesson 1 - Create table,

https://www.youtube.com/watch?v=x3G4WeaIwJw
3. Magic Monk, March 6 2016, SQL with Microsoft Access 2016 lesson 2 - Inserting

records, https://www.youtube.com/watch?v=RF3awz2uhwo&t=218s
4. Magic Monk, March 6 2016, SQL with Microsoft Access 2016 Lesson 4 - Select query,

https://www.youtube.com/watch?v=IFr4jvt_ZZc
5. brian jayson umandap, Oct 7 2017, How to Create, Insert, Update, and Delete in

MsAccess using SQL, https://www.youtube.com/watch?v=_fehhVVGyiY
6. Magic Monk, March 6 2016, SQL with Microsoft Access 2016 Lesson 4 - Select query,

https://www.youtube.com/watch?v=IFr4jvt_ZZc
7. GCFLearnFree.org, April 9 2016, Access: Creating Forms,

https://www.youtube.com/watch?v=dEaQIrw3CZY
8. GCFLearnFree.org, April 9 2016, Access: Formatting Forms,

https://www.youtube.com/watch?v=5MMLzgfNSlU

Page 17 of 17


Click to View FlipBook Version