êóðñîâûå,êîíòðîëüíûå,äèïëîìû,ðåôåðàòû
Ãîñóäàðñòâåííûé óíèâåðñèòåò – Âûñøàÿ øêîëà ýêîíîìèêè
Ôàêóëüòåò áèçíåñ - èíôîðìàòèêè
Îò÷åò ïî êóðñîâîé ðàáîòå íà òåìó:
"Áàçà äàííûõ ÃÈÁÄÄ"
Âûïîëíèë ñòóäåíò
2 êóðñà 273(0) ãðóïïû
Íåñòåðîâ Ñåðãåé Âèêòîðîâè÷
Ïðåïîäàâàòåëü:
Ùåðáèíèí Îëåã Ïàâëîâè÷
Ìîñêâà 2010
Ñîäåðæàíèå
1. Îïèñàíèå ïðèêëàäíîé îáëàñòè
2. Îïèñàíèå ñòðóêòóðû
3. Îïèñàíèå áàçû äàííûõ
4. Çàïðîñû
Ñïèñîê ëèòåðàòóðû
1. Îïèñàíèå ïðèêëàäíîé îáëàñòè
Ïðèêëàäíîé îáëàñòüþ äàííîãî êóðñîâîãî ïðîåêòà ÿâëÿåòñÿ áàçà ÃÈÁÄÄ.
ß âûáðàë ýòó òåìó, ïîòîìó ÷òî ñàì ÿâëÿþñü âîäèòåëåì è çà÷àñòóþ îáùàþñü ñ ñîòðóäíèêàìè ÃÈÁÄÄ è ñëûøó ìíîæåñòâî èñòîðèé î íèõ è èõ ñèñòåìå ðàáîòû.
Äëÿ ïîëíîöåííîé ðàáîòû áàçû äàííûõ, íåîáõîäèìû ñëåäóþùèå ñóùíîñòè:
· Âîäèòåëü
· Âëàäåëåö
· Òðàíñïîðòíîå ñðåäñòâî
· VIN
· Ïðîòîêîëû íàðóøåíèé
Ôîðìóëèðîâàíèå îñíîâíîé öåëè ðàçðàáîòêè.
Îñíîâíîé öåëüþ äàííîé áàçû äàííûõ ÿâëÿåòñÿ óäîáíîå, áûñòðîå è êà÷åñòâåííîå îáðàùåíèå ñ èíôîðìàöèåé îá ó÷àñòíèêàõ äîðîæíîãî äâèæåíèÿ è èõ íàðóøåíèÿõ.
Òàêàÿ áàçà ìîæåò íàéòè ïðèìåíåíèå â õðàíåíèè èíôîðìàöèè î íåóêëîííî ðàñòóùèõ àâòîëþáèòåëÿõ.
Ïîìèìî õðàíåíèÿ èíôîðìàöèè, ïîëüçîâàòåëü áàçû äàííûõ ìîæåò îñóùåñòâëÿòü çàïðîñû íà âûáîðêó è ïîèñê èíôîðìàöèè.
Îñíîâíûå çàïðîñû, íà êîòîðûå îðèåíòèðîâàíà áàçà äàííûõ:
1. Çàïðîñ î âûâîäå âëàäåëüöà ïî íîìåðó ÏÒÑ
2. Çàïðîñ î âûâîäå èíôîðìàöèè î íàðóøåíèè è åãî ó÷àñòíèêå
3. Çàïðîñ î âûâîäå èíôîðìàöèè îá ó÷àñòíèêå íàðóøåíèÿ è ñóììà øòðàôà
4. Çàïðîñ ïî VIN êîäó èíôîðìàöèè î âëàäåëüöå è ñòðàõîâêå
5. Çàïðîñ ïî ãîñóäàðñòâåííîìó íîìåðó èíôîðìàöèè î ìàøèíå
6. Çàïðîñ ïî ïîèñêó âëàäåëüöåâ îïðåäåëåííûõ ìàðîê ìàøèí è ìîäåëåé
7. Çàïðîñ î íàëè÷èè ÎÑÀÃÎ è ÊÀÑÊÎ
Îïèñàíèå èñòî÷íèêîâ è ôîðì èñõîäíûõ äàííûõ
Èñòî÷íèêàìè ðàçðàáîòàííîé áàçû äàííûõ ÿâëÿþòñÿ äàííûå èç Èíòåðíåòà.
Ïîýòîìó íåëüçÿ ïîëíîñòüþ äîâåðÿòü äàííîé èíôîðìàöèè.
Òðåáîâàíèå ê ïðîãðàììíîìó îáåñïå÷åíèþ.
Èñïîëüçîâàëèñü ñëåäóþùèå ïðîãðàììû:
- Microsoft SQL Server 2005 Standart ver.9.0.1
- Computer Associated ERWin 4.0.
2. Îïèñàíèå ñòðóêòóðû
Òàáëèöà íàõîäèòñÿ â ïåðâîé íîðìàëüíîé ôîðìà, òîãäà è òîëüêî òîãäà, êîãäà íè îäíà èç åå ñòðîê íå ñîäåðæèò â ëþáîì ñâîåì ïîëå áîëåå îäíîãî çíà÷åíèÿ è íè îäíî èç åå êëþ÷åâûõ ïîëåé íå ïóñòî.
Îòíîøåíèå íàõîäèòñÿ âî âòîðîé íîðìàëüíîé ôîðìå, åñëè îíî ñîîòâåòñòâóåò ïåðâîé íîðìàëüíîé ôîðìå è âñå íå êëþ÷åâûå àòðèáóòû ôóíêöèîíàëüíî ïîëíî çàâèñÿò îò ïåðâè÷íîãî êëþ÷à.
Îòíîøåíèå íàõîäèòñÿ â òðåòüåé íîðìàëüíîé ôîðìå, åñëè îíî ñîîòâåòñòâóåò âòîðîé íîðìàëüíîé ôîðìå, è â íåì íåò òðàíçèòèâíûõ ñâÿçåé.
Íà ïðàêòèêå â áîëüøèíñòâå ñëó÷àåâ òðåòüÿ ôîðìà íîðìàëèçàöèè ÿâëÿåòñÿ íåîáõîäèìîé è äîñòàòî÷íîé.
3.Îïèñàíèå áàçû äàííûõ
Ñõåìà äàííûõ â SQL Server 2005.
ER-ìîäåëü â Erwin.
Logical
Physical
Òàáëèöà îñíîâíûõ ñóùíîñòåé
Îñíîâíûõ ñóùíîñòåé äëÿ ìîåé áàçû äàííûõ íåîáõîäèìî òðè:
· Ñóùíîñòü ñ èíôîðìàöèåé î âîäèòåëå
· Ñóùíîñòü ñ èíôîðìàöèåé î âëàäåëüöå
· Ñóùíîñòü ñ èíôîðìàöèåé î VIN
· Ñóùíîñòü ñ èíôîðìàöèåé î ÒÑ
· Ñóùíîñòü ñ èíôîðìàöèåé î íàðóøåíèÿõ
Âîäèòåëü
Âëàäåëåö
VIN
Ïðîòîêîë
Òðàíñïîðòíîå ñðåäñòâî
4. Çàïðîñû
Ðàçðàáîòêà SQL-çàïðîñîâ
1. Çàïðîñ î âûâîäå âëàäåëüöà ïî íîìåðó ÏÒÑ
SELECT Âëàäåëåö_ÏÒÑ.Íîìåð_ÏÒÑ, Âëàäåëåö.Ôàìèëèÿ, Âëàäåëåö.Èìÿ, Âëàäåëåö.Îò÷åñòâî, Âëàäåëåö.Äàòà_Ðîæäåíèÿ
FROM Âëàäåëåö_ÏÒÑ INNER JOIN
Âëàäåëåö ON Âëàäåëåö_ÏÒÑ.ID_Âëàäåëåö = Âëàäåëåö.ID_Âëàäåëåö
2. Çàïðîñ î âûâîäå èíôîðìàöèè î íàðóøåíèè è åãî ó÷àñòíèêå
SELECT Âëàäåëåö.Ôàìèëèÿ, Âëàäåëåö.Èìÿ, Âëàäåëåö.Îò÷åñòâî, Íîìåð_Ïðàâ.Íîìåð_Ïðàâ, Ïðîòîêîë.ID_Ïðîòîêîë, Ïðîòîêîë.Äàòà_Íàðóøåíèÿ,
Ïðîòîêîë.Ìåñòî_Íàðóøåíèÿ, Ïðîòîêîë.Ñóùíîñòü_Íàðóøåíèÿ, Ïðîòîêîë.Ñóììà_Øòðàôà, Ïðîòîêîë.Ëèøåíèå, Ïðîòîêîë.Äàòà_Îïëàòû
FROM Íîìåð_Ïðàâ INNER JOIN
Øòðàô_Ïðîòîêîë ON Íîìåð_Ïðàâ.ID_Øòðàô = Øòðàô_Ïðîòîêîë.ID_Øòðàô INNER JOIN
Ïðîòîêîë ON Øòðàô_Ïðîòîêîë.ID_Ïðîòîêîë = Ïðîòîêîë.ID_Ïðîòîêîë INNER JOIN
Âîäèòåëü ON Íîìåð_Ïðàâ.Íîìåð_Ïðàâ = Âîäèòåëü.Íîìåð_Ïðàâ INNER JOIN
Âëàäåëåö ON Âîäèòåëü.ID_Âëàäåëåö = Âëàäåëåö.ID_Âëàäåëåö
3. Çàïðîñ î âûâîäå èíôîðìàöèè îá ó÷àñòíèêå íàðóøåíèÿ è ñóììà øòðàôà
SELECT Âëàäåëåö.Ôàìèëèÿ, Âëàäåëåö.Èìÿ, Âëàäåëåö.Îò÷åñòâî, Íîìåð_Ïðàâ.Íîìåð_Ïðàâ, Ïðîòîêîë.ID_Ïðîòîêîë, Ïðîòîêîë.Äàòà_Íàðóøåíèÿ,
Ïðîòîêîë.Ìåñòî_Íàðóøåíèÿ, Ïðîòîêîë.Ñóùíîñòü_Íàðóøåíèÿ, Ïðîòîêîë.Ñóììà_Øòðàôà, Ïðîòîêîë.Ëèøåíèå, Ïðîòîêîë.Äàòà_Îïëàòû
FROM Íîìåð_Ïðàâ INNER JOIN
Øòðàô_Ïðîòîêîë ON Íîìåð_Ïðàâ.ID_Øòðàô = Øòðàô_Ïðîòîêîë.ID_Øòðàô INNER JOIN
Ïðîòîêîë ON Øòðàô_Ïðîòîêîë.ID_Ïðîòîêîë = Ïðîòîêîë.ID_Ïðîòîêîë INNER JOIN
Âîäèòåëü ON Íîìåð_Ïðàâ.Íîìåð_Ïðàâ = Âîäèòåëü.Íîìåð_Ïðàâ INNER JOIN
Âëàäåëåö ON Âîäèòåëü.ID_Âëàäåëåö = Âëàäåëåö.ID_Âëàäåëåö
WHERE Ïðîòîêîë.Ñóììà_Øòðàôà >1500
4. Çàïðîñ ïî VIN êîäó èíôîðìàöèè î âëàäåëüöå è ñòðàõîâêå
SELECT ÏÒÑ_VIN.VIN, Âëàäåëåö.Ôàìèëèÿ, Âëàäåëåö.Îò÷åñòâî, Ñòðàõîâêà.ID_Ñòðàõîâêà, Ñòðàõîâêà.Ñ, Ñòðàõîâêà.Ïî, Ñòðàõîâêà.ÊÀÑÊÎ, Ñòðàõîâêà.ÎÑÀÃÎ
FROM ÏÒÑ_VIN INNER JOIN
Âëàäåëåö_ÏÒÑ ON ÏÒÑ_VIN.Íîìåð_ÏÒÑ = Âëàäåëåö_ÏÒÑ.Íîìåð_ÏÒÑ INNER JOIN
Âëàäåëåö ON Âëàäåëåö_ÏÒÑ.ID_Âëàäåëåö = Âëàäåëåö.ID_Âëàäåëåö INNER JOIN
Âîäèòåëü ON Âëàäåëåö.ID_Âëàäåëåö = Âîäèòåëü.ID_Âëàäåëåö INNER JOIN
Ñòðàõîâêà ON Âîäèòåëü.ID_Ñòðàõîâêà = Ñòðàõîâêà.ID_Ñòðàõîâêà
5. Çàïðîñ ïî ãîñóäàðñòâåííîìó íîìåðó èíôîðìàöèè î ìàøèíå
SELECT Íîìåð_Äâèãàòåëÿ.Íîìåð_Äâèãàòåëÿ, Íîìåð_Äâèãàòåëÿ.Ìîùíîñòü_ë_ñ, Íîìåð_Äâèãàòåëÿ.Îáúåì, Íîìåð_Äâèãàòåëÿ.Ìàðêà, Íîìåð_Äâèãàòåëÿ.Ìîäåëü,
Íîìåð_Äâèãàòåëÿ.Ãîä_Âûïóñêà, ÏÒÑ_Ãîñ_Çíàê.Ãîñ_çíàê, VIN.VIN
FROM Íîìåð_Äâèãàòåëÿ INNER JOIN
VIN ON Íîìåð_Äâèãàòåëÿ.Íîìåð_Äâèãàòåëÿ = VIN.Íîìåð_Äâèãàòåëÿ INNER JOIN
ÏÒÑ_VIN ON VIN.VIN = ÏÒÑ_VIN.VIN INNER JOIN
ÏÒÑ_Ãîñ_Çíàê ON ÏÒÑ_VIN.Íîìåð_ÏÒÑ = ÏÒÑ_Ãîñ_Çíàê.Íîìåð_ÏÒÑ
6. Çàïðîñ ïî ïîèñêó âëàäåëüöåâ îïðåäåëåííûõ ìàðîê ìàøèí è ìîäåëåé
SELECT Âëàäåëåö.Ôàìèëèÿ, Âëàäåëåö.Èìÿ, Âëàäåëåö.Îò÷åñòâî, Íîìåð_Äâèãàòåëÿ.Ìàðêà, Íîìåð_Äâèãàòåëÿ.Ìîäåëü, Íîìåð_Äâèãàòåëÿ.Ãîä_Âûïóñêà
FROM Íîìåð_Äâèãàòåëÿ INNER JOIN
VIN ON Íîìåð_Äâèãàòåëÿ.Íîìåð_Äâèãàòåëÿ = VIN.Íîìåð_Äâèãàòåëÿ INNER JOIN
ÏÒÑ_VIN ON VIN.VIN = ÏÒÑ_VIN.VIN INNER JOIN
Âëàäåëåö_ÏÒÑ ON ÏÒÑ_VIN.Íîìåð_ÏÒÑ = Âëàäåëåö_ÏÒÑ.Íîìåð_ÏÒÑ INNER JOIN
Âëàäåëåö ON Âëàäåëåö_ÏÒÑ.ID_Âëàäåëåö = Âëàäåëåö.ID_Âëàäåëåö
WHERE ((Íîìåð_Äâèãàòåëÿ.Ìàðêà = 'Saab') OR (Íîìåð_Äâèãàòåëÿ.Ìàðêà = 'Volvo'))
7. Çàïðîñ î íàëè÷èè ÎÑÀÃÎ è ÊÀÑÊÎ
SELECT Âëàäåëåö.Ôàìèëèÿ, Âëàäåëåö.Èìÿ, Âëàäåëåö.Îò÷åñòâî, Âîäèòåëü.Íîìåð_Ïðàâ, Ñòðàõîâêà.ÊÀÑÊÎ
FROM Âëàäåëåö INNER JOIN
Âîäèòåëü ON Âëàäåëåö.ID_Âëàäåëåö = Âîäèòåëü.ID_Âëàäåëåö INNER JOIN
Ñòðàõîâêà ON Âîäèòåëü.ID_Ñòðàõîâêà = Ñòðàõîâêà.ID_Ñòðàõîâêà
WHERE (Ñòðàõîâêà.ÊÀÑÊÎ = N'äà')
Ñïèñîê ëèòåðàòóðû
1. Ñ.Ì. Äèãî "Áàçû äàííûõ: ïðîåêòèðîâàíèå è èñïîëüçîâàíèå" Ìîñêâà 2005
2. Ëåêöèîííûå ìàòåðèàëû ïî êóðñó ÁÄ
Ãîñóäàðñòâåííûé óíèâåðñèòåò – Âûñøàÿ øêîëà ýêîíîìèêè Ôàêóëüòåò áèçíåñ - èíôîðìàòèêè Îò÷åò ïî êóðñîâîé ðàáîòå íà òåìó: "Áàçà äàííûõ ÃÈÁÄÄ" Âûïîëíèë ñòóäåíò 2 êóðñà 273(0) ãðóïïû
Ñèñòåìíîå ïðîãðàììèðîâàíèå â îïåðàöèîííûõ ñèñòåìàõ
Ñîçäàíèå áàçû äàííûõ
Ñîçäàíèå áàçû äàííûõ
Ñîçäàíèå áàçû äàííûõ "Wc3 Cybersport Data Base"
Ñîçäàíèå áàçû äàííûõ "ÐÝÎ-ÃÀÈ"
Ñîçäàíèå áàçû äàííûõ "Ñòàäèîíû ãîðîäà" íà ÿçûêå C
Ñîçäàíèå áàçû äàííûõ àïòåê
Ñîçäàíèå áàçû äàííûõ â ïðåäìåòíîé îáëàñòè "Àïòåêà"
Ñîçäàíèå áàçû äàííûõ â ñðåäå Microsoft Access 2002
Ñîçäàíèå áàçû äàííûõ äëÿ îðãàíèçàöèè
Copyright (c) 2024 Stud-Baza.ru Ðåôåðàòû, êîíòðîëüíûå, êóðñîâûå, äèïëîìíûå ðàáîòû.