Вы находитесь на странице: 1из 21

CONTINUING EDUCATION PROGRAM – CENTER FOR

COMPUTING AND INFORMATIN TECHNOLOGY


FACULTY OF ENGINEERING
UNIVERSITY OF INDONESIA

FAMILY MART

Created By : 1. Cloudio Ananta

2. Nadia Rizki

3. Syarifah Parameswara

Class : 2NAP1
Faculty : Mr. Dudy Fathan Ali, S.Kom

Semester : 2

Quarter : 2

Continuing Education Program Center for Computing and Information Technology

Faculty of Engineering, University of Indonesia

2015

i
PROJECT ON
Family Mart

Developed By

Name : Cloudio Ananta


Nadia Rizki
Syarifah Parameswara

Reg. No : 1510010222

NIIT

2
FAMILY MART

Start Date : March 31, 2016

End Date : April 10, 2016

Name Of The Coordinator : Mr. Dudy Fathan Ali, S. Kom

Name Of Developer : Cloudio Ananta


Nadia Rizki
Syarifah Parameswara

Date Of Submission : December 28, 2015

3
NIIT
CERTIFICATE

This is to certify that this report, titled Family Mart, embodies the original work
done by Cloudio Ananta,Nadia Rizki, and Syarifah Parameswara in partial
fulfillment of the course Requitment at NIIT.

Coordinator:

Mrs. Milyun Ni’ma Shoumi, M.Kom

4
ACKNOWLEDGEMENT
Authors have benefited lot from the feedback and suggestions given to us by Mrs.
Milyun Ni’ma Shoumi, M.Kom and other faculty members. Therefore, authors feel very
grateful that can be a part of this project.

Our Project assignment can not be good as it now without any help, feedback
and suggestion that given to us by our friends within the campus. So, authors say thank
you to all of them.

5
SYSTEM ANALYSIS

Bright Event House is a event organizer in Jakarta. The company organize many
event in every sectors like education events, food and beverages events , technology
events, workshop etc.

The management of Bright Event House realized that its dificult to maintain so
many data manually. Therefore, they invented some data systems based on sql
database query to facilitate the work. Features provided is a function for events,
employees, and many functions as a provider of output data that has been processed
by the system. So that all activity in the company can be conveyed easily and reduce
the risk of data error.

6
SYSTEM DATABASE DESIGN

Database Name: BrightEventHouse


Number Of Table: 5
Table Name:
1. Event Table
2. Customer Table
3. Fee Table
4. Project Leader Table
5. Schedule Table

7
SCHEMATIC DIAGRAM OF DATABASE
Database Name: BrightEventHouse

8
TABLE DESIGN
Database Name : ShowmanHouseInc

Field Name Data Type Width Description


Code of The Event -
EVENT_CODE    
Primary Key
EVENT_NAME Char 30 Name of The Event
EVENT_TYPE Char 20 Type of The Event
Code of Fee Event -
FEE_EVENT_ID Int  
Foreign Key
Code of The Customer -
CUST_ID Int  
Foreign Key
Code of The Project
PL_ID Int   Event Leader - Foreign
Key
Event Table

Field Name Data Type Width Description


Code of The Customer -
CUST_ID Int
Primary Key

NAME Char 30 Name of The Customer

ADDRESS Varchar 50 Address of The Customer

Customer Phone
PHONE Varchar 50
Number

Company of The
COMPANY Char 20
Customer

EMAIL Char 50 Email of The Customer

Customer Table

9
TABLE DESIGN

Field Name Data Type Width Description


Code of The Schedule - Primary
SCHEDULE ID Int  
Key
START_DATE Int   Start Date of the event
END_DATE Int   End Date of the event
LOCATION Char 30 Location of the event
Schedule Table

Field Name Data Type Width Description


FEE_EVENT_ID Int   Code of Fee Event - Primary Key
PRICE Int   Price Of The Event
FEE_DATE Int   The payment date
Fee Event Table

Field Name Data Type Width Description


Code of The Project Event
PL_ID Int  
Leader - Primary Key
NAME Char 30 Name of The Customer
PHONE Varchar 50 Project Event Phone Number
ADDRESS Varchar 50 Address of The PL
EMAIL Char 50 Email of The PL
Project Leader Table

10
VALIDATIONS PERFORMED

Validations Required Method(s) Used For


