Technical Interview Questions-DBMS Interview Questions
Technical Interview Questions-DBMS Interview Questions
TechnicalInterviewQuestionsDBMSInterviewQuestions
Home(/)AptitudeQuestions(/aptitudequestionsandanswers)TechnicalInterviewQuestionsQuestionsAndAnswers(/technicalinterview
questionsquestionsandanswers/33150841)DbmsInterviewQuestions
SimilarCategories
DBMSInterviewQuestionsDBMSInterviewQuestions
324480
1.Whatisdatabase?
Adatabaseisacollectionofinformationthatisorganized.Sothatitcaneasilybeaccessed,managed,and
updated.
2.WhatisDBMS?
DBMSstandsforDatabaseManagementSystem.Itisacollectionofprogramsthatenablesusertocreate
andmaintainadatabase.
3.WhatisaDatabasesystem?
ThedatabaseandDBMSsoftwaretogetheriscalledasDatabasesystem.
4.WhataretheadvantagesofDBMS?
I.Redundancyiscontrolled.
II.Providingmultipleuserinterfaces.
III.Providingbackupandrecovery
IV.Unauthorizedaccessisrestricted.
V.Enforcingintegrityconstraints.
5.Whatisnormalization?
ItisaprocessofanalysingthegivenrelationschemasbasedontheirFunctionalDependencies(FDs)and
primarykeytoachievetheproperties
(1).Minimizingredundancy,(2).Minimizinginsertion,deletionandupdateanomalies.
more
TCSTechnicalInterviewQuestionsand
Answers
(http://placement.freshersworld.com/technical
interviewquestionsquestionsand
answers/tcstechnicalinterview
questionsandanswers/33112057)
InfosysTechnicalInterviewQuestionsand
Answers
(http://placement.freshersworld.com/technical
interviewquestionsquestionsand
answers/infosystechnicalinterview
questionsandanswers/33112058)
IBSTechnicalInterviewQuestionsand
Answers
(http://placement.freshersworld.com/technical
interviewquestionsquestionsand
answers/ibstechnicalinterview
questionsandanswers/33112072)
WIPROTechnicalInterviewQuestionsand
Answers
(http://placement.freshersworld.com/technical
interviewquestionsquestionsand
answers/wiprotechnicalinterview
questionsandanswers/33112073)
USTGlobalTechnicalInterviewQuestions
andAnswers
(http://placement.freshersworld.com/technical
interviewquestionsquestionsand
answers/ustglobaltechnicalinterview
questionsandanswers/33112075)
ONLINETESTS
http://placement.freshersworld.com/technicalinterviewquestionsquestionsandanswers/dbmsinterviewquestions/33111829166
1/17
TechnicalInterviewQuestionsDBMSInterviewQuestions
6.WhatisDataModel?
Acollectionofconceptualtoolsfordescribingdata,datarelationshipsdatasemanticsandconstraints.
7.WhatisERmodel?
Thisdatamodelisbasedonrealworldthatconsistsofbasicobjectscalledentitiesandofrelationship
amongtheseobjects.Entitiesaredescribedinadatabasebyasetofattributes.
8.WhatisObjectOrientedmodel?
Thismodelisbasedoncollectionofobjects.Anobjectcontainsvaluesstoredininstancevariableswithin
theobject.Anobjectalsocontainsbodiesofcodethatoperateontheobject.Thesebodiesofcodeare
calledmethods.Objectsthatcontainsametypesofvaluesandthesamemethodsaregroupedtogether
intoclasses.
9.WhatisanEntity?
Anentityisathingorobjectofimportanceaboutwhichdatamustbecaptured.
10.WhatisDDL(DataDefinitionLanguage)?
AdatabaseschemaisspecifiesbyasetofdefinitionsexpressedbyaspeciallanguagecalledDDL.
11.WhatisDML(DataManipulationLanguage)?
Thislanguagethatenableusertoaccessormanipulatedataasorganisedbyappropriatedatamodel.
ProceduralDMLorLowlevel:DMLrequiresausertospecifywhatdataareneededandhowtogetthose
data.NonProceduralDMLorHighlevel:DMLrequiresausertospecifywhatdataareneededwithout
specifyinghowtogetthosedata
12.WhatisDMLCompiler?
IttranslatesDMLstatementsinaquerylanguageintolowlevelinstructionthatthequeryevaluation
enginecanunderstand.
OnlineQuantitativetest
(http://p3.placement.freshersworld.com/power
preparation/PracticeTests/Aptitude
QuantitativeQuestionand
Answers/827)
OnlineVerbalAbilityTest
(http://p3.placement.freshersworld.com/power
preparation/PracticeTests/Aptitude
VerbalAbilityQuestionand
Answers/829)
OnlineReasoningTest
(http://p3.placement.freshersworld.com/power
preparation/PracticeTests/Aptitude
ReasoningQuestionandAnswers/831)
feedback
9/2/2016
OnlineDataInterpretationTest
(http://p3.placement.freshersworld.com/power
preparation/PracticeTests/Aptitude
DataInterpretationQuestionand
Answers/833)
OnlineAssesmentTest
(http://p3.placement.freshersworld.com/power
preparation/PracticeTests/Assessment
QuestionandAnswers/825)
TechnicalOnlineTests
(http://p3.placement.freshersworld.com/power
preparation/PracticeTests/Technical
InterviewQuestionandAnswers/845)
ITcompaniesOnlineTest
(http://p3.placement.freshersworld.com/power
preparation/PracticeTests/IT
CompaniesInterviewQuestionand
Answers/842)
http://placement.freshersworld.com/technicalinterviewquestionsquestionsandanswers/dbmsinterviewquestions/33111829166
2/17
TechnicalInterviewQuestionsDBMSInterviewQuestions
13.WhatisQueryevaluationengine?
Itexecuteslowlevelinstructiongeneratedbycompiler.
14.WhatisFunctionalDependency?
FunctionalDependencyisthestartingpointofnormalization.FunctionalDependencyexistswhena
relationbetweentwoattributesallowsyoutouniquelydeterminethecorrespondingattributesvalue.
15.Whatis1NF(NormalForm)?
Thefirstnormalformor1NFisthefirstandthesimplesttypeofnormalizationthatcanbeimplemented
inadatabase.Themainaimsof1NFareto:
1.Eliminateduplicativecolumnsfromthesametable.
2.Createseparatetablesforeachgroupofrelateddataandidentifyeachrowwithauniquecolumn(the
primarykey).
16.WhatisFullyFunctionaldependency?
AfunctionaldependencyXYisfullfunctionaldependencyifremovalofanyattributeAfromXmeansthat
thedependencydoesnotholdanymore.
17.Whatis2NF?
ArelationschemaRisin2NFifitisin1NFandeverynonprimeattributeAinRisfullyfunctionally
dependentonprimarykey.
18.Whatis3NF?
ArelationisinthirdnormalformifitisinSecondNormalFormandtherearenofunctional(transitive)
dependenciesbetweentwo(ormore)nonprimarykeyattributes.
NonITcompaniesAndBankOnline
Test
(http://p3.placement.freshersworld.com/power
preparation/PracticeTests/NonIT
CompaniesAndBankInterview
QuestionandAnswers/843)
BasicGeneralKnowledge
(http://p3.placement.freshersworld.com/power
preparation/PracticeTests/Basic
GeneralKnowledgeQuestionand
Answers/1715)
BasicGeneralKnowledgeLevel2
(http://p3.placement.freshersworld.com/placement
papers/PracticeTests/BasicGeneral
KnowledgeQuestionand
Answers/1744?q=PracticeTests/Basic
GeneralKnowledgeQuestionand
Answers/1744)
feedback
9/2/2016
OnlineCurrentAffairsTest
(http://p3.placement.freshersworld.com/power
preparation/PracticeTests/Current
AffairsQuestionandAnswers/1716)
OnlineGATETest
(http://p3.placement.freshersworld.com/power
preparation/PracticeTests/GATE
QuestionandAnswers/1331)
OnlineCATTest
(http://p3.placement.freshersworld.com/power
preparation/PracticeTests/CAT
QuestionandAnswers/1330)
19.WhatisBCNF(BoyceCoddNormalForm)?
http://placement.freshersworld.com/technicalinterviewquestionsquestionsandanswers/dbmsinterviewquestions/33111829166
3/17
9/2/2016
TechnicalInterviewQuestionsDBMSInterviewQuestions
AtableisinBoyceCoddnormalform(BCNF)ifandonlyifitisin3NFandeverydeterminantisa
candidatekey.
20.Whatis4NF?
FourthnormalformrequiresthatatablebeBCNFandcontainnomultivalueddependencies.
21.Whatis5NF?
Atableisinfifthnormalform(5NF)orProjectJoinNormalForm(PJNF)ifitisin4NFanditcannothavea
losslessdecompositionintoanynumberofsmallertables.
feedback
22.Whatisaquery?
AquerywithrespecttoDBMSrelatestousercommandsthatareusedtointeractwithadatabase.
23.Whatismeantbyqueryoptimization?
Thephasethatidentifiesanefficientexecutionplanforevaluatingaquerythathastheleastestimated
costisreferredtoasqueryoptimization.
24.Whatisanattribute?
Itisaparticularproperty,whichdescribestheentity.
(http://placement.freshersworld.com/power
preparation/placementhome)
25.WhatisRDBMS?
RelationalDataBaseManagementSystems(RDBMS)aredatabasemanagementsystemsthatmaintain
datarecordsandindicesintables.
26.WhatsdifferencebetweenDBMSandRDBMS?
DBMSprovidesasystematicandorganizedwayofstoring,managingandretrievingfromcollectionof
logicallyrelatedinformation.RDBMSalsoprovideswhatDBMSprovidesbutabovethatitprovides
relationshipintegrity.
http://placement.freshersworld.com/technicalinterviewquestionsquestionsandanswers/dbmsinterviewquestions/33111829166
4/17
9/2/2016
TechnicalInterviewQuestionsDBMSInterviewQuestions
27.WhatisSQL?
SQLstandsforStructuredQueryLanguage.SQLisanANSI(AmericanNationalStandardsInstitute)
standardcomputerlanguageforaccessingandmanipulatingdatabasesystems.SQLstatementsareused
toretrieveandupdatedatainadatabase.
28.WhatisStoredProcedure?
AstoredprocedureisanamedgroupofSQLstatementsthathavebeenpreviouslycreatedandstoredin
theserverdatabase.
Aviewmaybeasubsetofthedatabaseoritmaycontainvirtualdatathatisderivedfromthedatabase
filesbutisnotexplicitlystored.
feedback
29.Whatisaview?
30.WhatisTrigger?
AtriggerisaSQLprocedurethatinitiatesanactionwhenanevent(INSERT,DELETEorUPDATE)occurs.
31.WhatisIndex?
Anindexisaphysicalstructurecontainingpointerstothedata.
32.Whatisextensionandintension?
ExtensionItisthenumberoftuplespresentinatableatanyinstance.Thisistimedependent.
IntensionItisaconstantvaluethatgivesthename,structureoftableandtheconstraintslaidonit.
33.Whatdoyoumeanbyatomicityandaggregation?
AtomicityAtomicitystatesthatdatabasemodificationsmustfollowanallornothingrule.Eachtransaction
issaidtobeatomic.Ifonepartofthetransactionfails,theentiretransactionfails.
http://placement.freshersworld.com/technicalinterviewquestionsquestionsandanswers/dbmsinterviewquestions/33111829166
5/17
9/2/2016
TechnicalInterviewQuestionsDBMSInterviewQuestions
AggregationAfeatureoftheentityrelationshipmodelthatallowsarelationshipsettoparticipatein
anotherrelationshipset.ThisisindicatedonanERdiagrambydrawingadashedboxaroundthe
aggregation.
34.WhatisRDBMSKERNEL?
TwoimportantpiecesofRDBMSarchitecturearethekernel,whichisthesoftware,andthedatadictionary,
whichconsistsofthesystemleveldatastructuresusedbythekerneltomanagethedatabase.
35.NamethesubsystemsofaRDBMS?
I/O,Security,LanguageProcessing,ProcessControl,StorageManagement,LoggingandRecovery,
36.HowdoyoucommunicatewithanRDBMS?
YoucommunicatewithanRDBMSusingStructuredQueryLanguage(SQL)
feedback
DistributionControl,TransactionControl,MemoryManagement,LockManagement.
37.DisadvantageinFileProcessingSystem?
Dataredundancy&inconsistency.
Difficultinaccessingdata.
Dataisolation.
Dataintegrity.
Concurrentaccessisnotpossible.
SecurityProblems.
38.WhatisVDL(ViewDefinitionLanguage)?
Itspecifiesuserviewsandtheirmappingstotheconceptualschema.
39.WhatisSDL(StorageDefinitionLanguage)?
http://placement.freshersworld.com/technicalinterviewquestionsquestionsandanswers/dbmsinterviewquestions/33111829166
6/17
9/2/2016
TechnicalInterviewQuestionsDBMSInterviewQuestions
Thislanguageistospecifytheinternalschema.ThislanguagemaySpecifythemappingbetweentwo
schemas.
40.Describeconcurrencycontrol?
Concurrencycontrolistheprocessmanagingsimultaneousoperationsagainstadatabasesothatdatabase
integrityisnocompromised.Therearetwoapproachestoconcurrencycontrol.
Thepessimisticapproachinvolveslockingandtheoptimisticapproachinvolvesversioning.
41.Describethedifferencebetweenhomogeneousandheterogeneousdistributeddatabase?
AhomogenousdatabaseisonethatusesthesameDBMSateachnode.Aheterogeneousdatabaseisone
42.Whatisadistributeddatabase?
Adistributeddatabaseisasinglelogicaldatabasethatisspreadacrossmorethanonenodeorlocations
feedback
thatmayhaveadifferentDBMSateachnode.
thatareallconnectedviasomecommunicationlink.
43.Explainthedifferencebetweentwoandthreetierarchitectures?
Threetierarchitectureincludesaclientandtwoserverlayers.
Theapplicationcodeisstoredontheapplicationserverandthedatabaseisstoredonthedatabase
server.Atwotierarchitectureincludesaclientandoneserverlayer.Thedatabaseisstoredonthe
databaseserver.
44.BrieflydescribethethreetypesofSQLcommands?
Datadefinitionlanguagecommandsareusedtocreate,alter,anddroptables.Datamanipulation
commandsareusedtoinsert,modify,update,andquerydatainthedatabase.Datacontrollanguage
commandshelptheDBAtocontrolthedatabase.
45.Listsomeofthepropertiesofarelation?
http://placement.freshersworld.com/technicalinterviewquestionsquestionsandanswers/dbmsinterviewquestions/33111829166
7/17
9/2/2016
TechnicalInterviewQuestionsDBMSInterviewQuestions
Relationsinadatabasehaveauniquenameandnomultivaluedattributesexist.Eachrowisuniqueand
eachattributewithinarelationhasauniquename.Thesequenceofbothcolumnsandrowsisirrelevant.
46.Explainthedifferencesbetweenanintranetandanextranet?
AnInternetdatabaseisaccessiblebyeveryonewhohasaccesstoaWebsite.Anintranetdatabaselimits
accesstoonlypeoplewithinagivenorganization.
47.WhatisSQLDeadlock?
Deadlockisauniquesituationinamultiusersystemthatcausestwoormoreuserstowaitindefinitelyfor
alockedresource.
48.WhatisaCatalog?
Acatalogisatablethatcontainstheinformationsuchasstructureofeachfile,thetypeandstorage
formatofeachdataitemandvariousconstraintsonthedata.Theinformationstoredinthecatalogis
calledMetadata.
feedback
49.Whatisdatawarehousing&OLAP?
DatawarehousingandOLAP(onlineanalyticalprocessing)systemsarethetechniquesusedinmany
companiestoextractandanalyzeusefulinformationfromverylargedatabasesfordecisionmaking.
50.Describethethreelevelsofdataabstraction?
Physicallevel:Thelowestlevelofabstractiondescribeshowdataarestored.
Logicallevel:Thenexthigherlevelofabstraction,describeswhatdataarestoredindatabaseandwhat
relationshipamongthosedata.
Viewlevel:Thehighestlevelofabstractiondescribesonlypartofentiredatabase.
51.WhatisDataIndependence?
http://placement.freshersworld.com/technicalinterviewquestionsquestionsandanswers/dbmsinterviewquestions/33111829166
8/17
9/2/2016
TechnicalInterviewQuestionsDBMSInterviewQuestions
Dataindependencemeansthattheapplicationisindependentofthestoragestructureandaccessstrategy
ofdata.
52.Howmanytypesofrelationshipexistindatabasedesigning?
Therearethreemajorrelationshipmodels:
Onetoone
Onetomany
Manytomany
ORDERBYclausehelpstosortthedataineitherascendingordertodescending
54.WhatistheuseofDBCCcommands?
feedback
53.Whatisorderbyclause?
DBCCstandsfordatabaseconsistencychecker.Weusethesecommandstochecktheconsistencyofthe
databases,i.e.,maintenance,validationtaskandstatuschecks.
55.WhatisCollation?
Collationreferstoasetofrulesthatdeterminehowdataissortedandcompared.
56.WhatisdifferencebetweenDELETE&TRUNCATEcommands?
DeletecommandremovestherowsfromatablebasedontheconditionthatweprovidewithaWHERE
clause.Truncatewillactuallyremovealltherowsfromatableandtherewillbenodatainthetableafter
werunthetruncatecommand.
57.WhatisHashingtechnique?
Thisisaprimaryfileorganizationtechniquethatprovidesveryfastaccesstorecordsoncertainsearch
conditions.
http://placement.freshersworld.com/technicalinterviewquestionsquestionsandanswers/dbmsinterviewquestions/33111829166
9/17
9/2/2016
TechnicalInterviewQuestionsDBMSInterviewQuestions
58.Whatisatransaction?
Atransactionisalogicalunitofdatabaseprocessingthatincludesoneormoredatabaseaccessoperations.
59.WhatarethedifferentphasesofTransaction?
Analysisphase
Redophase
Undophase
Itisone,whichkeepsitsphysicalstructurehiddenfromuser.
61.WhataretheprimitiveoperationscommontoallrecordmanagementSystem?
feedback
60.Whatistransparentdbms?
Addition,deletionandmodification.
62.Explainthedifferencesbetweenstructureddataandunstructureddata.
Structureddataarefactsconcerningobjectsandevents.Themostimportantstructureddataare
numeric,character,anddates.
Structureddataarestoredintabularform.Unstructureddataaremultimediadatasuchasdocuments,
photographs,maps,images,sound,andvideoclips.UnstructureddataaremostcommonlyfoundonWeb
serversandWebenableddatabases.
63.Whatarethemajorfunctionsofthedatabaseadministrator?
Managingdatabasestructure,controllingconcurrentprocessing,managingprocessingrightsand
responsibilities,developingdatabasesecurity,providingfordatabaserecovery,managingtheDBMSand
maintainingthedatarepository.
http://placement.freshersworld.com/technicalinterviewquestionsquestionsandanswers/dbmsinterviewquestions/33111829166
10/17
9/2/2016
TechnicalInterviewQuestionsDBMSInterviewQuestions
64.Whatisadependencygraph?
Adependencygraphisadiagramthatisusedtoportraytheconnectionsbetweendatabaseelements.
65.Explainthedifferencebetweenanexclusivelockandasharedlock?
Anexclusivelockprohibitsotherusersfromreadingthelockedresourceasharedlockallowsotherusers
toreadthelockedresource,buttheycannotupdateit.
66.Explainthe"paradigmmismatch"betweenSQLandapplicationprogramminglanguages.
SQLstatementsreturnasetofrows,whileanapplicationprogramworksononerowatatime.Toresolve
67.Namefourapplicationsfortriggers.
(1)Providingdefaultvalues,(2)enforcingdataconstraints,
feedback
thismismatchtheresultsofSQLstatementsareprocessedaspseudofiles,usingacursororpointerto
specifywhichrowisbeingprocessed.
(3)Updatingviewsand(4)enforcingreferentialintegrity
68.Whataretheadvantagesofusingstoredprocedures?
Theadvantagesofstoredproceduresare(1)greatersecurity,(2)decreasednetworktraffic,(3)thefact
thatSQLcanbeoptimizedand(4)codesharingwhichleadstolesswork,standardizedprocessing,and
specializationamongdevelopers.
69.Explainthedifferencebetweenattributesandidentifiers.
Entitieshaveattributes.Attributesarepropertiesthatdescribetheentity'scharacteristics.Entity
instanceshaveidentifiers.Identifiersareattributesthatname,oridentify,entityinstances.
70.WhatisEnterpriseResourcePlanning(ERP),andwhatkindofadatabaseisusedinan
ERPapplication?
http://placement.freshersworld.com/technicalinterviewquestionsquestionsandanswers/dbmsinterviewquestions/33111829166
11/17
9/2/2016
TechnicalInterviewQuestionsDBMSInterviewQuestions
EnterpriseResourcePlanning(ERP)isaninformationsystemusedinmanufacturingcompaniesand
includessales,inventory,productionplanning,purchasingandotherbusinessfunctions.AnERPsystem
typicallyusesamultiuserdatabase.
71.DescribethedifferencebetweenembeddedanddynamicSQL?
EmbeddedSQListheprocessofincludinghardcodedSQLstatements.Thesestatementsdonotchange
unlessthesourcecodeismodified.DynamicSQListheprocessofgeneratingSQLonthefly.The
statementsgenerateddonothavetobethesameeachtime.
72.Explainajoinbetweentables
relationshipsareestablishedbyusingacommoncolumninthetablesandoftenusestheprimary/foreign
keyrelationship.
73.Describeasubquery.
feedback
Ajoinallowstablestobelinkedtoothertableswhenarelationshipbetweenthetablesexists.The
Asubqueryisaquerythatiscomposedoftwoqueries.Thefirstquery(innerquery)iswithintheWHERE
clauseoftheotherquery(outerquery).
74.Compareahierarchicalandnetworkdatabasemodel?
Thehierarchicalmodelisatopdownstructurewhereeachparentmayhavemanychildrenbuteachchild
canhaveonlyoneparent.Thismodelsupportsonetooneandonetomanyrelationships.
Thenetworkmodelcanbemuchmoreflexiblethanthehierarchicalmodelsinceeachparentcanhave
multiplechildrenbuteachchildcanalsohavemultipleparents.Thismodelsupportsonetoone,oneto
many,andmanytomanyrelationships.
75.Explainthedifferencebetweenadynamicandmaterializedview.
Adynamicviewmaybecreatedeverytimethataspecificviewisrequestedbyauser.Amaterializedview
iscreatedandorupdatedinfrequentlyanditmustbesynchronizedwithitsassociatedbasetable(s).
http://placement.freshersworld.com/technicalinterviewquestionsquestionsandanswers/dbmsinterviewquestions/33111829166
12/17
9/2/2016
TechnicalInterviewQuestionsDBMSInterviewQuestions
76.Explainwhatneedstohappentoconvertarelationtothirdnormalform.
Firstyoumustverifythatarelationisinbothfirstnormalformandsecondnormalform.Iftherelationis
not,youmustconvertintosecondnormalform.Afterarelationisinsecondnormalform,youmust
removealltransitivedependencies.
77.Describethefourtypesofindexes?
Auniqueprimaryindexisuniqueandisusedtofindandstorearow.Anonuniqueprimaryindexisnot
uniqueandisusedtofindarowbutalsowheretostorearow(basedonitsuniqueprimaryindex).A
uniquesecondaryindexisuniqueforeachrowandusedtofindtablerows.Anonuniquesecondaryindex
isnotuniqueandusedtofindtablerows.
Minimumcardinalityistheminimumnumberofinstancesofanentitythatcanbeassociatedwitheach
instanceofanotherentity.Maximumcardinalityisthemaximumnumberofinstancesofanentitythat
canbeassociatedwitheachinstanceofanotherentity.
feedback
78.Explainminimumandmaximumcardinality?
79.Whatisdeadlock?Howcanitbeavoided?Howcanitberesolvedonceitoccurs?
Deadlockoccurswhentwotransactionsareeachwaitingonaresourcethattheothertransactionholds.
Deadlockcanbepreventedbyrequiringtransactionstoacquirealllocksatthesametimeonceitoccurs,
theonlywaytocureitistoabortoneofthetransactionsandbackoutofpartiallycompletedwork.
80.ExplainwhatwemeanbyanACIDtransaction.
AnACIDtransactionisonethatisatomic,consistent,isolated,anddurable.Durablemeansthatdatabase
changesarepermanent.Consistencycanmeaneitherstatementlevelortransactionlevelconsistency.
Withtransactionlevelconsistency,atransactionmaynotseeitsownchanges.Atomicmeansitis
performedasaunit.
81.Underwhatconditionsshouldindexesbeused?
Indexescanbecreatedtoenforceuniqueness,tofacilitatesorting,andtoenablefastretrievalbycolumn
values.AgoodcandidateforanindexisacolumnthatisfrequentlyusedwithequalconditionsinWHERE
clauses.
http://placement.freshersworld.com/technicalinterviewquestionsquestionsandanswers/dbmsinterviewquestions/33111829166
13/17
9/2/2016
TechnicalInterviewQuestionsDBMSInterviewQuestions
82.WhatisdifferencebetweenSQLandSQLSERVER?
SQLisalanguagethatprovidesaninterfacetoRDBMS,developedbyIBM.SQLSERVERisaRDBMSjust
likeOracle,DB2.
83.WhatisSpecialization?
Itistheprocessofdefiningasetofsubclassesofanentitytypewhereeachsubclasscontainallthe
attributesandrelationshipsoftheparententityandmayhaveadditionalattributesandrelationships
whicharespecifictoitself.
Itistheprocessoffindingcommonattributesandrelationsofanumberofentitiesanddefininga
commonsuperclassforthem.
feedback
84.Whatisgeneralization?
85.WhatismeantbyProactive,RetroactiveandSimultaneousUpdate?
ProactiveUpdate:Theupdatesthatareappliedtodatabasebeforeitbecomeseffectiveinrealworld.
RetroactiveUpdate:Theupdatesthatareappliedtodatabaseafteritbecomeseffectiveinrealworld.
SimultaneousUpdate:Theupdatesthatareappliedtodatabaseatthesametimewhenitbecomes
effectiveinrealworld.
86.WhatisRAIDTechnology?
Redundantarrayofinexpensive(orindependent)disks.Themaingoalofraidtechnologyistoevenout
thewidelydifferentratesofperformanceimprovementofdisksagainstthoseinmemoryand
microprocessor.Raidtechnologyemploysthetechniqueofdatastripingtoachievehighertransferrates.
87.Whatareserial,nonserialschedule?
http://placement.freshersworld.com/technicalinterviewquestionsquestionsandanswers/dbmsinterviewquestions/33111829166
14/17
9/2/2016
TechnicalInterviewQuestionsDBMSInterviewQuestions
AscheduleSisserialif,foreverytransactionTparticipatingintheschedule,alltheoperationsofTis
executedconsecutivelyintheschedule,otherwise,thescheduleiscallednonserialschedule.
88.Whatareconflictserializableschedules?
AscheduleSofntransactionsisserializableifitisequivalenttosomeserialscheduleofthesamen
transactions.
89.Whatisviewserializable?
Ascheduleissaidtobeviewserializableifitisviewequivalentwithsomeserialschedule.
90.Whatisaforeignkey?
Akeyofarelationschemaiscalledasaforeignkeyifitistheprimarykeyof
someotherrelationtowhichitisrelatedto.
feedback
91.Whatarethedisadvantagesofusingadbms?
1)Highinitialinvestmentsinh/w,s/w,andtraining.
2)GeneralitythataDBMSprovidesfordefiningandprocessingdata.
3)Overheadforprovidingsecurity,concurrencycontrol,recovery,andintegrityfunctions.
92.WhatisLosslessjoinproperty?
Itguaranteesthatthespurioustuplegenerationdoesnotoccurwithrespecttorelationschemasafter
decomposition.
93.WhatisaPhantomDeadlock?
Indistributeddeadlockdetection,thedelayinpropagatinglocalinformationmightcausethedeadlock
detectionalgorithmstoidentifydeadlocksthatdonotreallyexist.Suchsituationsarecalledphantom
http://placement.freshersworld.com/technicalinterviewquestionsquestionsandanswers/dbmsinterviewquestions/33111829166
15/17
9/2/2016
TechnicalInterviewQuestionsDBMSInterviewQuestions
deadlocksandtheyleadtounnecessaryaborts.
94.WhatisacheckpointandWhendoesitoccur?
ACheckpointislikeasnapshotoftheDBMSstate.Bytakingcheckpoints,theDBMScanreducethe
amountofworktobedoneduringrestartintheeventofsubsequentcrashes.
95.Whatisschema?
Thedescriptionofadatabaseiscalledthedatabaseschema,whichisspecifiedduringdatabasedesign
andisnotexpectedtochangefrequently.Adisplayedschemaiscalledschemadiagram.Wecalleach
objectintheschemaasschemaconstruct.
Next (http://placement.freshersworld.com/technicalinterview
questionsquestionsandanswers/sqladvanced/33111829187)
feedback
Freshersworld.com:TheNo.1JobsiteforFresherHiringinIndia
Freshersworld.comistheNo.1JobsiteforFreshersinIndiawithover1Crore+resumesand60K+recruitershiringthroughus.ApplytoTopMNCJobs/
Governmentjobsbyregisteringnow!Whatsmore?Getdailyjobalert,placementpaperandGKupdateseverydayonyouremail.Freshersworld.comistheonly
websiteforapplyingtoGovtJobsandtopMNCJobsalloverIndia.RegisterNowtobenefitfromourunlimitedfresherfocussedservices!
GetinTouchwithus
(https://www.facebook.com/freshersworld)
(http://twitter.com/freshersworld)
(http://www.linkedin.com/company/freshersworld
(https://plus.google.com/+freshersworld)
(https://www.youtube.com/user/freshersworld)
com)
EMPLOYERSZONE: PostJobforFree(http://corp.freshersworld.com/postjob) |
EndtoEndRecruitment(http://corp.freshersworld.com/endtoendrecruitment) | CampusRecruitment(http://corp.freshersworld.com/campusrecruitment)
| OnlineAssessment(http://corp.freshersworld.com/onlineassessment) | ResumeSearch(http://corp.freshersworld.com/resumesearch)
AboutUs(http://www.freshersworld.com/aboutus) | Blog(http://blog.freshersworld.com) |
FAQs(http://www.freshersworld.com/faq) | AdvertiseWithUs(http://www.freshersworld.com/advertise) |
http://placement.freshersworld.com/technicalinterviewquestionsquestionsandanswers/dbmsinterviewquestions/33111829166
16/17
9/2/2016
TechnicalInterviewQuestionsDBMSInterviewQuestions
RecruitmentSolutions(http://corp.freshersworld.com/employers) | ContactUs(http://www.freshersworld.com/contactus)
TermsofUse(http://www.freshersworld.com/termsofuse) | PrivacyPolicy(http://www.freshersworld.com/privacy) |
Copyright(http://www.freshersworld.com/copyright) | SiteMap(http://www.freshersworld.com/sitemap)
20062016Freshersworld.com 10.0.0.43
feedback
http://placement.freshersworld.com/technicalinterviewquestionsquestionsandanswers/dbmsinterviewquestions/33111829166
17/17