0% found this document useful (0 votes)
123 views

Schema Domain Table

The document describes two schemas for a database management system project. The first schema outlines eight tables: Student, Book, Category, Comments, Admin, Seller, Issued Book, and Fine. The second schema provides more details on the attributes and data types for each table in the domain. These include Student, Book, Category, Comments, Admin, Seller, Issued Book, Purchase, and Lended Book tables. The attributes and their corresponding data types and descriptions are specified for each table.

Uploaded by

Waqar Sheikh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
123 views

Schema Domain Table

The document describes two schemas for a database management system project. The first schema outlines eight tables: Student, Book, Category, Comments, Admin, Seller, Issued Book, and Fine. The second schema provides more details on the attributes and data types for each table in the domain. These include Student, Book, Category, Comments, Admin, Seller, Issued Book, Purchase, and Lended Book tables. The attributes and their corresponding data types and descriptions are specified for each table.

Uploaded by

Waqar Sheikh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

PROJECT

Schema and domain table

SUBMITTED TO:
AABDUL QAYYUM KHAN
SUBMITTED BY:
NIMRA USMAN (FA18-BSE-070_A)
ARFAT SARWAR (FA18-BSE-102_A)
HAMMAD SHAHZAD (FA18-BSE-054_A)
WAQAR SHEIKH (FA18-BSE-014_A)
COURSE TITLE:
DATABASE
FIRST SCHEMA:

Student (Student_ID, First_Name, Last_Name, Email, Password,


Smester,Phone # ,
Security_Question, Security_Answer, Batch_No)
Book (Title, Author, Price , Book#, Published_Date, Category)
Category (Category_ID , Category_Name, Category Version,
Book_ID)
Comments (Comment_ID, Comment_Text, Email, Student_ID)
Admin (Admin_ID, Admin_Name ,Email, Password, Phone#)

Seller (Seller_ID, First_Name, Last_Name, Email, Password,


Phone#, Book_ID,
Seller_Book, Seller_Book price)
Issued Book (Issued_Book_Name, Issued_Book_price, Issued_Date,
Book_ID, Category_ID)
Fine (Fine_Amount, Book_lend_Date, Lend-Date_End,
Student_ID, Student_Name)
Purchase (Student_Name, Student_ID, Purchase_Amount,
Book_Name, Book_ID, Category_ID )
Lended (Student_Name, Student_ID, lend_Amount, Book_Name,
Book Book_ID, Category_ID, Issued_Date)
SECOND SCHEMA:

DOMAIN TABLE:

Student

Attribute Name Data Type Description

Student_ID varchar(20) Primary Key,Student Roll No

First_Name varchar(40) Student First Name

Last_Name varchar(40) Student Last Name

Email varchar(30) Write your COMSATS provided Email

Password varchar(25) Student password

Semester int Student Current Semester

Phone# int Student phone Number


Security_Question varchar(50) Security question asked when user forgot password

Security_Answer varchar(50) User need to answer security question

Batch_No int Student Batch Number

Book

Attribute Name Data Type Description

Book_ID varchar(20) Book Unique ID,Primary Key

Title varchar(40) E.g. Database Systems

Author varchar(20) E.g. Thomas Connolly

Price int E.g. Rs 3500

Book# int Book’s Number in the System

Published_Date int Book official published date

Category

Attribute Name Data Type Description

Category_ID varchar(20) Book’s Category,Primary Key

Category_Name varchar(25) E.g. Course Book

Category Version int E.g six edition

Book_ID varchar(20) Foreign Key,Referenced from the Book Table

Comments

Attribute Name Data Type Description

Comment_ID varchar(20) Comment unique ID,Primary Key

Comment_Text varchar(100) Buyer’s review

Email varchar(30) Buyer’s mail


Student_ID varchar(20) Foreign Key,Referenced from the Student Table

Admin

Attribute Name Data Type Description

Admin_ID varchar(20) Admin unique ID,Primary Key

Admin_Name varchar(30) Admin’s Name

Email varchar(25) Admin’s mail Assigned by COMSATS

Password varchar(25) Admin’s Password

Phone# int Admin’s Phone No

Seller

Attribute Name Data Type Description

Seller_ID varchar(20) Primary Key,Seller Unique ID

First_Name varchar(40) Seller First Name

Last_Name varchar(40) Seller last Name

Email varchar(25) Seller’s mail

Password varchar(25) Seller’s Password

Phone# int Seller’s Phone No

Book_ID varchar(20) Foreign Key,Referenced from the Book Table

Seller_Book varchar(40) E.g. Database Systems

Seller_Book int E.g. Rs 3500


price

Issued Book
Attribute Name Data Type Description

Issued_Book_ varchar(50) Issued Book name is mentioned


Name
Issued_Book_ int Issued Book price is mentioned
price

Issued_Date Date/Time Issued Book Date is mentioned

Book_ID varchar(20) Foreign Key,Referenced from the Book Table

Category_ID varchar(20) Foreign Key,Referenced from the Category


Table

Fine
Attribute Name Data Type Description

Fine_Amount int E.g. Rs 300

Book_lend_Date Date/Time E.g.You Lend this book on 5th of April

Lend-Date_End Date/Time E.g.kindly return lended book

Student_ID varchar(20) Foreign Key,Referenced from the Student Table

Student_Name varchar(40) Name of the student who lend the book

Purchase
Attribute Name Data Type Description

Student_Name varchar(40) Name of the student who purchased the book

Student_ID varchar(20) Foreign Key,Referenced from the Student Table

Purchase_ int Purchased Book price


Amount

Book_Name varchar(40) Purchased Book Name

Book_ID varchar(20) Foreign Key,Referenced from the Book Table

Category_ID varchar(20) Foreign Key,Referenced from the Category Table

Lended Book
Attribute Name Data Type Description
Student_Name varchar(40) Name of the student who lend the book

Student_ID varchar(20) Foreign Key,Referenced from the Student Table

lend_ int Lend Book price


Amount

Book_ varchar(40) Lended Book Name


Name

Book_ID varchar(20) Foreign Key,Referenced from the Book Table

Category_ID varchar(20) Foreign Key,Referenced from the Category Table

Issued_Date Date/Time Issued Date of lended Book

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy