SlideShare a Scribd company logo
1 of 14
Download to read offline
Submitted to:
Dr Ala Al-Zobaidie
Greenwich Coordinator
Submitted by: Md. Mahbub Alam
Student ID: 000788896
Daffodil Institute of IT, Bangladesh
Coursework On
Database Design and Implementation
Course: COMP1302
Title: Database System for MORP
DATABASE DESIGN AND IMPLEMENTATION 1
Table of Contents
[D1] Assumptions....................................................................................................................................2
[D2] Conceptual Model Diagram ............................................................................................................0
[D3] Relational Schema...........................................................................................................................1
[D4] Normalisation Declaration..............................................................................................................0
[D5] Database .........................................................................................................................................1
[D6] SQL Codes........................................................................................................................................2
[D7] User Registration Form ...................................................................................................................3
[D8] Report for Application.....................................................................................................................4
[D9] Master and Detail Form ..................................................................................................................5
[D10] Output of all queries, forms and reports ......................................................................................6
Conclusion...............................................................................................................................................8
DATABASE DESIGN AND IMPLEMENTATION 2
[D1] Assumptions
 With Purchase & Metamorphosis table, all query and report can be execute. So, they are not
included into the database.
 Super Avatars (who are wanted to join breed process) unable to breed if both are under one
user.
 After sell of avatar user unable to return it with buy.
[D2] Conceptual Model Diagram
SPECIES AVATAR
MEGA
SUPER
MASTER
SELLUSER
WEAPONS_USERWEAPONS
Can
Contain
Has
Have
Has
May
Can be
Assigned
(0,1)
(1,M)
(1,1)
(1,M)
(1,1)
(1,M)
(1,1)
(1,M)
(1,1)
(1,1)
(1,1)
(1,1)
(1,1)(1,M)
Sale_IDUID
SID AID
WUIDWID
DATABASE DESIGN AND IMPLEMENTATION 1
[D3] Relational Schema
SPECIES (SID, s_name, strenth, cost)
WEAPONS (WID, w_name, range, max_use, damage_factor, cost)
WEAPONS_USER (WUID, WID, AID)
AVATAR (AID, A_NAME, DOB, joining_date, strenth_indicator, gender, hoard, UID, SID)
USER (UID, user_email, password, u_name, DOB, gender, joining_date)
SELL (Sale_ID, UID, AID, buyer_id, exchange)
SUPER (AID, wisdom_level)
MEGA (AID, F_name, m_name, magic_power)
MASTER (AID, leadership_skill)
[D4] Normalisation Declaration
The Relational Schema satisfies 3NF criteria
DATABASE DESIGN AND IMPLEMENTATION 1
[D5] Database
The database for the relational schema as stated above has been done with the DBMS Microsoft
Access and named as MORF. So, the MORF database has been attached in a zip file.
DATABASE DESIGN AND IMPLEMENTATION 2
[D6] SQL Codes
The SQL code for the application from A1-A4 is given below:
A1.
SELECT u.user_email AS Email, a.DOB, m.F_name AS Father, m.m_name AS
Mother
FROM AVATAR AS a, [USER] AS u, MEGA AS m
WHERE a.UID=u.UID and m.AID = a.AID and a.a_name= [Insert Avatar
Name];
A2.
SELECT u.user_email AS [User Email], a.a_name AS [Avatar Name],
sp.s_name AS [Species Name], s.wisdom_level AS [Wisdom Category],
m.leadership_skill AS [Leadership Skill], a.hoard AS Hoard
FROM SPECIES AS sp, AVATAR AS a, [USER] AS u, MASTER AS m, SUPER AS
s
WHERE a.UID=u.UID and m.AID = a.AID and s.AID = a.AID and sp.SID =
a.SID and a.DOB >= [First Date ] and a.DOB <= [Last Date ]
ORDER BY a.hoard;
A3.
SELECT a.a_name AS [Avater Name], a.DOB, a.strenth_indicator AS
[Strenth Indicator], a.gender AS Gender, a.hoard AS Hoard,
s.wisdom_level AS [Wisdom Level], sa.UID AS [User ID], sa.buyer_id
AS [Buyer ID], sa.exchange AS [Exchange Date]
FROM AVATAR AS a, [USER] AS u, SELL AS sa, SUPER AS s
WHERE sa.AID = a.AID and s.AID = sa.AID and u.UID = sa.UID and a.AID
in ( Select AID from SELL group by AID having count(AID)>2);
A4.
SELECT AVATAR.a_name, SPECIES.s_name, MEGA.magic_power, MEGA.f_name,
s1.s_name, s1.cost, SUPER.wisdom_level, MEGA.m_name, s2.s_name,
s2.cost, su.wisdom_level
FROM MEGA, AVATAR, SPECIES, SUPER, SPECIES AS s1, SPECIES AS s2,
AVATAR AS a1, AVATAR AS a2, SUPER AS su
WHERE MEGA.AID=AVATAR.AID and AVATAR.a_name=SPECIES.s_name and
MEGA.AID=SUPER.AID and SUPER.AID=a1.AID and a1.a_name=s1.s_name And
MEGA.AID=su.AID And su.AID=a2.AID And a2.a_name=s2.s_name And
AVATAR.hoard>16;
DATABASE DESIGN AND IMPLEMENTATION 3
[D7] User Registration Form
DATABASE DESIGN AND IMPLEMENTATION 4
[D8] Report for Application
DATABASE DESIGN AND IMPLEMENTATION 5
[D9] Master and Detail Form
DATABASE DESIGN AND IMPLEMENTATION 6
[D10] Output of all queries, forms and reports
Relationship in Access:
Output- A1
Output- A2
DATABASE DESIGN AND IMPLEMENTATION 7
Output- A3
Output- A4
DATABASE DESIGN AND IMPLEMENTATION 8
Conclusion
By completing this course work I get knowledge about extended Entity Relationship Diagram, master
detail form and report. This course work developed my developing skill my research and creative
ability. Now I am more confident about Database Design and Implementation. At this moment I am so
much happy by complete this course work successfully.

