logo

Database Design in Oracle for Pet Net Online Library

Implementing the database designed for the Pet Net case study in Assignment 1.

30 Pages4417 Words90 Views
   

Added on  2023-06-14

About This Document

This article discusses the revised ERD and schema for Pet Net Oracle Database System. It includes a data dictionary, implementation, and sample data. The course code and college/university are not mentioned.

Database Design in Oracle for Pet Net Online Library

Implementing the database designed for the Pet Net case study in Assignment 1.

   Added on 2023-06-14

ShareRelated Documents
Running head: DATABASE DESIGN IN ORACLE 1
Database Design In Oracle
Designing Pet Net Oracle Database System.
[Student Name]
[University Name]
Database Design in Oracle for Pet Net Online Library_1
2DATABASE DESIGN IN ORACLE
Table of Contents
Revised ERD and schema.............................................................................................................................3
Revised Pet Net Database Entity Relation Diagram.................................................................................3
Revised Pet Net Database Relational Schema.........................................................................................4
Part 2: Data dictionary.................................................................................................................................4
Part 3: Implementation...............................................................................................................................6
Sample data.......................................................................................................................................13
GRANTING PERMISSION TO MARKERTL.............................................................................................17
Part 4: Views..............................................................................................................................................19
References.................................................................................................................................................30
Database Design in Oracle for Pet Net Online Library_2
3DATABASE DESIGN IN ORACLE
Revised ERD and schema.
Revised Pet Net Database Entity Relation Diagram.
(Ullman,2016).
In the above pet net ERD there are few changes made where the services description field
is added in the booking table ,this to make it to identify the specific service that are offered by
participant who will also be taking care of the dogs and other types of pets.
Database Design in Oracle for Pet Net Online Library_3
4DATABASE DESIGN IN ORACLE
Revised Pet Net Database Relational Schema.
PETSITTER(Sitterid,Fullnames,Surburb,Emailaddress,Phonenumber,Profile,Serviceprovided,
Animals,Prices)
PETOWNER
(Ownerid,Fullnames,Surburb,Emailaddress,Phonenumber,Animals,Hostingtype,Dateforservice,S
pecialrequirements) (Raghu ,2015).
BOOKING(Bookingid,Dates,Pets,Servicedetails,Price,Ownerid,Sitterid)
RATING(Ratingid,Starrating,Comment,Ownerid,Sitterid,Bookingid) (Bipin,2014).
Part 2: Data dictionary.
Table name
Column
name
Description
Data
type/size
Domain
Default
value
Required
Unique
Constraints
Referential
integrity
rules
PETSITTER Sitterid Sitter details. integer(20) numbers n/a Yes yes Primary key on delete, on update
Fullnames Full names
details
Varchar2(20) String n/a Yes No -
Surburb Surburb
details
Varchar2(20) String n/a Yes No -
Emailaddress Email
address
details
Varchar2(20) String n/a Yes No -
Phonenumber Phone
number
details
Varchar2(20) String n/a Yes No -
Profile Profile
details
Varchar2(20) String n/a Yes No -
Serviceprovided Service
provided
details
Varchar2(20) String n/a Yes No -
Animals Animals
details
Varchar2(20) String n/a Yes No -
Prices Prices details Varchar2(20) String n/a Yes No -
PETOWNER Ownerid Owner id
details
Integer(20) number n/a Yes yes Primary key on delete, on update
Fullnames Full names
details
Varchar2(20) String n/a Yes No -
Surburb Surburb
details
Varchar2(20) String n/a Yes No -
Emailaddress Email
address
details
Varchar2(20) String n/a Yes No -
Phonenumber Phone
number
details
Varchar2(20) String n/a Yes No -
Animals Animals
details
Varchar2(20) String n/a Yes No -
Database Design in Oracle for Pet Net Online Library_4
5DATABASE DESIGN IN ORACLE
Hostingtype Hosting type
details
Varchar2(20) String n/a Yes No -
Dateforservice Date for
service
details
Varchar2(20) String n/a Yes No -
Specialrequirements Special
requirements
details
Varchar2(20) String n/a Yes No -
BOOKING Bookingid Booking id
details
Integer(20) number n/a Yes yes Primary key on delete, on update
Dates Dates details Varchar2(20) String n/a Yes No -
Pets Pets details Varchar2(20) String n/a Yes No -
Servicedetails Service
details
details
Varchar2(20) String n/a Yes No -
Price Price details Varchar2(20) String n/a Yes No -
Ownerid Owner id
details
Integer(20) String n/a Yes No Foreign key on delete, on update
Sitterid Sitter id
details
Integer(20) String n/a Yes No Foreign key on delete, on update
RATING Ratingid Rating id
details
Integer(20) number n/a Yes yes Primary key on delete, on update
Starrating Star rating
details
Varchar2(20) String n/a Yes No -
Comment Comment
details
Varchar2(20) String n/a Yes No -
Ownerid Owner id
details
Integer(20) String n/a Yes No Foreign key on delete, on update
Sitterid Sitter id
details
Integer(20) String n/a Yes No Foreign key on delete, on update
Bookingid Booking id
details
Integer(20) String n/a Yes No Foreign key on delete, on update
(Abraham ,2013).
Database Design in Oracle for Pet Net Online Library_5
6DATABASE DESIGN IN ORACLE
Part 3: Implementation.
Database Design in Oracle for Pet Net Online Library_6

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Revised ERD and Schema for a Restaurant Database
|4
|1628
|451

Microsoft SQL Server Database Designs
|15
|1734
|98