Saturday, March 19, 2011

Week 7


Nation Warehouse is supplier that supplies many kinds of product to retailers. All stocks are supply by many manufacturers depends on types of products before its distributed to all retailers.
Currently, this company is using manual system to store information on inventory and stock delivery where by the process of ordering the products on will be done when stock is reach required level and its calculated based on quantity left at the rack. This process is consumes a lot of time and the company decided to develop a database system to assist them in storing and updating related information.
The following are requirements for the system
All information about manufactures need to be stored such as manufacturer ID, company name, address, telephone number and fax number.
Inforamtion about retailers also need to be kept such as retailer ID, company name, address, telephone number, and fax number.
Product information also will recorded such as product code, type of product, product name, selling price, retail price and quantity in stock.
All information of each order that made to manufacturer need to be recorded such as order number, date of order, quantity ordered for each product code and overall total.
All information for delivering products ordered made by the manufacturer need to be kept such as delivery number, date of delivery, overall total, manufacturer ID. Each delivery made can contain many kind of products and must have product code, quantity delivered for each product, delivery number and sub total.
Information about purchasing made by the retailers also needs to be kept such as product code, retailers ID, quantity and subtotal. Invoice will be giving to the retailer that contains invoice number, invoice date and overall total.
Trace Entities
1.  Manufacturer ( manufacturer_id <PK> , company name , address, telephone number, fax number )
 2. Retailers ( retailers_ID <PK> , company name, address, tel_no , fax_no )
3. Product ( product_code <PK> , type of product, product_name, selling_price, retail_price, quantity)
4. Order ( order_no <PK>, date of order, quantity_order, total )
5. Delivery ( delivery_no, date of delivery, total, manufacturer_ID<FK>, product_code<FK>, quantity_delivered)
6. Purchase ( product_code<PK> , retailers_ID, quantity, quantity, total )
7. Invoice (Invoice_no, Invoice_date, total )


Photobucket


Productif Sepakat is a company that specialized in organizing many programs and activities to youth and teenagers, Most of them are arranged by government or private sector. All programs are concerning on self grooming development of youth and youngster.
You are required to create ERD based on the requirements specification below :
a)     Company is organizing many kinds of program and the information about program that need to be kept are program code, name of the program, type of program,date the program held, end date, venue, duration and budget allocation.
b)      Each programs organized has sponsored company that sponsored the cost of the programs. Sponsored company may come from government sector and private sector. The information held about sponsored company are sponsor code, name of the sponsor, address, telephone number, fax number and contact person name.
c)       One sponsored company may sponsor more than one program and each program may sponsor by more than one company. Total of sponsorship given by the company will recorded
d)      Candidate that is interested in attending the programs needs to register by giving the important personal details such as candidate’s name , address, house number phone, hand phone number, and office phone number. Candidate can be individually or group of staff form company. Each candidate is identified by a unique candidate code
e)      Candidate is allow to register on more than one one program
f)       Each programs has many volunteers who are assisting the company in running the program smoothly. Information kept for a volunteer is volunteer code, name of volunteer, address and phone number. Volunteers can participates in more than one program. Time , day, and date need to be recorded for every participation
g)      All information about facilitator involved in each program need to berecorded such as facilitator code, facilitator name, address and phone number.
h)      Each facilitator is offered to handle more than one program and each program can be handle by many facilitator. Name of the activity in each program handled by the facilitator, time, dateand also day need to be recorded  



Photobucket

Week 6

Photobucket

Based on the figure above, create a complete ERD which includes entities, attributes, relationship, relational keys, and cardinalities constrains.
Trace Entities
1. Payment ( Payment_no , Total Payment , Holiday_no )
2. Holiday Maker ( Holiday_no , name )
3. Booking ( Holiday_no , Plot_name , Booking_no , Booking_date , Invoice_No )
4. Invoice ( Invoice , date )
5. Site ( Site_no , Site_name )
6. Plot (Plot_no , Site_no )




Photobucket

Section B



Photobucket

Question 2

Photobucket

Draw A complete ERD

Photobucket

Question 3
A.) What is the meaning of database and databased management system (DBMS)
B.) The are 4 type of attributes. List down and give definition, example and symbol

