0% found this document useful (0 votes)
274 views10 pages

DBMS Interview Questions Question and Answers

The document discusses various database management system concepts including what a database is, the advantages of using a DBMS, what normalization is, different data models like ER and object-oriented models, relational and distributed databases, SQL, database queries, indexing, and data warehousing.

Uploaded by

Raj
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)
274 views10 pages

DBMS Interview Questions Question and Answers

The document discusses various database management system concepts including what a database is, the advantages of using a DBMS, what normalization is, different data models like ER and object-oriented models, relational and distributed databases, SQL, database queries, indexing, and data warehousing.

Uploaded by

Raj
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/ 10

DBMSInterviewQuestionsDBMSInterviewQuestionsQuestionandAnswers

MoreRelatedContent
1.Whatisdatabase?
Adatabaseisacollectionofinformationthatisorganized.Sothatitcaneasilybeaccessed,managed,andupdated.

2.WhatisDBMS?

DBMSstandsforDatabaseManagementSystem.Itisacollectionofprogramsthatenablesusertocreateandmaintainada

3.WhatisaDatabasesystem?
ThedatabaseandDBMSsoftwaretogetheriscalledasDatabasesystem.

4.WhataretheadvantagesofDBMS?
I.Redundancyiscontrolled.
II.Providingmultipleuserinterfaces.
III.Providingbackupandrecovery
IV.Unauthorizedaccessisrestricted.
V.Enforcingintegrityconstraints.

5.Whatisnormalization?

ItisaprocessofanalysingthegivenrelationschemasbasedontheirFunctionalDependencies(FDs)andprimarykeytoach
(1).Minimizingredundancy,(2).Minimizinginsertion,deletionandupdateanomalies.

6.WhatisDataModel?
Acollectionofconceptualtoolsfordescribingdata,datarelationshipsdatasemanticsandconstraints.

7.WhatisERmodel?

Thisdatamodelisbasedonrealworldthatconsistsofbasicobjectscalledentitiesandofrelationshipamongtheseobjects.
asetofattributes.

8.WhatisObjectOrientedmodel?

Thismodelisbasedoncollectionofobjects.Anobjectcontainsvaluesstoredininstancevariableswithintheobject.Anobje
operateontheobject.Thesebodiesofcodearecalledmethods.Objectsthatcontainsametypesofvaluesandthesameme
classes.

9.WhatisanEntity?
Anentityisathingorobjectofimportanceaboutwhichdatamustbecaptured.

10.WhatisDDL(DataDefinitionLanguage)?

AdatabaseschemaisspecifiesbyasetofdefinitionsexpressedbyaspeciallanguagecalledDDL.

11.WhatisDML(DataManipulationLanguage)?

Thislanguagethatenableusertoaccessormanipulatedataasorganisedbyappropriatedatamodel.ProceduralDMLorLow
whatdataareneededandhowtogetthosedata.NonProceduralDMLorHighlevel:DMLrequiresausertospecifywhatda
togetthosedata

12.WhatisDMLCompiler?

IttranslatesDMLstatementsinaquerylanguageintolowlevelinstructionthatthequeryevaluationenginecanunderstan

13.WhatisQueryevaluationengine?
Itexecuteslowlevelinstructiongeneratedbycompiler.

14.WhatisFunctionalDependency?

FunctionalDependencyisthestartingpointofnormalization.FunctionalDependencyexistswhenarelationbetweentwoat
determinethecorrespondingattribute
svalue.

15.Whatis1NF(NormalForm)?

Thefirstnormalformor1NFisthefirstandthesimplesttypeofnormalizationthatcanbeimplementedinadatabase.The
1.Eliminateduplicativecolumnsfromthesametable.
2.Createseparatetablesforeachgroupofrelateddataandidentifyeachrowwithauniquecolumn(theprimarykey).

16.WhatisFullyFunctionaldependency?

AfunctionaldependencyXYisfullfunctionaldependencyifremovalofanyattributeAfromXmeansthatthedependencyd

17.Whatis2NF?

ArelationschemaRisin2NFifitisin1NFandeverynonprimeattributeAinRisfullyfunctionallydependentonprimaryk

18.Whatis3NF?

ArelationisinthirdnormalformifitisinSecondNormalFormandtherearenofunctional(transitive)dependenciesbetwee
attributes.

