SlideShare a Scribd company logo
WELCOME TO DUCAT INDIA
RELATIONAL DATABASE
CONCEPT AND TECHNOLOGY
CONTACT US:-
70-70-90-50-90
info@ducatindia.com
RELATIONAL DATABASE CONCEPT AND
TECHNOLOGY
A Relational Database Management System (RDBMS) is a server that manages data for you. The data is
structured into tables, where each table has some number of columns, each of which has a name and a type.
For example, to keep track of James Bond movies, we might have a “movies” table that records the title (a
string), year of release (a number), and the actor who played Bond in each movie (an index into a table of
Bond actors).
Tables are grouped together into databases, so a James Bond database might have tables for movies, actors
playing Bond, and villains. An RDBMS usually has its own user system, which controls access rights for
databases (e.g., “user Fred can update database Bond”).
PHP communicates with relational databases such as MySQL and Oracle using the Structured Query
Language (SQL). You can use SQL to create, modify, and query relational databases.
The syntax for SQL is divided into two parts. The first, Data Manipulation Language, or DML, is used to retrieve and modify
data in an existing database. DML is remarkably compact, consisting of only four verbs: select, insert, update, and delete.
The set of SQL commands, used to create and modify the database structures that hold the data, is known as Data Definition
Language, or DDL. The syntax for DDL is not as standardized as that for DML, but as PHP just sends any SQL commands
you give it to the database, you can use any SQL commands your database supports.
Web Database Design
A web database is a wide term for managing data online. A web database gives you the ability to build your own
databases/data storage without you being a database guru or even a technical person.
Website operators can manage this collection of data and present analytical results based on the data in the Web database
application. Databases first appeared in the 1990s, and have been an asset for businesses, allowing the collection of
seemingly infinite amounts of data from infinite amounts of customers.
Web SQL Database is a web page API for storing data in databases that can be queried using a variant of SQL.Databases are
everywhere, including everywhere in the world of web development. Everything from the simplest blogs and directories and
to robust user-oriented websites use databases. No matter how complex or simple the website and corresponding database
may be though, each takes careful planning in order to run efficiently and also securely.
What Functionality is Needed from the Database?
The first method for planning for a database is to simply brainstorm, on paper or otherwise, concerning what the
database will need to store, and what the site will need out of it. Try not to think of the individual fields or tables that
will be needed at this point – all that specific planning can take place later. The goal is to start with a general and
complete view and narrow down. It can often times be more difficult to add in items later, rather than get it right the
first time.
Think outside the database. Try to think about what the website will need to do. For example, if a membership
website is needed, the first instinct may be to begin thinking of all the data each user will need to store. Forget it,
that’s for later. Rather, write down that users and their information will need to be stored in the database, and what
else? What will those members need to do on the site? Will they make posts, upload files or photos, or send
messages? Then the database will need a place for files/photos, posts, and messages.
What information will they need to derive from the site? Will they need to search for their favorite recipe, be able to
access member-only content, or need to look up products and their recently purchased or viewed products? Then the
database will need a place to hold those recipes, a place for content that is defined as members-only or not or hold all
products and create a method to link certain products to a specific member.
Determining Tables and Fields
The next phase would be to begin determining exactly what tables and fields one would need in the database. This is the
core of database design, and the most difficult part. Using correct methods for linking tables together, sorting the data within
each table correctly, and grouping it or keeping it separate are all arising problems when it comes to database design. At this
point, list out what tables and fields are clear at this point, trying to be as specific as possible. Through the process, items
can be rearranged or reorganized to improve the database’s efficiency and security.
Use a Data Modeling Tool
Now that you know what the site will need to do, it’s time to organize what exact information needs to be stored. A great
database design tool can be helpful for this; specifically, one that can help set up visual database models, such as MySQL
Workbench (for MySQL databases only) or DBDesigner4. Cliffy is also a great free online application for creating
flowcharts and database models. An example of output of data modelling tool is:
Database Design Using Data Modelling Tools
Become familiar with the common icons and standard visual elements necessary to create database models and begin
planning via flowcharts and diagrams ahead of time. This can sort out logical errors before any actual databases are created.
Relational Databases
Almost all databases are relational databases. This means that the tables in the database are related to each other in some
way. For example, if a there is a member on an ecommerce website, that member may be related to certain products based
on what they ordered last, or what they have expressed they are interested in. For a blog database, authors would have to
be somehow related to the posts they wrote and logged in users could be related to any comments they’ve left.
By using the techniques for relational databases, we can store plenty of information in an organized fashion within
separate tables: one table for members, one for posts, another for comments, and yet another for products. Then, we can
link the data between different tables together via unique keys.
The below figure shows the table present in relational database:
Table Structure in Relational Database
Every entry in every table needs a unique primary key. This is the “social security number” or “bar code” for each entry. It
is unique to each entry, and no other entry can have the same ID in the same table. Having unique usernames or product
names in a database table is not enough. It is far more efficient, and best practice as well, to use unique primary keys. Even
with other types of unique fields, a database is still vulnerable to duplicate records, which can later break code within the
website.
Relationship Diagram
This is a simple one-to-one relationship model. There are also models for one-to-many and many-to-many relationships.
Grouping or Separating Data info Fields
Within fields, it’s also important to know when to group certain pieces of data together, and when to keep them separate. A good way to
determine which information should be in the same field or otherwise is to think about what it would take to change that piece of information if
necessary. For example, would it be necessary to place a full address in separate fields, based on 1) street address, 2) city, 3) state, 4) zip code,
and then 5) country?
Is it essential for the functionality of the site (perhaps users or admins would need to search addresses by state only), or is it just a waste of
fields and database space? If it’s not essential, just to change an address the database would have to update five separate fields, when it could
just update one field in string form. To keep such a field organized, one could take in the information via an HTML form with these fields
separated, but then concatenate them into one single string before placing the address into the database.
This is just one example, but always keep in mind the most efficient ways to organize table fields, and when to combine them, or when to keep
them separate for the sake of the website’s functionality.
Database Normalization
Database normalization is a set of guidelines created by the community for organizing data in a database efficiently. We’ve mentioned a few of
the most important and basic practices already, which are included in some of the most standard normalization forms. There are five normal
forms to follow, and it’s a good idea to learn about these five forms in order to conform any database’s design to their best practices.
Database normalization is a large topic, but just understanding the basics can help tremendously.
Web Database Architecture
A database management system (DBMS) is system software for creating and managing databases. The DBMS provides users
and programmers with a systematic way to create, retrieve, update and manage data.
A Database Management system is not always directly available for users and applications to access and store data in it. A
Database Management system can be centralised(all the data stored at one location), decentralised(multiple copies of
database at different locations) or hierarchical, depending upon its architecture.
1-tier DBMS architecture also exist, this is when the database is directly available to the user for using it to store data.
Generally, such a setup is used for local application development, where programmers communicate directly with the
database for quick response.
Database Architecture is logically of two types:
• 2-tier DBMS architecture
• 3-tier DBMS architecture
2-tier DBMS Architecture
An application interface known as ODBC(Open Database Connectivity) provides an API that allow client side program to
call the DBMS. Most DBMS vendors provide ODBC drivers for their DBMS.
THANK YOU
CONTACT US:-
70-70-90-50-90
info@ducatindia.com