More Related Content

What's hot

Data mining extensions dmx - reference
Data mining extensions   dmx - referenceData mining extensions   dmx - reference
Data mining extensions dmx - referenceSteve Xu
 
Agm bit locker_administration_and_monitoring_1.0
Agm bit locker_administration_and_monitoring_1.0Agm bit locker_administration_and_monitoring_1.0
Agm bit locker_administration_and_monitoring_1.0Steve Xu
 
Windows azure sql_database_tutorials
Windows azure sql_database_tutorialsWindows azure sql_database_tutorials
Windows azure sql_database_tutorialsSteve Xu
 
Sql server community_fa_qs_manual
Sql server community_fa_qs_manualSql server community_fa_qs_manual
Sql server community_fa_qs_manualSteve Xu
 
Trevo project management documentation
Trevo project management documentationTrevo project management documentation
Trevo project management documentationTuononenP
 
automatic database schema generation
automatic database schema generationautomatic database schema generation
automatic database schema generationsoma Dileep kumar
 
Getting started with the entity framework 4.1 using asp.net mvc
Getting started with the entity framework 4.1 using asp.net mvcGetting started with the entity framework 4.1 using asp.net mvc
Getting started with the entity framework 4.1 using asp.net mvcSteve Xu
 
Autoscaling application block and transient fault handling application block ...
Autoscaling application block and transient fault handling application block ...Autoscaling application block and transient fault handling application block ...
Autoscaling application block and transient fault handling application block ...Steve Xu
 
3 openerp hr-book.complete
3 openerp hr-book.complete3 openerp hr-book.complete
3 openerp hr-book.completeopenerpwiki
 
Thesis klausi
Thesis klausiThesis klausi
Thesis klausimooru
 
Sql server 2012 tutorials reporting services
Sql server 2012 tutorials   reporting servicesSql server 2012 tutorials   reporting services
Sql server 2012 tutorials reporting servicesSteve Xu
 

What's hot (15)

Animation
AnimationAnimation
Animation
 
Data mining extensions dmx - reference
Data mining extensions   dmx - referenceData mining extensions   dmx - reference
Data mining extensions dmx - reference
 
Agm bit locker_administration_and_monitoring_1.0
Agm bit locker_administration_and_monitoring_1.0Agm bit locker_administration_and_monitoring_1.0
Agm bit locker_administration_and_monitoring_1.0
 