19.WhatisBCNF(BoyceCoddNormalForm)?
AtableisinBoyceCoddnormalform(BCNF)ifandonlyifitisin3NFandeverydeterminantisacandidatekey.

20.Whatis4NF?
FourthnormalformrequiresthatatablebeBCNFandcontainnomultivalueddependencies.

21.Whatis5NF?

Atableisinfifthnormalform(5NF)orProjectJoinNormalForm(PJNF)ifitisin4NFanditcannothavealosslessdecompo
tables.

22.Whatisaquery?
AquerywithrespecttoDBMSrelatestousercommandsthatareusedtointeractwithadatabase.

23.Whatismeantbyqueryoptimization?

Thephasethatidentifiesanefficientexecutionplanforevaluatingaquerythathastheleastestimatedcostisreferredtoas

24.Whatisanattribute?
Itisaparticularproperty,whichdescribestheentity.

25.WhatisRDBMS?

RelationalDataBaseManagementSystems(RDBMS)aredatabasemanagementsystemsthatmaintaindatarecordsandin

26.What
sdifferencebetweenDBMSandRDBMS?

DBMSprovidesasystematicandorganizedwayofstoring,managingandretrievingfromcollectionoflogicallyrelatedinform
DBMSprovidesbutabovethatitprovidesrelationshipintegrity.

27.WhatisSQL?

SQLstandsforStructuredQueryLanguage.SQLisanANSI(AmericanNationalStandardsInstitute)standardcomputerlan
databasesystems.SQLstatementsareusedtoretrieveandupdatedatainadatabase.

28.WhatisStoredProcedure?

AstoredprocedureisanamedgroupofSQLstatementsthathavebeenpreviouslycreatedandstoredintheserverdatabas

29.Whatisaview?

Aviewmaybeasubsetofthedatabaseoritmaycontainvirtualdatathatisderivedfromthedatabasefilesbutisnotexplic

30.WhatisTrigger?
AtriggerisaSQLprocedurethatinitiatesanactionwhenanevent(INSERT,DELETEorUPDATE)occurs.

31.WhatisIndex?
Anindexisaphysicalstructurecontainingpointerstothedata.

32.Whatisextensionandintension?
ExtensionItisthenumberoftuplespresentinatableatanyinstance.Thisistimedependent.
IntensionItisaconstantvaluethatgivesthename,structureoftableandtheconstraintslaidonit.

33.Whatdoyoumeanbyatomicityandaggregation?

AtomicityAtomicitystatesthatdatabasemodificationsmustfollowan
allornothing
rule.Eachtransactionissaidtobe
atom
fails,theentiretransactionfails.

AggregationAfeatureoftheentityrelationshipmodelthatallowsarelationshipsettoparticipateinanotherrelationshipse
bydrawingadashedboxaroundtheaggregation.

34.WhatisRDBMSKERNEL?

TwoimportantpiecesofRDBMSarchitecturearethekernel,whichisthesoftware,andthedatadictionary,whichconsistso
usedbythekerneltomanagethedatabase.

35.NamethesubsystemsofaRDBMS?

I/O,Security,LanguageProcessing,ProcessControl,StorageManagement,LoggingandRecovery,DistributionControl,Tran
LockManagement.

36.HowdoyoucommunicatewithanRDBMS?
YoucommunicatewithanRDBMSusingStructuredQueryLanguage(SQL)

37.DisadvantageinFileProcessingSystem?
Dataredundancy&inconsistency.
Difficultinaccessingdata.
Dataisolation.
Dataintegrity.
Concurrentaccessisnotpossible.
SecurityProblems.

38.WhatisVDL(ViewDefinitionLanguage)?
Itspecifiesuserviewsandtheirmappingstotheconceptualschema.

39.WhatisSDL(StorageDefinitionLanguage)?
Thislanguageistospecifytheinternalschema.ThislanguagemaySpecifythemappingbetweentwoschemas.

40.Describeconcurrencycontrol?

Concurrencycontrolistheprocessmanagingsimultaneousoperationsagainstadatabasesothatdatabaseintegrityisnoco
toconcurrencycontrol.
Thepessimisticapproachinvolveslockingandtheoptimisticapproachinvolvesversioning.

41.Describethedifferencebetweenhomogeneousandheterogeneousdistributeddatabase?

AhomogenousdatabaseisonethatusesthesameDBMSateachnode.Aheterogeneousdatabaseisonethatmayhavea

42.Whatisadistributeddatabase?

