0% found this document useful (0 votes)
19 views4 pages

DBMS Session-2 Notes

Uploaded by

tk686601
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)
19 views4 pages

DBMS Session-2 Notes

Uploaded by

tk686601
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

SESSI

ON-
2Cr
eat
eandedi
ttabl
esusi
ngwi
zar
dandSQLcommands

I
ntr
oduct
Ion

 Li
breOf
fi
ceBasei
saf
reeandopensour
ceDBMS.

 I
tcanbedownloadedfr
om www.
li
breof
fi
ce.
organdi
sav
ail
abl
eforbot
hLi
nuxand
Windowsoper
ati
ngsystems.

 Dat
ahast
obest
oredi
nanor
gani
sedmannerusi
ngaDBMS.

Dat
aTy
pes

 Adat
aty
per
efer
stot
het
ypeofdat
athatwi
l
lbest
oredi
nthatpar
ti
cul
arf
iel
d.

 Thememor
ysi
zeofaf
iel
dvar
iesaccor
dingt
oit
sdat
aty
pe.

Somecommonl
yuseddat
aty
pesar
edescr
ibedbel
ow.

1.TextDat
aTy
pe–

 Thet
extdat
aisacombi
nat
ionofl
ett
ers,
number
sorspeci
alchar
act
ers.

 Noar
it
hmet
iccal
cul
ati
onscanbeper
for
medont
extdat
a.

 Exampl
esoft
extdat
aty
pei
sPANCar
dNumber
,Name,
Mar
ks,
etc.

2.Numer
icDat
aTy
pe–

 Numer
icdat
aty
pesconsi
stsofnumber
s.

 Thenumberscanbei
ntegerorr
eal
number
sonwhi
chanyt
ypeofar
it
hmet
ic
cal
cul
ati
onscanbeper
formed
3.Cur
rencyDat
aTy
pe–

 Thecur
rencydat
aty
peindicat
esthemonet
aryv
aluesandcanbest
ored
usi
ngcurr
enci
esofvar
iouscount
ries.

 Forexampl
e$100,
£500orRs.25.
50.

4.Dat
eDat
aTy
pe–

 Thi
sdat
aty
pei
susedt
oindi
cat
edat
esandt
ime.

 Forexampl
e12/
25/
2019,
08:
45AM.Thedat
aandt
imecanbest
oredi
n

v
ari
ousf
ormat
s.

5.Bool
ean–

 I
nbool
eandat
aty
pet
her
ecanbeonl
ytwov
alues-Tr
ueorFal
se.

 Thi
sal
socanbegi
veni
nmul
ti
plef
ormat
sli
keYes/
No,
True/
Fal
se,

On/
Off
.

6.Bi
nar
y–
 TheBinar
ydatatypeusedt
ostor
edi
git
izedi
magesandsoundst
hatcomes
aslongst
ringofzer
osandones.

 I
tispossi
blet
ostor
ephot
osofthepr
oduct
sorempl
oyees,
orsoundsni
ppet
s
orvoi
cemessagesi
nBasedat
abase.

Cr
eat
ingaDat
abaseusi
ngLi
breOf
fi
ceBase

 St
ep1.Opent
heLi
breOf
fi
ceBase.

 Step2.ADat
abaseWizar
dopens.I
tal
l
owsy
out
ocr
eat
eanewdat
abaseor
openanexi
sti
ngdat
abase.

 Step3.Sincewewanttocreateanewdatabase,
socli
ckCr
eat
eanew
databaseradi
obut
ton.Thereaf
tercl
i
ckNextbutt
on.

 Step4.TheNextst epgivestheopt
iontoregisterourdat
abasewi t
h
Libr
eOffi
ce.or
g.Ifwer egi
stert
hedatabase,thenourdatabaseismadepubl
ic
andhencecanbeaccessedbyot herpeople.Asofnow, wewoul dnotl
i
keto
regi
ster,
sowecl ickandselectt
heradiobuttonwithopti
on,‘No,donot
regi
sterthedatabase’
.

 St
ep5.Thisstepaskswhethery
ouwanttoopent
hedat
abasef
oredi
ti
ngor
wantt
ocreateatableusi
ngthewizar
d.

Theopt
ionOpent
hedat
abasef
oredi
ti
ngi
sal
readysel
ect
ed.

 Step6.Cl
i
ckFini
shbutt
ontocompl
etet
hedat
abasecr
eat
ionpr
ocess.The
SaveAsdial
ogboxappear
s.

 St
ep7.Br
owsef
ort
hedr
iveandf
olderwher
eyouwantt
ost
orey
ourdat
abase.

 St
ep8.Ty
pet
hename(
Spor
tsDay
)int
heFi
l
enamet
extbox.

 Step9.Cl
i
ckSav
ebut
ton.Thedat
abasei
nBasei
ssav
edwi
thanext
ensi
on
.odb.

Cr
eat
ingaTabl
e

1.Cr
eat
ingaTabl
eusi
ngaWi
zar
d

2.Cr
eat
ingTabl
einDesi
gnVi
ew

Set
ti
ngt
hePr
imar
yKey

 Ev
eryt
abl
emusthav
eapr
imar
ykeyt
hatuni
quel
yident
if
iesar
ecor
dint
het
abl
e.

 Tomakeapar
ti
cul
arf
iel
dast
hepr
imar
ykey
,fol
l
owt
hegi
venst
eps:
 St
ep1Pl
acet
hemousepoi
nterbef
oret
hef
iel
dname,
andr
ightcl
i
ck.

 St
ep2.
Apopupmenuappear
s.Sel
ectt
hePr
imar
yKeyopt
ionf
rom popupmenu.

 St
ep3.Akeyi
conappear
sbef
oret
hef
iel
dnamei
ndi
cat
ingt
hati
tisapr
imar
ykey
.

You might also like