Windows azure sql_database_tutorials
Windows azure sql_database_tutorialsWindows azure sql_database_tutorials
Windows azure sql_database_tutorials
 
Sql server community_fa_qs_manual
Sql server community_fa_qs_manualSql server community_fa_qs_manual
Sql server community_fa_qs_manual
 
Trevo project management documentation
Trevo project management documentationTrevo project management documentation
Trevo project management documentation
 
automatic database schema generation
automatic database schema generationautomatic database schema generation
automatic database schema generation
 
Getting started with the entity framework 4.1 using asp.net mvc
Getting started with the entity framework 4.1 using asp.net mvcGetting started with the entity framework 4.1 using asp.net mvc
Getting started with the entity framework 4.1 using asp.net mvc
 
Live chat srs
Live chat srsLive chat srs
Live chat srs
 
Word 2007 2
Word 2007 2Word 2007 2
Word 2007 2
 
Autoscaling application block and transient fault handling application block ...
Autoscaling application block and transient fault handling application block ...Autoscaling application block and transient fault handling application block ...
Autoscaling application block and transient fault handling application block ...
 
3 openerp hr-book.complete
3 openerp hr-book.complete3 openerp hr-book.complete
3 openerp hr-book.complete
 
Thesis klausi
Thesis klausiThesis klausi
Thesis klausi
 
Sql server 2012 tutorials reporting services
Sql server 2012 tutorials   reporting servicesSql server 2012 tutorials   reporting services
Sql server 2012 tutorials reporting services
 
Access Tutorial
Access TutorialAccess Tutorial
Access Tutorial
 

Similar to Database Design & Implementation

Leveraging Apache Spark for Scalable Data Prep and Inference in Deep Learning
Leveraging Apache Spark for Scalable Data Prep and Inference in Deep LearningLeveraging Apache Spark for Scalable Data Prep and Inference in Deep Learning
Leveraging Apache Spark for Scalable Data Prep and Inference in Deep LearningDatabricks
 
Planning the Death Star with Microsoft Planner
Planning the Death Star with Microsoft PlannerPlanning the Death Star with Microsoft Planner
Planning the Death Star with Microsoft PlannerAndré Vala
 
Build a Big Data solution using DB2 for z/OS
Build a Big Data solution using DB2 for z/OSBuild a Big Data solution using DB2 for z/OS
Build a Big Data solution using DB2 for z/OSJane Man
 
Lecture 1 Pandas Basics.pptx machine learning
Lecture 1 Pandas Basics.pptx machine learningLecture 1 Pandas Basics.pptx machine learning
Lecture 1 Pandas Basics.pptx machine learningmy6305874
 
Prisoner Management System
Prisoner Management SystemPrisoner Management System
Prisoner Management SystemPrince Kumar
 
E_Commerce Data model
E_Commerce Data modelE_Commerce Data model
E_Commerce Data modelSilpiNandi1
 
Udf&views in sql...by thanveer melayi
Udf&views in sql...by thanveer melayiUdf&views in sql...by thanveer melayi
Udf&views in sql...by thanveer melayiMuhammed Thanveer M
 
Spark ml streaming
Spark ml streamingSpark ml streaming
Spark ml streamingAdam Doyle
 
Spark streaming , Spark SQL
Spark streaming , Spark SQLSpark streaming , Spark SQL
Spark streaming , Spark SQLYousun Jeong
 
22-4_PerformanceTuningUsingtheAdvisorFramework.pdf
22-4_PerformanceTuningUsingtheAdvisorFramework.pdf22-4_PerformanceTuningUsingtheAdvisorFramework.pdf
22-4_PerformanceTuningUsingtheAdvisorFramework.pdfyishengxi
 
Bca5020 visual programming
Bca5020  visual programmingBca5020  visual programming
Bca5020 visual programmingsmumbahelp
 
01 nosql and multi model database
01   nosql and multi model database01   nosql and multi model database
01 nosql and multi model databaseMahdi Atawneh
 
Data Mining for Developers
Data Mining for DevelopersData Mining for Developers
Data Mining for Developersllangit
 
Database@Home : The Future is Data Driven
Database@Home : The Future is Data DrivenDatabase@Home : The Future is Data Driven
Database@Home : The Future is Data DrivenTammy Bednar
 
