com/)
ONLINECOURSES(http://studytonight.com/onlinecourses/)
STUDYROOM(http://studytonight.com/studyroom/)
WRITE
FORUS&
GETPAID!
(/collaborate)
LIBRARY(http://studytonight.com/library/)
DATABASEMANAGEMENTSYSTEM
FLASHCARDS(http://studytonight.com/flashcards/)
"WithoutSQL,websiteswillneverhaveanywaytohandleDatabasesfordata."
(http://www.addthis.com/bookmark.php?v=300&winname=addthis&pub=
TESTS NEW(http://studytonight.com/tests/)
us&s=linkedin&url=http%3A%2F%2Fwww.studytonight.com%2Fdbms%2F
ra4fcb15e01d1a671c//per
Like
14/54f3ebcd7842501e/2&frommenu=1&uid=54f3ebcd9155e38e&ct=1&pre=
9.5k
normalization.php&tt=0&captcha_provider=nucaptcha)
Search
LogIn(http://www.studytonight.com/login)
SignUp(http://www.studytonight.com/register)
Suggest(http://www.studytonight.com/suggest)
Like
81
397
ERDiagram
ERDiagramisavisualrepresentationofdatathatdescribeshowdataisrelatedtoeachother.
DatabaseConcept
OverviewofDBMS
(overviewofdbms)
DatabaseArchitecture
(architectureofdatabase)
DatabaseModel(database
model)
Codd'srule(coddrule)
RDBMSConcept(rdbms
concept)
Databasekey(database
key)
Normalization(database
normalization)
ERDiagrams(erdiagram)
Generalizationand
Specialization
(generalizationand
specialization)
SQLConcept
SymbolsandNotations
SQLIntroduction
(introductiontosql)
DDLCommand
Createquery(createquery)
Alterquery(alterquery)
Truncate,Dropand
Renamequery(truncate
droprenamequery)
DMLCommand
AllDMLcommand(dml
command)
TCLCommand
AllTCLCommand(tcl
command)
DCLCommand
AllDCLCommand(dcl
command)
WHEREclause(where
clause)
SELECTquery(select
query)
LIKEclause(likeclause)
ORDERBYclause(orderby
clause)
GroupBYclause(groupby
clause)
Havingclause(having
clause)
DISTINCTkeyword(distinct
keyword)
AND&ORoperator(sql
andoroperator)
AdvanceSQL
SQLConstraints(sql
constraints)
SQLfunction(sqlfunction)
SQLJoin(joininginsql)
SQLAlias(sqlalias)
SQLSEToperation(set
operationinsql)
SQLSequences(sql
sequences)
SQLViews(sqlviews)
ComponentsofERDiagram
TheERdiagramhasthreemaincomponents.
1)Entity
TestYourself!
Ifyouhavestudiedallthelessons
ofDBMS,thenevaluateyourselfby
AnEntitycanbeanyobject,place,personorclass.InERDiagram,anentityisrepresentedusing
rectangles.ConsideranexampleofanOrganisation.Employee,Manager,Department,Productandmany
morecanbetakenasentitiesfromanOrganisation.
takingthesetests.
DBMSTopicalTest(http://www.studytonight.com/dbms/tests/)
WeakEntity
Weakentityisanentitythatdependsonanotherentity.Weakentitydoen'thavekeyattributeoftheirown.
Doublerectanglerepresentsweakentity.
2)Attribute
AnAttributedescribesapropertyorcharactersticofanentity.Forexample,Name,Age,Addressetccanbe
attributesofaStudent.Anattributeisrepresentedusingeclipse.
KeyAttribute
KeyattributerepresentsthemaincharactersticofanEntity.ItisusedtorepresentPrimarykey.Ellipsewith
underlyinglinesrepresentKeyAttribute.
CompositeAttribute
Anattributecanalsohavetheirownattributes.TheseattributesareknownasCompositeattribute.
3)Relationship
ARelationshipdescribesrelationsbetweenentities.Relationshipisrepresentedusingdiamonds.
TherearethreetypesofrelationshipthatexistbetweenEntities.
BinaryRelationship
RecursiveRelationship
TernaryRelationship
BinaryRelationship
BinaryRelationshipmeansrelationbetweentwoEntities.Thisisfurtherdividedintothreetypes.
1. OnetoOne:Thistypeofrelationshipisrarelyseeninrealworld.
Theaboveexampledescribesthatonestudentcanenrollonlyforonecourseandacoursewillalsohave
onlyoneStudent.Thisisnotwhatyouwillusuallyseeinrelationship.
2. OnetoMany:Itreflectsbusinessrulethatoneentityisassociatedwithmanynumberofsameentity.For
example,StudentenrollsforonlyoneCoursebutaCoursecanhavemanyStudents.
Thearrowsinthediagramdescribesthatonestudentcanenrollforonlyonecourse.
3. ManytoMany:
Theabovediagramrepresentsthatmanystudentscanenrollformorethanonecourses.
RecursiveRelationship
WhenanEntityisrelatedwithitselfitisknownasRecursiveRelationship.
TernaryRelationship
RelationshipofdegreethreeiscalledTernaryrelationship.
Prev(databasenormalization.php)
Next(generalizationandspecialization.php)
HandcraftedwithLove
AboutUs(http://www.studytonight.com/about)Suggest(http://www.studytonight.com/suggest)Terms(http://www.studytonight.com/terms)ContactUs
(http://www.studytonight.com/contact)Collaborate(http://www.studytonight.com/collaborate/)Authors(http://www.studytonight.com/authors/)Blog
(http://studytonight.tumblr.com/)