Validations
Event_code should be in this format:’[1-2][0- CHECK Constraint, like
9]’ statement
Event_name,event_type,fee_event_id, NOT NULL clause in the
Cust_id,pl_id,schedule_id should not left CREATE TABLE statement
blank
Event_type should be in this CHECK Constraint, in
format:’[Education],[Music],[Game], statement
[Others]’
Event Table

Validations Required Method(s) Used For Validations


Cust_id should be in this format: ‘[2- CHECK Constraint, like statement
3][0-9]’
Name,Addres,phone,company,email NOT NULL clause in the CREATE
should not be blank. TABLE statement
Phone should be entered in the CHECK Constraint, like statement
following format : ‘[0-9][0-9-]-[0-9]
[0-9][0-9]-[0-9][0-9][0-9][0-9]-[0-9]
[0-9][0-9]-[0-9] [0-9][0-9]’
Customer Table

Validations Required Method(s) Used For Validations


Schedule_id should be in this format: CHECK Constraint, like statement
‘[5-3][0-9]’
Start_date shouldbe before CHECK Constraint
end_date
End_date should be greater than CHECK Constraint
start_date
Location should be in this CHECK Constraint, in statement
format:’[Jakarta],[Bandung],
[Depok]’
Schedule Table
11
VALIDATONS PERFORMED

Validations Required Method(s) Used For Validations


Pl_ID should be in this format: ‘[3-4] CHECK Constraint, like statement
[0-9]’
Name,Addres,phone,company,email NOT NULL clause in the CREATE
should not be blank. TABLE statement
Phone should be entered in the CHECK Constraint, like statement
following format : ‘[0-9][0-9-]-[0-9]
[0-9][0-9]-[0-9][0-9][0-9][0-9]-[0-9]
[0-9][0-9]-[0-9] [0-9][0-9]’
Project Leader Table

Validations Required Method(s) Used For Validations


Fee_event_id should be in this CHECK Constraint, like statement
format: ‘[0-9]’
Price and Fee_date should not left NOT NULL clause in the CREATE
blank TABLE statement
Fee Event Table

12
E/R DIAGRAM

EVENT_NAME

EVENT_TYPE LOCATION

CUST_ID SCHEDULE_ID

PL_ID
START_DATE

EVENT 1 HAVE 1 SCHEDULE

FEE_EVENT_ID
END_DATE

1
EVENT_CODE EVENT_CODE
1

SCHEDULE_ID

PROCESS
1
HAVE EVENT_CODE

EVENT_CODE FEE_EVENT_ID

1 FEE_EVENT

PL_ID
PRICE

HOLD
NAME
FEE_DATE
CREW

PHONE
1

EVENT_CODE
ADDRESS
COSTUMER
EMAIL

COMPANY

CUST_ID PHONE

EMAIL
ADDRESS
NAME

13
SCRIPT
--Create Database

create database BrightEventHouse


on
primary
( Name = 'BrightPR',
Filename = 'C:\Users\lenovo\Desktop\CCIT NAP\Q2\project4\BrightPR.mdf',
size = 3MB, maxsize = 30MB, filegrowth = 10MB),

filegroup BirghtPR
(name = 'BrightPR_fg1',
Filename = 'C:\Users\lenovo\Desktop\CCIT
NAP\Q2\project4\BrightPR_fg1.ndf',
size = 5MB, maxsize = 10MB, filegrowth = 5MB)

log on
(name = 'BrightPR_log',
Filename = 'C:\Users\lenovo\Desktop\CCIT
NAP\Q2\project4\BrightPR_log.ldf',
size = 5MB, maxsize = 10MB, filegrowth = 5MB)

go

--Create Table
create table EventTable
(
event_code int constraint pkevent primary key (event_code)
constraint ckeventcode check (Event_Code like ('[1-2][0-9]')) ,
event_name char(30) not null,
event_type char(20) constraint ckevent_type check (Event_Type in
('Education','Music','Food','Social','Game','Others')),
fee_event_id int constraint fkfee_event_id foreign key references
feetable (fee_event_id)not null,
cust_id int constraint fkcust_id foreign key references
customertable (cust_id)not null,
pl_id int constraint fkpl_id foreign key references pltable
(pl_id)not null,
schedule_id int constraint fkschedule_id foreign key references
scheduletable (schedule_id)not null
)

create table CustomerTable


