0% found this document useful (0 votes)
8 views5 pages

History

Uploaded by

girmawakeyo5
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)
8 views5 pages

History

Uploaded by

girmawakeyo5
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/ 5

ADAMA SCIENCE AND TECHNOLOGY

UNIVERSITY
D

COURSE:Database Systems

COURSE CODE:CSEg2206
PROJECT I

GROUP MEMBERS ID
1, Folikia Nigussie UGR/30562/15
2, Dagem Zerihun UGR/30361/15
3, Abel Tadesse UGR/30045/15
4, Girma Wakeyo UGR/30598/15
5, Abenezer Alemayehu UGR/30071/15
6, Milion Mengistu UGR/30932/15

Submitting Date: September 24, 2024


Instructor: Mr. Zena Gidey Alemayu

1
Staff table

Column Data Type Constraints

Staff_id INT PRIMARY KEY, NOT NULL

S_Name VARCHAR NOT NULL

Password VARCHAR NOT NULL

PhNo VARCHAR NULL

emailid VARCHAR NULL

Student table

Column Data Type Data Type

USN INT PRIMARY KEY, NOT NULL

S_Name VARCHAR NOT NULL

Stud_Pw VARCHAR NOT NULL

Sem INT NULL

PhNo VARCHAR NULL

emailid VARCHAR NULL

2
Quiz table

Column Data Type Constraints

Quiz_id INT PRIMARY KEY, NOT NULL

Quiz_Name VARCHAR NOT NULL

Question table

Column Data Type Constraints

Question VARCHAR NOT NULL

Correct_Ans VARCHAR NOT NULL

Option1 VARCHAR NULL

Option2 VARCHAR NULL

Option3 VARCHAR NULL

Option4 VARCHAR NULL

Quiz_id INT FOREIGN KEY (References


Quizzes(Quiz_id)), NOT NULL

3
Score table

Column Data type Constraints

Scoredpts INT NULL

Quiz_id INT FOREIGN KEY (References


Quizzes(Quiz_id)), NOT NULL

USN INT FOREIGN KEY (References


Students(USN)), NOT NULL

Table : relational schema

Cardinality of Relationships in the Database Schema

Quiz to Question: One-to-Many (A quiz can have multiple questions).


Quiz to Score: One-to-Many (A quiz can have multiple scores).
Student to Score: One-to-Many (A student can have multiple scores for different quizzes).

Table:1.2 Cardinality

4
Fig 1.1 ER diagram

You might also like