More Related Content

What's hot

Informatica training
Informatica trainingInformatica training
Informatica training
Keylabstraining Bangalore
 
Key aspects of big data storage and its architecture
Key aspects of big data storage and its architectureKey aspects of big data storage and its architecture
Key aspects of big data storage and its architecture
Rahul Chaturvedi
 
ms-11.pdf
ms-11.pdfms-11.pdf
ms-11.pdf
NikitaKumari71
 
Chapter 5 data processing
Chapter 5 data processingChapter 5 data processing
Chapter 5 data processing
UMaine
 
Chap 4 hardware & software
Chap 4 hardware & softwareChap 4 hardware & software
Chap 4 hardware & software
UMaine
 
Heterogeneous Data - Published
Heterogeneous Data - PublishedHeterogeneous Data - Published
Heterogeneous Data - Published
Paul Steffensen
 
Design And Documentation
Design And DocumentationDesign And Documentation
Design And Documentation
Miles Price
 
Rinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat Portfolio
Rinkeshkumar15
 
moving_from_relational_to_nosql_couchbase_2016
moving_from_relational_to_nosql_couchbase_2016moving_from_relational_to_nosql_couchbase_2016
moving_from_relational_to_nosql_couchbase_2016
Richard (Rick) Nelson
 
Elements of Data Documentation
Elements of Data DocumentationElements of Data Documentation
Elements of Data Documentation
ssri-duke
 
Introduzione a Drupal
Introduzione a DrupalIntroduzione a Drupal
Introduzione a Drupal
Giovanni Buffa
 
Data base management
Data base management Data base management
Data base management
MiXvideos
 
Harsh
HarshHarsh
Info Path 2007 Training
Info Path 2007 TrainingInfo Path 2007 Training
Info Path 2007 Training
SharePoint & .NET Blog
 
Share point 2010 Fundamentals
Share point 2010 FundamentalsShare point 2010 Fundamentals
Share point 2010 Fundamentals
balraj_s
 
Share point 2010
Share point 2010Share point 2010
Share point 2010
balraj_s
 
Share point 2010
Share point 2010Share point 2010
Share point 2010
balraj_s
 
Migrating to CouchDB
Migrating to CouchDBMigrating to CouchDB
Migrating to CouchDB
John Wood
 
Leveraging Digital Media for Maximum Efficiency DesignPac Case Study
Leveraging Digital Media for Maximum Efficiency DesignPac Case StudyLeveraging Digital Media for Maximum Efficiency DesignPac Case Study
Leveraging Digital Media for Maximum Efficiency DesignPac Case Study
Extensis
 

What's hot (19)

Informatica training
Informatica trainingInformatica training
Informatica training
 
Key aspects of big data storage and its architecture
Key aspects of big data storage and its architectureKey aspects of big data storage and its architecture
Key aspects of big data storage and its architecture
 
ms-11.pdf
ms-11.pdfms-11.pdf
ms-11.pdf
 
Chapter 5 data processing
Chapter 5 data processingChapter 5 data processing
Chapter 5 data processing
 
Chap 4 hardware & software
Chap 4 hardware & softwareChap 4 hardware & software
Chap 4 hardware & software
 
Heterogeneous Data - Published
Heterogeneous Data - PublishedHeterogeneous Data - Published
Heterogeneous Data - Published
 
Design And Documentation
Design And DocumentationDesign And Documentation
Design And Documentation
 
Rinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat Portfolio
 
moving_from_relational_to_nosql_couchbase_2016
moving_from_relational_to_nosql_couchbase_2016moving_from_relational_to_nosql_couchbase_2016
moving_from_relational_to_nosql_couchbase_2016
 
Elements of Data Documentation
Elements of Data DocumentationElements of Data Documentation
Elements of Data Documentation
 
Introduzione a Drupal
Introduzione a DrupalIntroduzione a Drupal
Introduzione a Drupal
 
Data base management
Data base management Data base management
Data base management
 
Harsh
HarshHarsh
Harsh
 
Info Path 2007 Training
Info Path 2007 TrainingInfo Path 2007 Training
Info Path 2007 Training
 
Share point 2010 Fundamentals
Share point 2010 FundamentalsShare point 2010 Fundamentals
Share point 2010 Fundamentals
 
Share point 2010
Share point 2010Share point 2010
Share point 2010
 
Share point 2010
Share point 2010Share point 2010
Share point 2010
 
Migrating to CouchDB
Migrating to CouchDBMigrating to CouchDB
Migrating to CouchDB
 
Leveraging Digital Media for Maximum Efficiency DesignPac Case Study
Leveraging Digital Media for Maximum Efficiency DesignPac Case StudyLeveraging Digital Media for Maximum Efficiency DesignPac Case Study
Leveraging Digital Media for Maximum Efficiency DesignPac Case Study
 

Similar to Relational database concept and technology

Database Management Systems (Mcom Ecommerce)
Database Management Systems (Mcom Ecommerce)Database Management Systems (Mcom Ecommerce)
Database Management Systems (Mcom Ecommerce)
Rupen Parte
 