(
cust_id int constraint pkcust_id primary key (cust_id)constraint
ckcust_id check (cust_ID like ('[2-3][0-9]')),
name char(30) not null,
address varchar(50) not null,
phone varchar (50)constraint ckPhoneCust CHECK (Phone LIKE
('[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'))
NOT NULL,
company char(20)not null,
email char(50) not null
)

14
create table ScheduleTable
(
schedule_id int constraint pkschedule_id primary key (schedule_id)
constraint ckschedule check (Schedule_Id like ('[5-6][0-9]')),
start_date int not null,
end_date int not null,
location char(30) constraint ckLocation check (Location in
('Jakarta','Bandung','Depok'))
)

create table Pltable


(
pl_id int constraint pkpl_id primary key(pl_id) constraint ckpl_id
check (Pl_id like ('[3-4][0-9]')),
name char(30) not null,
address varchar(50) not null,
phone varchar(50) constraint ckPhone CHECK (Phone LIKE
('[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'))
NOT NULL,
email char(50) not null

create table feetable


(
fee_event_id int constraint pkfee_event_id primary key
(fee_event_id) constraint
ckfeevent check (Fee_Event_id like ('[0-9]')),
price int not null,
fee_date int not null
)

--Create Data Table


insert into feetable (fee_event_id,price,fee_date) values
('1','50000000','270516')
insert into feetable (fee_event_id,price,fee_date) values
('2','65000000','290515')
insert into feetable (fee_event_id,price,fee_date) values
('3','75000000','290516')
insert into feetable (fee_event_id,price,fee_date) values
('4','70000000','280216')
insert into feetable (fee_event_id,price,fee_date) values
('5','55000000','260215')
insert into feetable (fee_event_id,price,fee_date) values
('6','90000000','200316')
insert into feetable (fee_event_id,price,fee_date) values
('7','35000000','151116')
insert into feetable (fee_event_id,price,fee_date) values
('8','35000000','311215')
insert into feetable (fee_event_id,price,fee_date) values
('9','85000000','291215')
insert into feetable (fee_event_id,price,fee_date) values
('0','45000000','240515')

15
\\pl table
insert into pltable (pl_id,name,address,phone,email)
values ('31','Daniel','Bintaro 52
Street','082213755943','daniel@gmail.com')

insert into pltable (pl_id,name,address,phone,email)


values ('32','Andhika','Beji 40
Street','082213755947','andhika@gmail.com')

insert into pltable (pl_id,name,address,phone,email)


values ('33','Andhi kurnia','hj.salim 30
Street','082213759226','adhikurnia@gmail.com')

insert into pltable (pl_id,name,address,phone,email)


values ('34','Andhi kurnia','hj.salim 30
Street','082213759226','adhikurnia@gmail.com')

insert into pltable (pl_id,name,address,phone,email)


values ('35','rudi','Kembang 10
Street','082213754343','rudira@gmail.com')

insert into pltable (pl_id,name,address,phone,email)


values ('36','raphel','Kembang beji 41
Street','082243409226','raphellubis@gmail.com')

insert into pltable (pl_id,name,address,phone,email)


values ('37','lubis','Kembang bima 13
Street','082243404040','lubis986@gmail.com')

insert into pltable (pl_id,name,address,phone,email)


values ('38','rendi','jonggol 10
Street','082359010022','rendi@gmail.com')

insert into pltable (pl_id,name,address,phone,email)


values ('39','yogi pratama','beji kembang 50
Street','085264019559','ypratama@gmail.com')

insert into pltable (pl_id,name,address,phone,email)


values ('40','yodi','sutomo 15 Street','085354019226','yodi@gmail.com')

\\schedule

insert into scheduletable (schedule_id,start_date,end_date,location)


values ('51','130715','150715','Depok')

insert into scheduletable (schedule_id,start_date,end_date,location)


values ('52','130716','150716','Jakarta')

insert into scheduletable (schedule_id,start_date,end_date,location)


values ('53','131215','151215','Depok')

insert into scheduletable (schedule_id,start_date,end_date,location)


values ('54','181116','151116','Bandung')

16
insert into scheduletable (schedule_id,start_date,end_date,location)
values ('55','130715','150715','Jakarta')

insert into scheduletable (schedule_id,start_date,end_date,location)


values ('56','130715','150715','Jakarta')

insert into scheduletable (schedule_id,start_date,end_date,location)


values ('57','101015','151015','Bandung')

insert into scheduletable (schedule_id,start_date,end_date,location)


values ('58','301215','020116','Jakarta')

insert into scheduletable (schedule_id,start_date,end_date,location)


values ('59','111115','141115','Bandung')

insert into scheduletable (schedule_id,start_date,end_date,location)


values ('60','160715','190715','Depok')

select * from scheduletable

use BrightEventHouse
go
insert into CustomerTable (cust_id,name,address,phone,company,email)
values ('21','Patrick','Kuningan 45
Street','082234534390','Indofood','patrick@gmail.com')
insert into CustomerTable (cust_id,name,address,phone,company,email)
values ('22','Rian','Gading 78
Street','086565898965','Garuda','rian@gmail.com')
insert into CustomerTable (cust_id,name,address,phone,company,email)
values ('23','Fanny','Kemang 27 Street','083536254635','Go-
jek','fanny@gmail.com')
insert into CustomerTable (cust_id,name,address,phone,company,email)
values ('24','Hanna','Jakarta 67
Street','082354346589','Hayday','hanna@gmail.com')
insert into CustomerTable (cust_id,name,address,phone,company,email)
values ('25','Jane','Ciputat 33
Street','083432657867','Gameloft','jane@gmail.com')
insert into CustomerTable (cust_id,name,address,phone,company,email)
values ('26','Liam','Pondok Indah 56
Street','088876874556','JakartaPost','liam@gmail.com')
insert into CustomerTable (cust_id,name,address,phone,company,email)
values ('27','Pinky','Hindi 89
Street','086765876587','Gary','pinky@gmail.com')
insert into CustomerTable (cust_id,name,address,phone,company,email)
values ('28','Dane','Bintara 34
Street','085654658767','Erlangga','dane@gmail.com')
insert into CustomerTable (cust_id,name,address,phone,company,email)
values ('29','Jack','Tebet 44
Street','087867658434','Wonka','jack@gmail.com')
insert into CustomerTable (cust_id,name,address,phone,company,email)
values ('30','Pan','Dreamland 99
Street','085456763478','Kompas','pan@gmail.com')

17
Event Table
insert into EventTable
(event_code,event_name,event_type,fee_event_id,cust_id,pl_id,schedule_i
d)
values ('11','Superia','Social','1','21','31','51')
insert into EventTable
(event_code,event_name,event_type,fee_event_id,cust_id,pl_id,schedule_i
d)
values ('12','Famnight','Social','2','22','32','52')
insert into EventTable
(event_code,event_name,event_type,fee_event_id,cust_id,pl_id,schedule_i
d)
values ('13','Inbox','Music','3','23','33','53')
insert into EventTable
(event_code,event_name,event_type,fee_event_id,cust_id,pl_id,schedule_i
d)
values ('14','HipHorey','Music','4','24','34','54')
insert into EventTable
(event_code,event_name,event_type,fee_event_id,cust_id,pl_id,schedule_i
d)
values ('15','CampusHits','Education','5','25','35','55')
insert into EventTable
(event_code,event_name,event_type,fee_event_id,cust_id,pl_id,schedule_i
d)
values ('16','Edutown','Education','6','26','36','56')
insert into EventTable
(event_code,event_name,event_type,fee_event_id,cust_id,pl_id,schedule_i
d)
values ('17','Downtown','Game','7','27','37','57')
insert into EventTable
(event_code,event_name,event_type,fee_event_id,cust_id,pl_id,schedule_i
d)
values ('18','Dota','Game','8','28','38','58')
insert into EventTable
(event_code,event_name,event_type,fee_event_id,cust_id,pl_id,schedule_i
d)
values ('19','Pesvest','Game','9','29','39','59')
insert into EventTable
(event_code,event_name,event_type,fee_event_id,cust_id,pl_id,schedule_i
d)
values ('20','Foodveria','Food','0','30','40','60')

18
Event Table

Fee
Event Table

Customer Table

Schedule Table

19
Project LeaderTable

CONFIGURATION

20
Hardware: IntelR CoreTM i5-2348M CPU @ 2,30GHz 2,30 GHz, 4.00GB
RAM, 500 GB HDD, DVD Super Multi DL drive, Lenovo Z40 Series
802.11b/g/n,6 cell Li-ion battery

Operating System: Windows 8.0

Software: Microsoft Visio 2010, Microsoft Word 2010

PROJECT FILE DETAILS


S.No File Name Remarks
SQL Server database that
1 Brighteventhouse.word contains tables, procedure,
triggers, and queries

21

Вам также может понравиться