View
214
Download
0
Tags:
Embed Size (px)
Citation preview
cingular cingular wirelesswireless
Jennifer Conanan Ilya Dvoiris Saurabh Sangla
Tariq Shaikh Nancy Tariga Yenny Usman Wen Wang
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Overview
• Company Profile• Proposal• EER Diagram• Relational Schema• Normalization• Queries• Conclusion
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Company Profile
•Cingular Wireless is the second largest wireless company in the U.S.
•Cingular Wireless is a joint venture between the domestic wireless divisions of SBC and BellSouth. SBC owns 60 percent of the company and BellSouth owns 40 percent, based on the value of the assets both contributed to the venture.
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Project Proposal
• Design a database system for a Cingular Wireless Warehouse in Dublin, California– Keep track of about 50 various
electronic components of the transmission boxes
– Determine the geographical placement of the transmission boxes
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
EER Diagram
(0,N)
by
REFURBISHED
represents
DISTRIBUTOR
made byPRODUCT
NEW
d
from
requestsis type of
includes ORDER
INVENTORY ITEM
placed by
EMPLOYEE
ANTENA
CABINET
has
connected to
WIRES
V3
V4
HI-CAP
placed at
GEOGRAPHICALCOORDINATES
has LOCATION
what typeOTHER
PART REPLACEMENT
JOB
done at
assigned to
tests
FIELD TECH
OTHERWAREHOUSE
WORKER
uses
TRUCK
RADIO
BATTERY
COMBINER
SIGNALAMPLIFIER
d
d
d(1,1)
(1,1)
(1,1)
(0,N)
(0,N)
(1,N)
(0,N)
(1,N)
(1,1)
(0,N)
(1,1)
(1,1)
(0,N)
(0,N)
(2,2)
(1,N)
(1,1)
(1,N)
(1,1)
(0,N)
(0,N)
(1,1)
(1,1)
(1,1)
(1,N)
(1,N) (1,N)
(1,1)
(1,N)
longitude/latitude
JID
WID
RID
BID
ComID
SAID
AID
CID
PID
TID
NID RID
MID
DID
OID
(1,1 )
has
has
(1,1)
(0,N)
(0,N)(1,N)
d
PART TYPE
(0,N)
(1,N)
d
MANUFACTURER
attached to
(0,N)
EER EER DiagramDiagram
(0,N)
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Relational Schema
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
1 LocationLID address city state zip country description period_between_maintenance last_date_of_maintenance X Y
2 AntennawarehouseID type range frequency
3 BatterywarehouseID type
4 Location_Of_PartwarehouseID LID
5 CabinetwarehouseID type LID Range
6 CombinerwarehouseID
7 DistributorDID companyname contactname phone email fax fixedordercost leadtime desc
8 Distributor_Represents_ManufacturerDID MID
9 EmployeeEID ssn fname lname mname salary hiredate phone email in_out
10 FieldTechSpecializationFTID Specialization
11 FieldTech_EmployeeEID FTID
12 FieldTechUsesTruckwarehouseID FTID mileage
13 FieldTechTestsPartwarehouseID FTID
14 InventoryIID warehouseID TimeIn TimeOut
15 JobJID LID FTID starttime endtime
16 Job_Descriptiondescription specialtool
17 MadeBywarehouseID MID
18 ManufacturerMID name email fax address city state zip country
19 NewwarehouseID warranty price
20 OrderOID EID DID warehouseID date
22 PartReplacementPartReplacedID ReplacingPartID JID
26 Refurbished warehouseID warranty price
24 ProductwarehouseID MID OID
21 TruckwarehouseID make model year lastdateofmaintenance PeriodBetweenMaintenance
23 PartTypewarehouseID PID DID partname holdingCost length width height
25 RadiowarehouseID
27 SignalAmplifierwarehouseID
28 V3warehouseID
29 V4warehouseID
30 WarehouseWorkerEID WID
31 HicapwarehouseID
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Normalization
2nd Normal Form
FD1
FD2
3rd Normal Form
JobJID LID FTID startdate enddate description
JobJID LID FTID startdate enddate specialtool description
Job_Description specialtool description
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Queries
1.Service coverage2.Economic Order Quantity3.Scheduled Maintenance of Location4.Special tools5.Field Technician Specialization
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Coverage Query
Checks to see if a certain area has Cingular coverage; if it does, lists the Location ID, along with the address and city of all transmission boxes that cover the specified area.
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Coverage Query
• Identify transmission towers and radius of coverage
• Identify if any tower(s) provide service to the specified point
• Calculate the distance between the specified point and each tower
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Coverage Query
- 4.1 Calculate DistanceSELECT LC.LID, (Sqr((LC.X-Xparameter)^2 + (LC.Y-Yparameter)^2)) AS DIST,LC.rangeFROM LocationsofCabinets AS LC;
- 4.2 Locations of CabinetsSELECT [Location].[LID], [Location].[X], [Location].[Y], c.rangeFROM Location, Cabinet AS cWHERE c.LID = [Location].[LID];
- 4.3 CoverageSELECT [CD.LID] AS LID,L.address, L.cityFROM Location AS L, CalculateDistances AS CDWHERE CD.Dist<CD.Range AND CD.LID = L.LID;
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Coverage Query
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Coverage Query
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Lists the PID, part name, the EOQ, and the current inventory level of each item.
Minimizes the amount of orders so that total variable costs required to order and hold inventory are balanced
EOQ = 2 * Ordering Cost * Demand Holding Cost
EOQ Query
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
EOQ Query
– 2.1 DemandSELECT o.warehouseid, p.pid, p.partname, o.dateFROM [order] AS o, parttype AS pWHERE (((o.warehouseid)=p.warehouseid));
– 2.2 Fixed CostSELECT o.warehouseid, p.pid, p.partname, o.dateFROM [order] AS o, parttype AS pWHERE (((o.warehouseid)=p.warehouseid));
– 2.3 Holding CostSELECT DISTINCTROW sqr(1/[holdingcost]) AS holding, [pid], [did]FROM parttype;
- 2.4 CountSELECT count([warehouseid]) AS [count], [pid]FROM demandGROUP BY [pid];
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
EOQ Query
- 2.4 EOQPARAMETERS Forms![EOQ]!BeginningDate DateTime, Forms![EOQ]!BeginningDate_plus_one_year DateTime;SELECT DISTINCT PT.PID, (([holdingcost].[holding])*([count].[count])*([fixedcost].[sqrt_fc])) AS EOQ, i.Inventory, PT.PARTNAMEFROM holdingcost, demand, parttype AS pt, Fixedcost, INVENTORY_levels AS i, [count]WHERE pt.pid=[demand].[pid] And [holdingcost].[pid]=[demand].[pid] And [holdingcost].[did]=[fixedcost].[did] And [Forms]!EOQ!BeginningDate<=[demand].[date] And [Forms]![EOQ]!BeginningDate_plus_one_year>=[demand].[date] And [count].[pid]=[holdingcost].[pid] And i.pid=[holdingcost].[pid];
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
EOQ Query
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
EOQ Query
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Scheduled Maintenance
Query
PARAMETERS Forms![date Dialog]![Date] DateTime;SELECT [lid], [address], [city], [state], [zip], [country],
([LastDateofMaintainence]+[PeriodBtwMain]) AS Scheduled_DateFROM locationWHERE [Forms]![date Dialog]!Date>=([LastDateofMaintainence]+[PeriodBtwMain]);
Lists locations and their addresses that are scheduled for maintenance by a given date
Allows for scheduling of field technicians to be more efficient and to keep proper inventory levels of parts required more maintenance jobs
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Scheduled Maintenance
Query
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Scheduled Maintenance
Query
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Special Tool Query
Lists the special tools needed for each type of job
Allows the technician do the job more efficiently by immediately knowing which tools are needed without having to retrieve unnecessary ones.
SELECT JD.specialtoolFROM jobdesciption AS JDWHERE JobDesc = JD.description;
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Special Tool Query
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Special Tool Query
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
FT Specialization Query
Retrieve the FT id, last name, first name, email and phone number of those who are qualified to do a specific job
Allows warehouse workers to quickly find which technician is able to repair specific parts
SELECT E.EID, E.FNAME, E.LNAME, E.email, E.phoneFROM employee As E, FieldtechSpecialization AS FTS, FieldTechEmployee AS FTEWHERE FTE.EID=E.EID And FTE.FTID=FTS.FTID And specific = FTS.specialization;
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
FT Specialization Query
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
FT Specialization Query
overview eer diagram
company profile
queries conclusion
proposal
queriesnormalizationrelational schema
Conclusion
• Company Profile• Proposal• EER Diagram• Relational Schema• Normalization• Queries• Conclusion
Any questions?
Any questions?