Answer
A. Database is a collection of related data, design to meet the information needed in an organization and stored it in one specific location. Database Management System (DBMS) is a collection of programs that enables user to create and maintain a database and provide control accsess to database.
B.
i. entity attributes (example table)
ii. simple attributes (example field name)
iii. Multivalue attributes (examples telephone no, mobile no)
iv. Derive attributes (example date)

Week 5

Draw A Complete ER Diagram for the following :
A.) A customer reserve a data for maintenance or repairs to a vehicles. The reservation is given a reservation number, customer id, and vehicles no, are recorded with reservation.The time of reservation is also recorded.

B.) Information stored about customer includes customer id, customer name, address, and telephone no.

C.) Information kept about the vehicles includes vehicles no, make Reg No and Date of Manufacturer

D.) After examination, a number of job are recorded for the vehicles. Each job has a job no, within the booking, and the reasons for carrying out the job are recorded as why-needed.

E.) The pairs used for each job and time on each job are also recorded

F.) The information about part includes Part No and Price
…………………………………………………………………………………………………………
Step
1. Find the entities
2. Sketch ERD
3. Relationship
4. Cardanality Constraint
5. Attribute
6. Primary Key/ Foreign Key
Entities
1. Custom ( customer_id , customer name, address, and telephone_no )
2. Vehicles ( vehicles_no , make , Reg_No , and Date of Manufacturing )
3. Reservation (reservation_no , customer_id , vehicles _no , time of reservation)
4. Job (job_no and why_needed)
5. Part (part_no , price, and time_spent)


Photobucket

Week 4

Entity Relationship Diagram (ERD/ER Model)

Photobucket
Notation Of ER Model

Photobucket
Element Of ER

Photobucket
Type of Attribute

Photobucket
Type Of Attributes And Its Defination

Cardanality Constraint
1: M    => one to many
M : 1   => many to one
M : M => many to many
1 : 1    => one to one

Relational Key
Enables us to link the tables together in a database for easier data access storage

Photobucket
Types Of Relational Keys

Week 3


Table Name
Field Name
Data Type (size)
Relational Key
Customer
Cust_NO
Text (6)
Primary Key

Cust_IC
Text (12)


Cust_Name
Text (50)


Cust_Address
Text (100)


Cust_Mobile
Number

Product
ID_ Product
Text (5)
Primary Key

Product Name
Text (100)


Cust_No
Text (6)
Foreign Key
Booking
Booking_No
Text (6)
Primary Key

Book_Date
Date/Time


PerPriceUnit
Number


Quantity
Number


GrandTotal
Number


Payment_Status
Yes/No


Payment_Date
Date/Time


ID_Product
Text (5)
Foreign Key
Delivery
ID_Delivery
Text (6)
Primary Key

Delivery_Date
Date/Time


Delivery_Status
Yes/No


TypeOfDelivery
Text (50)


Booking_No
Text (6)
Foreign Key

Photobucket
Customer Table

Photobucket
Product Table

Photobucket
Booking Table

Photobucket
Delivery Table

Photobucket
Product Subform

Photobucket
Product Subform 2

Photobucket
Booking Subform

Photobucket
Booking Subform 2

Photobucket
Booking Resit

Photobucket
Booking Resit 2

Photobucket
Payment Resit

Photobucket
Payment Resit 2

Photobucket
Customer Form

Thursday, February 10, 2011

Step to Open Microsoft Access and Create Table in Design View






Change View



Query Wizards



List Of All Field and Its Description

Input Mask :
A pattern for all data to be entered in this field

Caption :
The label for the field when used on a form. If you dont
enter a caption, the field name is used as the label.
F1 for help on captions.

Default Value :
A value that is automatically entered in this fields for
new records.

Validation Rule :
An expression that limits the values that can be entered
in the field. F1 for help on validation rules

Validation Text :
The error message that appears when you enter a value
prohibited by the validation rule. F1 for help on
validation text.

Required :
Require entry in this field?

Allow Zero Lenght :
Allow zero-length strings in this field?

Indexed :
An index speeds up searches and sorting on the field ,
buta may slow updates. Selecting "Yes- No Duplicates"
prohobits dupicate values in the field. F1 for help on
indexed fields.

Unicode Compression :
Allow unicode compression for this field?

IME Mode :
Which IME mode do you want ti set when the focus is moved
to the field?

IME Sentence Mode :
Which IME sentence mode do you want to set when the
is moved to the field?

Smart Tags :

Smart Tags to be applied to this field.

Text Align :
Alignment of text in control