Adistributeddatabaseisasinglelogicaldatabasethatisspreadacrossmorethanonenodeorlocationsthatareallconnecte

43.Explainthedifferencebetweentwoandthreetierarchitectures?
Threetierarchitectureincludesaclientandtwoserverlayers.

Theapplicationcodeisstoredontheapplicationserverandthedatabaseisstoredonthedatabaseserver.Atwotierarch
serverlayer.Thedatabaseisstoredonthedatabaseserver.

44.BrieflydescribethethreetypesofSQLcommands?

Datadefinitionlanguagecommandsareusedtocreate,alter,anddroptables.Datamanipulationcommandsareusedtoins
thedatabase.DatacontrollanguagecommandshelptheDBAtocontrolthedatabase.

45.Listsomeofthepropertiesofarelation?

Relationsinadatabasehaveauniquenameandnomultivaluedattributesexist.Eachrowisuniqueandeachattributewith
sequenceofbothcolumnsandrowsisirrelevant.

46.Explainthedifferencesbetweenanintranetandanextranet?

AnInternetdatabaseisaccessiblebyeveryonewhohasaccesstoaWebsite.Anintranetdatabaselimitsaccesstoonlypeo

47.WhatisSQLDeadlock?

Deadlockisauniquesituationinamultiusersystemthatcausestwoormoreuserstowaitindefinitelyforalockedresource

48.WhatisaCatalog?

Acatalogisatablethatcontainstheinformationsuchasstructureofeachfile,thetypeandstorageformatofeachdataite
.TheinformationstoredinthecatalogiscalledMetadata.

49.Whatisdatawarehousing&OLAP?

DatawarehousingandOLAP(onlineanalyticalprocessing)systemsarethetechniquesusedinmanycompaniestoextracta
verylargedatabasesfordecisionmaking.

50.Describethethreelevelsofdataabstraction?
Physicallevel:Thelowestlevelofabstractiondescribeshowdataarestored.

Logicallevel:Thenexthigherlevelofabstraction,describeswhatdataarestoredindatabaseandwhatrelationshipamongt
Viewlevel:Thehighestlevelofabstractiondescribesonlypartofentiredatabase.

51.WhatisDataIndependence?
Dataindependencemeansthattheapplicationisindependentofthestoragestructureandaccessstrategyofdata.

52.Howmanytypesofrelationshipexistindatabasedesigning?

Therearethreemajorrelationshipmodels:
Onetoone
Onetomany
Manytomany

53.Whatisorderbyclause?
ORDERBYclausehelpstosortthedataineitherascendingordertodescending

54.WhatistheuseofDBCCcommands?

DBCCstandsfordatabaseconsistencychecker.Weusethesecommandstochecktheconsistencyofthedatabases,i.e.,m
checks.

55.WhatisCollation?
Collationreferstoasetofrulesthatdeterminehowdataissortedandcompared.

56.WhatisdifferencebetweenDELETE&TRUNCATEcommands?

DeletecommandremovestherowsfromatablebasedontheconditionthatweprovidewithaWHEREclause.Truncatewill
tableandtherewillbenodatainthetableafterwerunthetruncatecommand.

57.WhatisHashingtechnique?
Thisisaprimaryfileorganizationtechniquethatprovidesveryfastaccesstorecordsoncertainsearchconditions.

58.Whatisatransaction?
Atransactionisalogicalunitofdatabaseprocessingthatincludesoneormoredatabaseaccessoperations.

59.WhatarethedifferentphasesofTransaction?
Analysisphase
Redophase
Undophase

60.Whatis
transparentdbms
?
Itisone,whichkeepsitsphysicalstructurehiddenfromuser.

61.WhataretheprimitiveoperationscommontoallrecordmanagementSystem?
Addition,deletionandmodification.

62.Explainthedifferencesbetweenstructureddataandunstructureddata.

Structureddataarefactsconcerningobjectsandevents.Themostimportantstructureddataarenumeric,character,andd

Structureddataarestoredintabularform.Unstructureddataaremultimediadatasuchasdocuments,photographs,maps,
UnstructureddataaremostcommonlyfoundonWebserversandWebenableddatabases.

63.Whatarethemajorfunctionsofthedatabaseadministrator?

Managingdatabasestructure,controllingconcurrentprocessing,managingprocessingrightsandresponsibilities,developing
databaserecovery,managingtheDBMSandmaintainingthedatarepository.

