db ppt - 16 10

20
PRESTIGE INSTITUTE OF MANAGEMENT & RESEARCH Data Base Project PRESENTED BY : AMI T A AGRAW AL GHANESHWER JHARBADE SHERON GOY AL PRESENTED TO: PROF. DEEPAK JAROLIY A PRESENTATION on

Upload: ghaneshwer-jharbade

Post on 09-Apr-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 1/20

PRESTIGE INSTITUTE OF MANAGEMENT &

RESEARCH

Data Base Project

PRESENTED BY:

AMITA AGRAWAL

GHANESHWER JHARBADE

SHERON GOYAL

PRESENTED TO:

PROF. DEEPAK JAROLIYA

PRESENTATION

on

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 2/20

Company Scenario

We ar e making a database project f or  a  printing company 

³PRINT ZONE´ located in Indor e.

It  prints  packaging material f or various clients.

The working mainly involves  printing of  packing material f or  

medicines and chocolates.

It is a small company wher e all the things ar e managed

manually.

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 3/20

Purpose of the Project

We aim at  providing a desktop application f or  maintaining: 

Inventory Details

Client Details

Or der Details

Product Details 

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 4/20

CLIENT

ORDER

WEIGHING

COMPANY

BILLING

PRINTING

RAW

MATERIALINVENTORY

GIVES ORDER TO DOES

FOLLOWED

BY

RECEIVED BY

PROCESS

ACCORDING

TO

HAS

IS DISPATCHED TO

FOLLOWED BY

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 5/20

Client : It is any company who gives or der f or   printing.

Company : It r efers to ³PRINT ZONE´.

Or der  : It describes the quantity of  product r equir ed by customer .

Inventory : It is the stock  of various things within company.

R aw Material : It is stock  of f oils in differ ent type & size.

Printing : It is  process of  pr e paring  product.

Weighing : It is  process of measuring  printed product.

Billing : It is  process of  pr e paring f inal amount to  be tak en f rom client.

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 6/20

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 7/20

ENTITY DESCRIPTION

CLIENT

Def inition: A company having r equir ement of  printing that gives 

or der  to µPRINT ZONE¶.

Entity Type: Strong 

Functions:

To give or der  and  product details.

To collect the or der dispatched. To mak e  payment.

Attributes: C_  ID, C_  NAME, CONT _ PERSN,C_ ADD,

CONT _  NO, C_ EMAIL

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 8/20

ENTITY DESCRIPTION

PRODUCT

Def inition: The entity to  be  printed and dispatched, or can 

 be said as or der  given  by client.

Entity Type: Strong 

Functions:

To  be  printed and dispatched  by company.

It has clear  specif ications as  per client¶s need.

Attributes: P _ ID, P _  NAME,M _ TYPE, M _ SIZE,COLOR 

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 9/20

ENTITY DESCRIPTION

ORDER 

Def inition: The r equir ement  put f or war d  by client.

Entity Type: Strong 

Functions:

It is associated with a client and a  product.

It specif ies or der date, quantity of the  product to  be  printed.Attributes: ORDER  _ ID, C_ ID, PRODUCT _ ID, ORDER  _ DATE,

QUANTITY

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 10/20

ENTITY DESCRIPTION

PAYMENT

Def inition: The amount  paid  by client against the or der .

Entity Type: Weak  Functions:

Every  payment to  be made has a f inal settlement date.

Payment can  be done in cr edit.

Attributes: PAYMENT _ ID, ORDER  _ ID, AMT _ DEPO,

AMT _ DUE, SETTLEMENT _ DT, CLIENT _ ID

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 11/20

ENTITY DESCRIPTION

RAW MAT _ INVENTORY

Def inition: The stock  of cylinders and f oil k e pt as inventory in 

the company.

Entity Type: Strong

Functions:

Each unit in inventory has a specif ic material type and size.

It is used in making the f inal  product.

Attributes: M _ TYPE, M _ SIZE, STOCK_ QT

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 12/20

C_ ID C_  NAM

E

C_ ADD OFF _ P

H _  NO

CON

T _ 

PERS

 N

MOBILE

 _  NO

C_ EMAI

L

CLIENT

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 13/20

1st NORMAL FORM

C_ ID C_  NAME C_ ADD OFF _ PH

 _  NO

C_ EMAI

L

C_ ID CONT _ PERSO

 N

CONT _  NO

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 14/20

P _ ID C_ ID P _  NA

ME

M _ TY

PE

M _ SIZ

E

COLO

PRICE

 _ QUO

TE

PRODUCT

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 15/20

ORDER 

 _ ID

C_ I

D

PROD

UCT _ I

D

ORDE

R  _ DA

TE

QUANT

ITY

DISPAT

CH _ DA

TE

QUANT

ITY _ DI

SPATCH

ED

ORDER 

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 16/20

PAYMENT _ ID ORDER   _ ID AMT _ DEPO AMT _ DUE SETTLEMENT _ 

DT

CLIENT _ 

ID

PAYMENT

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 17/20

M _ TYPE M _ SIZE STOCK_ QT

RAW MAT_INVENTORY

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 18/20

QUERIES

Cr eate table client (³c _id´ var char (10)  primary k ey, ³c _name´

var char (20), ³c _add´ var char (30), ³off ice _no´ number (15),

³c _ email´ var char (20));

Cr eate table Client_ contact ( ³c _id´ var char (10) r efer ences client, ³cont_person´ var char (15) , ³mobile _no´ number  

(11));

Cr eate table product (³P _id´ var char (10)  primary k ey, ³c _id´

var char (10) r efer ences client , ³ prod _name´ var char (15),³material _type´ var char (15), ³material _size´ var char (10),

³color ́ var char (10) , ³ price´ number (10));

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 19/20

Cr eate table or der (³or der_id ´ var char (10)  primary k ey, ³c _id´

var char (10) r efer ences client, ³ p_id´ var char (10) r efer ences 

 product, ³or der_ date´ date, ³or der_ quantity´ number (10),

³dispatch _ date´ date, ³quantity_ dispatched´ number (10));

Cr eate table  payment (³ payment_id´ var char (10), ³or der_id´var char (10) r efer ences or der , ³client_id´ var char (10) r efer ences 

client, ³amt_ de po´ number (10), ³amt_ due´ number (10),

³settlement_ date´ date);

Cr eate table rawmaterial (³m_type´ var char (10), ³m_size´

var char (10), ³qunt_stock ́ number (10));

8/8/2019 db ppt - 16 10

http://slidepdf.com/reader/full/db-ppt-16-10 20/20

Insert into client values (³1´, ³Kshipra Drugs´, ³dewas´ ,

³07272557878´, ³[email protected]´);

Insert into client_ contact values(³1´,´Sanjay´,

³09826095578´);

Insert into  product ( ³1001´, ³1´ ,  ́panshi-d´, ³ blister  

f oil´,´152mm´,´single r ed´,´360´);

Select * f rom client;

Select * f rom client_ contact wher e client id = ³1´;