Move a successful onpremise oltp application to the cloud
Move a successful onpremise oltp application to the cloudMove a successful onpremise oltp application to the cloud
Move a successful onpremise oltp application to the cloudIke Ellis
 
R language tutorial
R language tutorialR language tutorial
R language tutorialDavid Chiu
 

Similar to Database Design & Implementation (20)

Leveraging Apache Spark for Scalable Data Prep and Inference in Deep Learning
Leveraging Apache Spark for Scalable Data Prep and Inference in Deep LearningLeveraging Apache Spark for Scalable Data Prep and Inference in Deep Learning
Leveraging Apache Spark for Scalable Data Prep and Inference in Deep Learning
 
Planning the Death Star with Microsoft Planner
Planning the Death Star with Microsoft PlannerPlanning the Death Star with Microsoft Planner
Planning the Death Star with Microsoft Planner
 
Build a Big Data solution using DB2 for z/OS
Build a Big Data solution using DB2 for z/OSBuild a Big Data solution using DB2 for z/OS
Build a Big Data solution using DB2 for z/OS
 
Lecture 1 Pandas Basics.pptx machine learning
Lecture 1 Pandas Basics.pptx machine learningLecture 1 Pandas Basics.pptx machine learning
Lecture 1 Pandas Basics.pptx machine learning
 
Prisoner Management System
Prisoner Management SystemPrisoner Management System
Prisoner Management System
 
E_Commerce
E_CommerceE_Commerce
E_Commerce
 
E_Commerce Data model
E_Commerce Data modelE_Commerce Data model
E_Commerce Data model
 
SQL Statement Template
SQL Statement TemplateSQL Statement Template
SQL Statement Template
 
Udf&views in sql...by thanveer melayi
Udf&views in sql...by thanveer melayiUdf&views in sql...by thanveer melayi
Udf&views in sql...by thanveer melayi
 
Spark ml streaming
Spark ml streamingSpark ml streaming
Spark ml streaming
 
Spark streaming , Spark SQL
Spark streaming , Spark SQLSpark streaming , Spark SQL
Spark streaming , Spark SQL
 
22-4_PerformanceTuningUsingtheAdvisorFramework.pdf
22-4_PerformanceTuningUsingtheAdvisorFramework.pdf22-4_PerformanceTuningUsingtheAdvisorFramework.pdf
22-4_PerformanceTuningUsingtheAdvisorFramework.pdf
 
Bca5020 visual programming
Bca5020  visual programmingBca5020  visual programming
Bca5020 visual programming
 
ProgrammingPrimerAndOOPS
ProgrammingPrimerAndOOPSProgrammingPrimerAndOOPS
ProgrammingPrimerAndOOPS
 
01 nosql and multi model database
01   nosql and multi model database01   nosql and multi model database
01 nosql and multi model database
 
Data Mining for Developers
Data Mining for DevelopersData Mining for Developers
Data Mining for Developers
 
Database@Home : The Future is Data Driven
Database@Home : The Future is Data DrivenDatabase@Home : The Future is Data Driven
Database@Home : The Future is Data Driven
 
My sql udf,views
My sql udf,viewsMy sql udf,views
My sql udf,views
 
Move a successful onpremise oltp application to the cloud
Move a successful onpremise oltp application to the cloudMove a successful onpremise oltp application to the cloud
Move a successful onpremise oltp application to the cloud
 
R language tutorial
R language tutorialR language tutorial
R language tutorial
 

More from Md. Mahbub Alam

Employee Leave Management System
Employee Leave Management SystemEmployee Leave Management System
Employee Leave Management SystemMd. Mahbub Alam
 
Advance Java course work under NCC Education June 2011
Advance Java course work  under NCC Education June 2011Advance Java course work  under NCC Education June 2011
Advance Java course work under NCC Education June 2011Md. Mahbub Alam
 
Enterprise networking course work under NCC Education
Enterprise networking course work under NCC EducationEnterprise networking course work under NCC Education
Enterprise networking course work under NCC EducationMd. Mahbub Alam
 
Database design and Development
Database design and DevelopmentDatabase design and Development
Database design and DevelopmentMd. Mahbub Alam
 
