0% found this document useful (0 votes)
5 views

DBMS Assignment 02

DBMS 4

Uploaded by

sanmaymestry777
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)
5 views

DBMS Assignment 02

DBMS 4

Uploaded by

sanmaymestry777
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/ 4

PAGE NO.

ATHARVA EDUCATIONAL TRUST'S DATE

cOLEGE OF ENGINEERING
ATHARVA COLLEGE OF ENGINEERING, MUMBAI oglo

Name& Aaxa Saxdaxe

Batch 5

Assiqhment - 9

Explcun Prochemmirg wikh JOBC


Ans:

oOBC is a Tavo AP| CApplicalon Proo rammina


Interaceuseol to connect Qn interac t with
e la tional datobase

lE alloS (ava applicationS to execute SQl aueries


updale da tabase necords, ge trieve e&ults.and mcinCLLe
da tabase Lansaction

TO8C_provicles methocs tO connect to latabaaer


commwnole anl e tre ve resuts
usine
S@1 s talements.

Loacl the
Praganingi
toBCAri ye Y
2. Fstablish o eonnec tion usinq Daireranaqer
3.Creoate Stotement PrepareolStatenent"objectr
4 Fxecute queKieg 'executeQueryeecudepdate
6Close the conneeton.
This APL enables deelopc o indea rak datd baaes
elliclentluy in to Java Appllcaliors.

th
cQ-Illustrete Parse nol Dens e Inolein i

Sw toble exomple

Ans: are byres


PavseInolexinq onol Dense Inolerine
bo speed up
o indexing methocls Useol in dateobases
quey pertormetnce.
Dense
1-

Inolesingende lnle, th ere is an iro


Value in the base datol
entry tor every 6eareh key
o Exanmplei a bable has necors
withiDs rom l to lo0, the tncex will con teuin lo0
en ti es, one toY eoch I.
2 SpaYse Inderino :

•la a sparse indles, inole enries


ekist only

blo ck ot
tor

Tec orels
some ne

Usually, the
is nelened.
corels
ivs ! enty ot eack

o ERample Jn a te ble uith ioO


eeo rs stored in blo
10 entries, eQch
c ks ot io,the inex
to bhe rst
wold
e eo relot
have

poinHng
block.
eveny

Usage:
nder: su ta ble tor
Oerse
where keauent lookup6 reqwrel
o Sparse (nolen Eicient for lareer ba b ler,

L& it eires les6 6to rage space


PAGE NO
ATHARVA EDUCATIONAL TRUST'S DATE
ATHARVA
cOLLEGE OF ENGINEERING
ATHARVA COLLEGE OF ENGINEERING, MUMBAI

Canaiclex Hhe tollowinop Eroployee Databa


[Primany keys are unclerlinea

employ ee
Cemp loyee-ncme, skTeetciby)
vW emplay name, Lompannmeclary)
C
ce

cOmpat Caome any-n me


mangesCemployee-namemanaeey-name)
Fin ndmes a c Emploue es who work
Bank LoÍpoYaHon

2. Fino nemesanal eS
citi resilensee
emploees who ooik lor irs t Bank calpoa kon

13Finoall Fnmplayees in tbe datebase who do not


Bank Corparaion
Ans:

* Alia ses eclaration:

EROM employee
EROM works AS w

SELEC T employee-ncmc
FRON
WHER E Lompaae=name Hrst Bank lorgoration
SFLEC Te.employee-ha me,e. city
FROM employec e

WHSRE empoyeenme NoT KNC


SELEN emploee-ndme
JOIN woYks W ON e-employee- name
=WermployeC-nurme.
WHERE wcomeory-home Fis+ Bank CorpoYoti on ';

3.

SELEC T employee -no me


FROM e mployeG
WHE RE emp loyee- name NOt ING
SELETemoloyec -namc
FROM Wors
WHERE COmpony-ha me F6t Bank
Corporation )

Puli

You might also like