Professional Documents
Culture Documents
edu)
CSC4402Homework1
FelipeRonderos
1.
TheadvantagesDatabaseSystemshavewhencomparedtotraditionalfile
processingsystemsincludetheireliminationofredundancyandinconsistencyin
data.Databasesystemsaregenerallydesignedtostorevaluesinoneplacewhere
theycanbereferencedbyotherentities.Thismakesitmucheasiertoupdateavalue
andpreserveconsistency.MostDatabaseSystemsalsoenforceconsistencyrules
whenvaluesareaddedorchangedandhaveAtomicTransactionsinorderto
preservetheDatasconsistencyevenwhenerrorsoccur.
2.
PhysicalDataIndependencereferstotheabilitytohavenodependenceonthe
physicalschemaofanapplication.Thisallowstheotherpartsoftheapplicationto
remainunaffectedwhenthephysicalschemaischanged.
LogicalDataIndependencereferstothesameconceptforthephysicalpartofa
system.Thisphysicalpartshouldgenerallyremainunaffectedevenifthelogical
schemachangesdramatically.
Thethreelevelarchitectureinthediagramaboveshowshowinterfacesand
abstractionsallowdifferentpartsofadatabasesystemtoremaincompartmentalized
FelipeRonderos(fronde1@lsu.edu)
andindependent.Thismakesitmucheasiertochangeanyonepartofthesystemas
sideeffectsaregenerallycontainedtothetierwhichischanged.
3.
DBMS,DatabaseManagementSystem:
ADBMSisasetofSoftwareforsettingup,configuring,interactingwithand
maintainingaDatabaseSystem.
DBA,DatabaseAdministrator:
ADBAisresponsibleforconfiguring,andmaintainingadatabasesystem.Theyare
alsoresponsibleforensuringdataissecure,protectedandaccessibletothe
appropriateusers.
DataIntegrity:
ThisreferstotheexpectationthatDatawillbeconsistentandconformtospecified
constraints.
DataInconsistency:
Whenvariouscopiesofdatadonotagreeorconformtospecifiedconstraints.
DataAbstraction:
Thisreferstotheabilitytoaccessandmanagedatathroughaseriesofabstractor
highlevelinterfacesaccessibletousersandadministrators.
PhysicalSchema:
Thisdescribesthedatabasedesignatthephysicallevel,includinghowdataisstored
andaccessed(e.g.inafilesystem)aswellashowthedatabaseishostedand
physicallymaintained.
LogicalSchema:
Thisdescribesthedataschemasdefinedbyandinteractedwithbyusersand
administratorsaswellastheinterfacesavailabletothem.
DataModel:
Thesetofconceptsusedtodescribedata,relationshipsandconstraints..
DDL,DataDefinitionLanguage:
ADDLallowssomeonetospecifyadatabaseschemaaswellasadditionaldata
propertiesandconstraints.
DataDictionary:
InformationaboutadatabaseoutputbytheDDLisplacedinthedatadictionary,
whichisusedasareferencebytheDBMS.
FelipeRonderos(fronde1@lsu.edu)
RelationalDatabase:
Adatabasebasedontherelationalmodelwhichusescollectionsoftablesto
representbothdataandrelationshipsbetweendata.
4.
1.
2.
3.
4.
SELECTSnum,Name,ProgramFROMCSC4402WHERECity=BatonRouge
UPDATECSC4402SETDept=CSCWHERESnum=S6
DELETEFROMCSC4402WHEREcity=Lafayette
INSERTINTOCSC4402(Snum,Name,Dept,Program,City)
VALUES(S8,Rachel,CSC,Ph.D,BatonRouge)
COMMIT