System Analysis & Design (NCC Education)
System Analysis & Design (NCC Education)System Analysis & Design (NCC Education)
System Analysis & Design (NCC Education)Md. Mahbub Alam
 
Accessories Shop Management System on Advance JAVA
 Accessories Shop Management System on Advance JAVA Accessories Shop Management System on Advance JAVA
Accessories Shop Management System on Advance JAVAMd. Mahbub Alam
 
Development, Frameworks and Methods
Development, Frameworks and MethodsDevelopment, Frameworks and Methods
Development, Frameworks and MethodsMd. Mahbub Alam
 
Information Requirement Analysis
Information Requirement AnalysisInformation Requirement Analysis
Information Requirement AnalysisMd. Mahbub Alam
 
IT Project and Quality Management
IT Project and Quality ManagementIT Project and Quality Management
IT Project and Quality ManagementMd. Mahbub Alam
 

More from Md. Mahbub Alam (12)

Employee Leave Management System
Employee Leave Management SystemEmployee Leave Management System
Employee Leave Management System
 
Advance Java course work under NCC Education June 2011
Advance Java course work  under NCC Education June 2011Advance Java course work  under NCC Education June 2011
Advance Java course work under NCC Education June 2011
 
Enterprise networking course work under NCC Education
Enterprise networking course work under NCC EducationEnterprise networking course work under NCC Education
Enterprise networking course work under NCC Education
 
Database design and Development
Database design and DevelopmentDatabase design and Development
Database design and Development
 
Advance web Design
Advance web DesignAdvance web Design
Advance web Design
 
System Analysis & Design (NCC Education)
System Analysis & Design (NCC Education)System Analysis & Design (NCC Education)
System Analysis & Design (NCC Education)
 
Interaction Design
Interaction DesignInteraction Design
Interaction Design
 
Accessories Shop Management System on Advance JAVA
 Accessories Shop Management System on Advance JAVA Accessories Shop Management System on Advance JAVA
Accessories Shop Management System on Advance JAVA
 
eCommerce
eCommerceeCommerce
eCommerce
 
Development, Frameworks and Methods
Development, Frameworks and MethodsDevelopment, Frameworks and Methods
Development, Frameworks and Methods
 
Information Requirement Analysis
Information Requirement AnalysisInformation Requirement Analysis
Information Requirement Analysis
 
IT Project and Quality Management
IT Project and Quality ManagementIT Project and Quality Management
IT Project and Quality Management
 

Recently uploaded

Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% SecurePooja Nehwal
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 

Recently uploaded (20)

Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 

