logo

Entity Relationship Diagram for Ace Software, Inc.

Designing and implementing a database for a video store, including tables, relationships, and metadata.

10 Pages1270 Words128 Views
   

Added on  2022-11-29

About This Document

This document provides an entity relationship diagram for Ace Software, Inc. It includes the tables and their relationships, along with sample data and SQL queries.

Entity Relationship Diagram for Ace Software, Inc.

Designing and implementing a database for a video store, including tables, relationships, and metadata.

   Added on 2022-11-29

ShareRelated Documents
Entity Relationship Diagram:
Figure 1: Entity Relationship Diagram of Ace Software, Inc.
(Source: Created by Author)
Entity Relationship Diagram for Ace Software, Inc._1
1. Create Tables:
CREATE TABLE Customer
(
accountNumber NUMBER(11),
cus_name VARCHAR2(200),
street VARCHAR2(200),
city VARCHAR2(200),
zip NUMBER(6),
contactNumber NUMBER(10),
CONSTRAINT customer_pk PRIMARY KEY (accountNumber)
);
CREATE TABLE Customer_Rent
(
rentID NUMBER(11),
customer NUMBER(11),
rentDate DATE,
expectedReturnDate DATE,
actualReturnDate DATE,
Entity Relationship Diagram for Ace Software, Inc._2
totalPay NUMBER(6,2),
CONSTRAINT rent_pk PRIMARY KEY (rentID),
FOREIGN KEY (customer) REFERENCES Customer (accountNumber) ON DELETE
SET NULL
);
CREATE TABLE Fees
(
feeID NUMBER(11),
rentID NUMBER(11),
type VARCHAR2(200),
amount NUMBER(6,2),
CONSTRAINT fees_pk PRIMARY KEY (feeID),
FOREIGN KEY (rentID) REFERENCES Customer_Rent (rentID)
);
CREATE TABLE Movie
(
movieID NUMBER(11),
title VARCHAR2(200),
genre VARCHAR2(200),
Entity Relationship Diagram for Ace Software, Inc._3

End of preview

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

Related Documents
ISYS1055 - Database Concepts | Assignment
|14
|1619
|106

Logical Database Design for Desklib
|16
|2710
|153

COMP1556 - DB Applications
|19
|2645
|208