Choosing your NoSQL storage
Choosing your NoSQL storageChoosing your NoSQL storage
Choosing your NoSQL storage
Imteyaz Khan
 
Relational database management systems
Relational database management systemsRelational database management systems
Relational database management systems
Datasoft Consulting
 
Database Management System For A Company
Database Management System For A CompanyDatabase Management System For A Company
Database Management System For A Company
Jessica Myers
 
Lecture#5
Lecture#5Lecture#5
Database and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health InformaticsDatabase and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health Informatics
Zulfiquer Ahmed Amin
 
D I T211 Chapter 1 1
D I T211    Chapter 1 1D I T211    Chapter 1 1
D I T211 Chapter 1 1
askme
 
Data base management system
Data base management systemData base management system
Data base management system
Suneel Dogra
 
D I T211 Chapter 1
D I T211    Chapter 1D I T211    Chapter 1
D I T211 Chapter 1
askme
 
Data base management system
Data base management systemData base management system
Data base management system
ashirafzal1
 
Mdb dn 2016_04_check_constraints
Mdb dn 2016_04_check_constraintsMdb dn 2016_04_check_constraints
Mdb dn 2016_04_check_constraints
Daniel M. Farrell
 
Discussion post· The proper implementation of a database is es.docx
Discussion post· The proper implementation of a database is es.docxDiscussion post· The proper implementation of a database is es.docx
Discussion post· The proper implementation of a database is es.docx
madlynplamondon
 
Database Management System ( Dbms )
Database Management System ( Dbms )Database Management System ( Dbms )
Database Management System ( Dbms )
Kimberly Brooks
 
Introduction to database with ms access(DBMS)
Introduction to database with ms access(DBMS)Introduction to database with ms access(DBMS)
Introduction to database with ms access(DBMS)
07HetviBhagat
 
Introduction to database with ms access.hetvii
Introduction to database with ms access.hetviiIntroduction to database with ms access.hetvii
Introduction to database with ms access.hetvii
07HetviBhagat
 
Components and Advantages of DBMS
Components and Advantages of DBMSComponents and Advantages of DBMS
Components and Advantages of DBMS
Shubham Joon
 
Data models
Data modelsData models
Data models
Usman Tariq
 
Database systems Handbook 2V.pdf
Database systems Handbook 2V.pdfDatabase systems Handbook 2V.pdf
Database systems Handbook 2V.pdf
Bahria University Islamabad, Pakistan
 
Database systems Handbook dbms.pdf
Database systems Handbook dbms.pdfDatabase systems Handbook dbms.pdf
Database systems Handbook dbms.pdf
Bahria University Islamabad, Pakistan
 
Database systems Handbook dbms.pdf
Database systems Handbook dbms.pdfDatabase systems Handbook dbms.pdf
Database systems Handbook dbms.pdf
Bahria University Islamabad, Pakistan
 

Similar to Relational database concept and technology (20)

Database Management Systems (Mcom Ecommerce)
Database Management Systems (Mcom Ecommerce)Database Management Systems (Mcom Ecommerce)
Database Management Systems (Mcom Ecommerce)
 
Choosing your NoSQL storage
Choosing your NoSQL storageChoosing your NoSQL storage
Choosing your NoSQL storage
 
Relational database management systems
Relational database management systemsRelational database management systems
Relational database management systems
 
Database Management System For A Company
Database Management System For A CompanyDatabase Management System For A Company
Database Management System For A Company
 
Lecture#5
Lecture#5Lecture#5
Lecture#5
 
Database and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health InformaticsDatabase and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health Informatics
 
D I T211 Chapter 1 1
D I T211    Chapter 1 1D I T211    Chapter 1 1
D I T211 Chapter 1 1
 
Data base management system
Data base management systemData base management system
Data base management system
 
D I T211 Chapter 1
D I T211    Chapter 1D I T211    Chapter 1
D I T211 Chapter 1
 
Data base management system
Data base management systemData base management system
Data base management system
 
Mdb dn 2016_04_check_constraints
Mdb dn 2016_04_check_constraintsMdb dn 2016_04_check_constraints
Mdb dn 2016_04_check_constraints
 