Database Design & Implementation

  • 1. Submitted to: Dr Ala Al-Zobaidie Greenwich Coordinator Submitted by: Md. Mahbub Alam Student ID: 000788896 Daffodil Institute of IT, Bangladesh Coursework On Database Design and Implementation Course: COMP1302 Title: Database System for MORP
  • 2. DATABASE DESIGN AND IMPLEMENTATION 1 Table of Contents [D1] Assumptions....................................................................................................................................2 [D2] Conceptual Model Diagram ............................................................................................................0 [D3] Relational Schema...........................................................................................................................1 [D4] Normalisation Declaration..............................................................................................................0 [D5] Database .........................................................................................................................................1 [D6] SQL Codes........................................................................................................................................2 [D7] User Registration Form ...................................................................................................................3 [D8] Report for Application.....................................................................................................................4 [D9] Master and Detail Form ..................................................................................................................5 [D10] Output of all queries, forms and reports ......................................................................................6 Conclusion...............................................................................................................................................8
  • 3. DATABASE DESIGN AND IMPLEMENTATION 2 [D1] Assumptions  With Purchase & Metamorphosis table, all query and report can be execute. So, they are not included into the database.  Super Avatars (who are wanted to join breed process) unable to breed if both are under one user.  After sell of avatar user unable to return it with buy.
  • 4. [D2] Conceptual Model Diagram SPECIES AVATAR MEGA SUPER MASTER SELLUSER WEAPONS_USERWEAPONS Can Contain Has Have Has May Can be Assigned (0,1) (1,M) (1,1) (1,M) (1,1) (1,M) (1,1) (1,M) (1,1) (1,1) (1,1) (1,1) (1,1)(1,M) Sale_IDUID SID AID WUIDWID
  • 5. DATABASE DESIGN AND IMPLEMENTATION 1 [D3] Relational Schema SPECIES (SID, s_name, strenth, cost) WEAPONS (WID, w_name, range, max_use, damage_factor, cost) WEAPONS_USER (WUID, WID, AID) AVATAR (AID, A_NAME, DOB, joining_date, strenth_indicator, gender, hoard, UID, SID) USER (UID, user_email, password, u_name, DOB, gender, joining_date) SELL (Sale_ID, UID, AID, buyer_id, exchange) SUPER (AID, wisdom_level) MEGA (AID, F_name, m_name, magic_power) MASTER (AID, leadership_skill)
  • 6. [D4] Normalisation Declaration The Relational Schema satisfies 3NF criteria
  • 7. DATABASE DESIGN AND IMPLEMENTATION 1 [D5] Database The database for the relational schema as stated above has been done with the DBMS Microsoft Access and named as MORF. So, the MORF database has been attached in a zip file.
  • 8. DATABASE DESIGN AND IMPLEMENTATION 2 [D6] SQL Codes The SQL code for the application from A1-A4 is given below: A1. SELECT u.user_email AS Email, a.DOB, m.F_name AS Father, m.m_name AS Mother FROM AVATAR AS a, [USER] AS u, MEGA AS m WHERE a.UID=u.UID and m.AID = a.AID and a.a_name= [Insert Avatar Name]; A2. SELECT u.user_email AS [User Email], a.a_name AS [Avatar Name], sp.s_name AS [Species Name], s.wisdom_level AS [Wisdom Category], m.leadership_skill AS [Leadership Skill], a.hoard AS Hoard FROM SPECIES AS sp, AVATAR AS a, [USER] AS u, MASTER AS m, SUPER AS s WHERE a.UID=u.UID and m.AID = a.AID and s.AID = a.AID and sp.SID = a.SID and a.DOB >= [First Date ] and a.DOB <= [Last Date ] ORDER BY a.hoard; A3. SELECT a.a_name AS [Avater Name], a.DOB, a.strenth_indicator AS [Strenth Indicator], a.gender AS Gender, a.hoard AS Hoard, s.wisdom_level AS [Wisdom Level], sa.UID AS [User ID], sa.buyer_id AS [Buyer ID], sa.exchange AS [Exchange Date] FROM AVATAR AS a, [USER] AS u, SELL AS sa, SUPER AS s WHERE sa.AID = a.AID and s.AID = sa.AID and u.UID = sa.UID and a.AID in ( Select AID from SELL group by AID having count(AID)>2); A4. SELECT AVATAR.a_name, SPECIES.s_name, MEGA.magic_power, MEGA.f_name, s1.s_name, s1.cost, SUPER.wisdom_level, MEGA.m_name, s2.s_name, s2.cost, su.wisdom_level FROM MEGA, AVATAR, SPECIES, SUPER, SPECIES AS s1, SPECIES AS s2, AVATAR AS a1, AVATAR AS a2, SUPER AS su WHERE MEGA.AID=AVATAR.AID and AVATAR.a_name=SPECIES.s_name and MEGA.AID=SUPER.AID and SUPER.AID=a1.AID and a1.a_name=s1.s_name And MEGA.AID=su.AID And su.AID=a2.AID And a2.a_name=s2.s_name And AVATAR.hoard>16;
  • 9. DATABASE DESIGN AND IMPLEMENTATION 3 [D7] User Registration Form
  • 10. DATABASE DESIGN AND IMPLEMENTATION 4 [D8] Report for Application
  • 11. DATABASE DESIGN AND IMPLEMENTATION 5 [D9] Master and Detail Form
  • 12. DATABASE DESIGN AND IMPLEMENTATION 6 [D10] Output of all queries, forms and reports Relationship in Access: Output- A1 Output- A2
  • 13. DATABASE DESIGN AND IMPLEMENTATION 7 Output- A3 Output- A4
  • 14. DATABASE DESIGN AND IMPLEMENTATION 8 Conclusion By completing this course work I get knowledge about extended Entity Relationship Diagram, master detail form and report. This course work developed my developing skill my research and creative ability. Now I am more confident about Database Design and Implementation. At this moment I am so much happy by complete this course work successfully.