64.Whatisadependencygraph?
Adependencygraphisadiagramthatisusedtoportraytheconnectionsbetweendatabaseelements.

65.Explainthedifferencebetweenanexclusivelockandasharedlock?

Anexclusivelockprohibitsotherusersfromreadingthelockedresourceasharedlockallowsotheruserstoreadthelocked

66.Explainthe"paradigmmismatch"betweenSQLandapplicationprogramminglanguages.

SQLstatementsreturnasetofrows,whileanapplicationprogramworksononerowatatime.Toresolvethismismatchth
processedaspseudofiles,usingacursororpointertospecifywhichrowisbeingprocessed.

67.Namefourapplicationsfortriggers.
(1)Providingdefaultvalues,(2)enforcingdataconstraints,
(3)Updatingviewsand(4)enforcingreferentialintegrity

68.Whataretheadvantagesofusingstoredprocedures?

Theadvantagesofstoredproceduresare(1)greatersecurity,(2)decreasednetworktraffic,(3)thefactthatSQLcanbeopt
leadstolesswork,standardizedprocessing,andspecializationamongdevelopers.

69.Explainthedifferencebetweenattributesandidentifiers.

Entitieshaveattributes.Attributesarepropertiesthatdescribetheentity'scharacteristics.Entityinstanceshaveidentifiers.
oridentify,entityinstances.

70.WhatisEnterpriseResourcePlanning(ERP),andwhatkindofadatabaseisusedinanERPapplication?

EnterpriseResourcePlanning(ERP)isaninformationsystemusedinmanufacturingcompaniesandincludessales,inventor
otherbusinessfunctions.AnERPsystemtypicallyusesamultiuserdatabase.

71.DescribethedifferencebetweenembeddedanddynamicSQL?

EmbeddedSQListheprocessofincludinghardcodedSQLstatements.Thesestatementsdonotchangeunlessthesourcec
processofgeneratingSQLonthefly.Thestatementsgenerateddonothavetobethesameeachtime.

72.Explainajoinbetweentables

Ajoinallowstablestobelinkedtoothertableswhenarelationshipbetweenthetablesexists.Therelationshipsareestablish
tablesandoftenusestheprimary/foreignkeyrelationship.


73.Describeasubquery.

Asubqueryisaquerythatiscomposedoftwoqueries.Thefirstquery(innerquery)iswithintheWHEREclauseoftheothe

74.Compareahierarchicalandnetworkdatabasemodel?

Thehierarchicalmodelisatopdownstructurewhereeachparentmayhavemanychildrenbuteachchildcanhaveonlyon
oneandonetomanyrelationships.

Thenetworkmodelcanbemuchmoreflexiblethanthehierarchicalmodelsinceeachparentcanhavemultiplechildrenbut
parents.Thismodelsupportsonetoone,onetomany,andmanytomanyrelationships.

75.Explainthedifferencebetweenadynamicandmaterializedview.

Adynamicviewmaybecreatedeverytimethataspecificviewisrequestedbyauser.Amaterializedviewiscreatedandor
synchronizedwithitsassociatedbasetable(s).

76.Explainwhatneedstohappentoconvertarelationtothirdnormalform.

Firstyoumustverifythatarelationisinbothfirstnormalformandsecondnormalform.Iftherelationisnot,youmustcon
relationisinsecondnormalform,youmustremovealltransitivedependencies.

77.Describethefourtypesofindexes?

Auniqueprimaryindexisuniqueandisusedtofindandstorearow.Anonuniqueprimaryindexisnotuniqueandisusedt

row(basedonitsuniqueprimaryindex).Auniquesecondaryindexisuniqueforeachrowandusedtofindtablerows.Anon
andusedtofindtablerows.

78.Explainminimumandmaximumcardinality?

Minimumcardinalityistheminimumnumberofinstancesofanentitythatcanbeassociatedwitheachinstanceofanother
maximumnumberofinstancesofanentitythatcanbeassociatedwitheachinstanceofanotherentity.

79.Whatisdeadlock?Howcanitbeavoided?Howcanitberesolvedonceitoccurs?

Deadlockoccurswhentwotransactionsareeachwaitingonaresourcethattheothertransactionholds.Deadlockcanbepr
acquirealllocksatthesametimeonceitoccurs,theonlywaytocureitistoabortoneofthetransactionsandbackoutof

80.ExplainwhatwemeanbyanACIDtransaction.