Discussion post· The proper implementation of a database is es.docx
Discussion post· The proper implementation of a database is es.docxDiscussion post· The proper implementation of a database is es.docx
Discussion post· The proper implementation of a database is es.docx
 
Database Management System ( Dbms )
Database Management System ( Dbms )Database Management System ( Dbms )
Database Management System ( Dbms )
 
Introduction to database with ms access(DBMS)
Introduction to database with ms access(DBMS)Introduction to database with ms access(DBMS)
Introduction to database with ms access(DBMS)
 
Introduction to database with ms access.hetvii
Introduction to database with ms access.hetviiIntroduction to database with ms access.hetvii
Introduction to database with ms access.hetvii
 
Components and Advantages of DBMS
Components and Advantages of DBMSComponents and Advantages of DBMS
Components and Advantages of DBMS
 
Data models
Data modelsData models
Data models
 
Database systems Handbook 2V.pdf
Database systems Handbook 2V.pdfDatabase systems Handbook 2V.pdf
Database systems Handbook 2V.pdf
 
Database systems Handbook dbms.pdf
Database systems Handbook dbms.pdfDatabase systems Handbook dbms.pdf
Database systems Handbook dbms.pdf
 
Database systems Handbook dbms.pdf
Database systems Handbook dbms.pdfDatabase systems Handbook dbms.pdf
Database systems Handbook dbms.pdf
 

More from Ducat

Dot net training institute
Dot net training instituteDot net training institute
Dot net training institute
Ducat
 
Mis certification
Mis certificationMis certification
Mis certification
Ducat
 
Devops certification
Devops certificationDevops certification
Devops certification
Ducat
 
Best ethical hacking course online
Best ethical hacking course onlineBest ethical hacking course online
Best ethical hacking course online
Ducat
 
React js training course in noida
React js training course in noidaReact js training course in noida
React js training course in noida
Ducat
 
Java for beginners
Java for beginnersJava for beginners
Java for beginners
Ducat
 
Benfits of python
Benfits of pythonBenfits of python
Benfits of python
Ducat
 
Interactive reports development
Interactive reports developmentInteractive reports development
Interactive reports development
Ducat
 
Abap report
Abap reportAbap report
Abap report
Ducat
 
Sap abap database table
Sap abap database tableSap abap database table
Sap abap database table
Ducat
 
Sap s4 hana saps next generation business suite
Sap s4 hana saps next generation business suiteSap s4 hana saps next generation business suite
Sap s4 hana saps next generation business suite
Ducat
 
Connect dashboard designer
Connect dashboard designerConnect dashboard designer
Connect dashboard designer
Ducat
 
Major components of sap hana
Major components of sap hanaMajor components of sap hana
Major components of sap hana
Ducat
 
Schema in sap hana
Schema in sap hanaSchema in sap hana
Schema in sap hana
Ducat
 
Sap hana attribute view
Sap hana attribute viewSap hana attribute view
Sap hana attribute view
Ducat
 
Sap hana studio administration console
Sap hana studio administration consoleSap hana studio administration console
Sap hana studio administration console
Ducat
 
What is ebs
What is ebsWhat is ebs
What is ebs
Ducat
 
Introduction to mern
Introduction to mernIntroduction to mern
Introduction to mern
Ducat
 
Selenium tutorials
Selenium tutorialsSelenium tutorials
Selenium tutorials
Ducat
 
Waits alerts and switch windows
Waits alerts and switch windowsWaits alerts and switch windows
Waits alerts and switch windows
Ducat
 

More from Ducat (20)

Dot net training institute
Dot net training instituteDot net training institute
Dot net training institute
 
Mis certification
Mis certificationMis certification
Mis certification
 
Devops certification
Devops certificationDevops certification
Devops certification
 
Best ethical hacking course online
Best ethical hacking course onlineBest ethical hacking course online
Best ethical hacking course online
 
React js training course in noida
React js training course in noidaReact js training course in noida
React js training course in noida
 
Java for beginners
Java for beginnersJava for beginners
Java for beginners
 
Benfits of python
Benfits of pythonBenfits of python
Benfits of python
 
Interactive reports development
Interactive reports developmentInteractive reports development
Interactive reports development
 
Abap report
Abap reportAbap report
Abap report
 
Sap abap database table
Sap abap database tableSap abap database table
Sap abap database table
 
Sap s4 hana saps next generation business suite
Sap s4 hana saps next generation business suiteSap s4 hana saps next generation business suite
Sap s4 hana saps next generation business suite
 
Connect dashboard designer
Connect dashboard designerConnect dashboard designer
Connect dashboard designer
 
Major components of sap hana
Major components of sap hanaMajor components of sap hana
Major components of sap hana
 
Schema in sap hana
Schema in sap hanaSchema in sap hana
Schema in sap hana
 
Sap hana attribute view
Sap hana attribute viewSap hana attribute view
Sap hana attribute view
 
Sap hana studio administration console
Sap hana studio administration consoleSap hana studio administration console
Sap hana studio administration console
 
What is ebs
What is ebsWhat is ebs
What is ebs
 
Introduction to mern
Introduction to mernIntroduction to mern
Introduction to mern
 
Selenium tutorials
Selenium tutorialsSelenium tutorials
Selenium tutorials
 
Waits alerts and switch windows
Waits alerts and switch windowsWaits alerts and switch windows
Waits alerts and switch windows
 

Recently uploaded

A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 

Recently uploaded (20)

A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 

Relational database concept and technology

  • 1. WELCOME TO DUCAT INDIA RELATIONAL DATABASE CONCEPT AND TECHNOLOGY CONTACT US:- 70-70-90-50-90 info@ducatindia.com
  • 2. RELATIONAL DATABASE CONCEPT AND TECHNOLOGY A Relational Database Management System (RDBMS) is a server that manages data for you. The data is structured into tables, where each table has some number of columns, each of which has a name and a type. For example, to keep track of James Bond movies, we might have a “movies” table that records the title (a string), year of release (a number), and the actor who played Bond in each movie (an index into a table of Bond actors). Tables are grouped together into databases, so a James Bond database might have tables for movies, actors playing Bond, and villains. An RDBMS usually has its own user system, which controls access rights for databases (e.g., “user Fred can update database Bond”). PHP communicates with relational databases such as MySQL and Oracle using the Structured Query Language (SQL). You can use SQL to create, modify, and query relational databases.
  • 3. The syntax for SQL is divided into two parts. The first, Data Manipulation Language, or DML, is used to retrieve and modify data in an existing database. DML is remarkably compact, consisting of only four verbs: select, insert, update, and delete. The set of SQL commands, used to create and modify the database structures that hold the data, is known as Data Definition Language, or DDL. The syntax for DDL is not as standardized as that for DML, but as PHP just sends any SQL commands you give it to the database, you can use any SQL commands your database supports. Web Database Design A web database is a wide term for managing data online. A web database gives you the ability to build your own databases/data storage without you being a database guru or even a technical person. Website operators can manage this collection of data and present analytical results based on the data in the Web database application. Databases first appeared in the 1990s, and have been an asset for businesses, allowing the collection of seemingly infinite amounts of data from infinite amounts of customers. Web SQL Database is a web page API for storing data in databases that can be queried using a variant of SQL.Databases are everywhere, including everywhere in the world of web development. Everything from the simplest blogs and directories and to robust user-oriented websites use databases. No matter how complex or simple the website and corresponding database may be though, each takes careful planning in order to run efficiently and also securely.
  • 4. What Functionality is Needed from the Database? The first method for planning for a database is to simply brainstorm, on paper or otherwise, concerning what the database will need to store, and what the site will need out of it. Try not to think of the individual fields or tables that will be needed at this point – all that specific planning can take place later. The goal is to start with a general and complete view and narrow down. It can often times be more difficult to add in items later, rather than get it right the first time. Think outside the database. Try to think about what the website will need to do. For example, if a membership website is needed, the first instinct may be to begin thinking of all the data each user will need to store. Forget it, that’s for later. Rather, write down that users and their information will need to be stored in the database, and what else? What will those members need to do on the site? Will they make posts, upload files or photos, or send messages? Then the database will need a place for files/photos, posts, and messages. What information will they need to derive from the site? Will they need to search for their favorite recipe, be able to access member-only content, or need to look up products and their recently purchased or viewed products? Then the database will need a place to hold those recipes, a place for content that is defined as members-only or not or hold all products and create a method to link certain products to a specific member.
  • 5. Determining Tables and Fields The next phase would be to begin determining exactly what tables and fields one would need in the database. This is the core of database design, and the most difficult part. Using correct methods for linking tables together, sorting the data within each table correctly, and grouping it or keeping it separate are all arising problems when it comes to database design. At this point, list out what tables and fields are clear at this point, trying to be as specific as possible. Through the process, items can be rearranged or reorganized to improve the database’s efficiency and security. Use a Data Modeling Tool Now that you know what the site will need to do, it’s time to organize what exact information needs to be stored. A great database design tool can be helpful for this; specifically, one that can help set up visual database models, such as MySQL Workbench (for MySQL databases only) or DBDesigner4. Cliffy is also a great free online application for creating flowcharts and database models. An example of output of data modelling tool is: Database Design Using Data Modelling Tools Become familiar with the common icons and standard visual elements necessary to create database models and begin planning via flowcharts and diagrams ahead of time. This can sort out logical errors before any actual databases are created.
  • 6. Relational Databases Almost all databases are relational databases. This means that the tables in the database are related to each other in some way. For example, if a there is a member on an ecommerce website, that member may be related to certain products based on what they ordered last, or what they have expressed they are interested in. For a blog database, authors would have to be somehow related to the posts they wrote and logged in users could be related to any comments they’ve left. By using the techniques for relational databases, we can store plenty of information in an organized fashion within separate tables: one table for members, one for posts, another for comments, and yet another for products. Then, we can link the data between different tables together via unique keys. The below figure shows the table present in relational database: Table Structure in Relational Database Every entry in every table needs a unique primary key. This is the “social security number” or “bar code” for each entry. It is unique to each entry, and no other entry can have the same ID in the same table. Having unique usernames or product names in a database table is not enough. It is far more efficient, and best practice as well, to use unique primary keys. Even with other types of unique fields, a database is still vulnerable to duplicate records, which can later break code within the website.
  • 7. Relationship Diagram This is a simple one-to-one relationship model. There are also models for one-to-many and many-to-many relationships. Grouping or Separating Data info Fields Within fields, it’s also important to know when to group certain pieces of data together, and when to keep them separate. A good way to determine which information should be in the same field or otherwise is to think about what it would take to change that piece of information if necessary. For example, would it be necessary to place a full address in separate fields, based on 1) street address, 2) city, 3) state, 4) zip code, and then 5) country? Is it essential for the functionality of the site (perhaps users or admins would need to search addresses by state only), or is it just a waste of fields and database space? If it’s not essential, just to change an address the database would have to update five separate fields, when it could just update one field in string form. To keep such a field organized, one could take in the information via an HTML form with these fields separated, but then concatenate them into one single string before placing the address into the database. This is just one example, but always keep in mind the most efficient ways to organize table fields, and when to combine them, or when to keep them separate for the sake of the website’s functionality. Database Normalization Database normalization is a set of guidelines created by the community for organizing data in a database efficiently. We’ve mentioned a few of the most important and basic practices already, which are included in some of the most standard normalization forms. There are five normal forms to follow, and it’s a good idea to learn about these five forms in order to conform any database’s design to their best practices. Database normalization is a large topic, but just understanding the basics can help tremendously.
  • 8. Web Database Architecture A database management system (DBMS) is system software for creating and managing databases. The DBMS provides users and programmers with a systematic way to create, retrieve, update and manage data. A Database Management system is not always directly available for users and applications to access and store data in it. A Database Management system can be centralised(all the data stored at one location), decentralised(multiple copies of database at different locations) or hierarchical, depending upon its architecture. 1-tier DBMS architecture also exist, this is when the database is directly available to the user for using it to store data. Generally, such a setup is used for local application development, where programmers communicate directly with the database for quick response. Database Architecture is logically of two types: • 2-tier DBMS architecture • 3-tier DBMS architecture 2-tier DBMS Architecture An application interface known as ODBC(Open Database Connectivity) provides an API that allow client side program to call the DBMS. Most DBMS vendors provide ODBC drivers for their DBMS.