AnACIDtransactionisonethatisatomic,consistent,isolated,anddurable.Durablemeansthatdatabasechangesareperm
statementlevelortransactionlevelconsistency.Withtransactionlevelconsistency,atransactionmaynotseeitsownchan
unit.

81.Underwhatconditionsshouldindexesbeused?

Indexescanbecreatedtoenforceuniqueness,tofacilitatesorting,andtoenablefastretrievalbycolumnvalues.Agoodcan
frequentlyusedwithequalconditionsinWHEREclauses.

82.WhatisdifferencebetweenSQLandSQLSERVER?

SQLisalanguagethatprovidesaninterfacetoRDBMS,developedbyIBM.SQLSERVERisaRDBMSjustlikeOracle,DB2.

83.WhatisSpecialization?

Itistheprocessofdefiningasetofsubclassesofanentitytypewhereeachsubclasscontainalltheattributesandrelationsh
additionalattributesandrelationshipswhicharespecifictoitself.

84.Whatisgeneralization?

Itistheprocessoffindingcommonattributesandrelationsofanumberofentitiesanddefiningacommonsuperclassforth

85.WhatismeantbyProactive,RetroactiveandSimultaneousUpdate?
ProactiveUpdate:Theupdatesthatareappliedtodatabasebeforeitbecomeseffectiveinrealworld.
RetroactiveUpdate:Theupdatesthatareappliedtodatabaseafteritbecomeseffectiveinrealworld.
SimultaneousUpdate:Theupdatesthatareappliedtodatabaseatthesametimewhenitbecomeseffectiveinrealworld.

86.WhatisRAIDTechnology?

Redundantarrayofinexpensive(orindependent)disks.Themaingoalofraidtechnologyistoevenoutthewidelydifferent
disksagainstthoseinmemoryandmicroprocessor.Raidtechnologyemploysthetechniqueofdatastripingtoachievehighe

87.Whatareserial,nonserialschedule?

AscheduleSisserialif,foreverytransactionTparticipatingintheschedule,alltheoperationsofTisexecutedconsecutively
scheduleiscallednonserialschedule.

88.Whatareconflictserializableschedules?
AscheduleSofntransactionsisserializableifitisequivalenttosomeserialscheduleofthesamentransactions.

89.Whatisviewserializable?
Ascheduleissaidtobeviewserializableifitisviewequivalentwithsomeserialschedule.

90.Whatisaforeignkey?
Akeyofarelationschemaiscalledasaforeignkeyifitistheprimarykeyof
someotherrelationtowhichitisrelatedto.

91.Whatarethedisadvantagesofusingadbms?
1)Highinitialinvestmentsinh/w,s/w,andtraining.
2)GeneralitythataDBMSprovidesfordefiningandprocessingdata.
3)Overheadforprovidingsecurity,concurrencycontrol,recovery,andintegrityfunctions.

92.WhatisLosslessjoinproperty?
Itguaranteesthatthespurioustuplegenerationdoesnotoccurwithrespecttorelationschemasafterdecomposition.

93.WhatisaPhantomDeadlock?

Indistributeddeadlockdetection,thedelayinpropagatinglocalinformationmightcausethedeadlockdetectionalgorithmst
exist.Suchsituationsarecalledphantomdeadlocksandtheyleadtounnecessaryaborts.

94.WhatisacheckpointandWhendoesitoccur?
ACheckpointislikeasnapshotoftheDBMSstate.Bytakingcheckpoints,theDBMScanreducetheamountofworktobed
subsequentcrashes.

95.Whatisschema?
Thedescriptionofadatabaseiscalledthedatabaseschema,whichisspecifiedduringdatabasedesignandisnotexpected
schemaiscalledschemadiagram.Wecalleachobjectintheschemaasschemaconstruct.

Next (http://placement.freshersworld.com/sq

GetinTouchwithus

(https://www.facebook.com/freshersworld)
(http://twitter.com/freshersworld)
(http://www.linkedin.com/company/fresh
(https://plus.google.com/+freshersw
(https://www.youtube.com/use
com)

AboutUs(http://www.freshersworld.com/aboutus) Blog(http://blog.freshersworld.com) FAQs(http://ww

AdvertiseWithUs(http://www.freshersworld.com/advertise) RecruitmentSolutions(http://corp.fresher
ContactUs(http://www.freshersworld.com/contactus)
20062016Freshersworld.com

You might also like