You are on page 1of 21

cIASSMAtE

Date
Page:1

DATA IyPES:
A data lype is an atriluuit e Mata uhuh telis
h tompiler o intitpuetir hew the pogha mmUr
mtemcd te uoe the daia Meat puegncmming
Lamguua ALpposdbasic data lypes ¿ nteget le4
Lasaing QuLl, Reatng plunt mumitts_[apprex neal
mumeis) _chonacter ámd Ccefians dalaiype
conadnain4 the_value hat an_presion, auuch as
umetion, mught Lake his dala lype
dnts he epLAalion dhat Lan be leme m Lhe
Valus that kype canb Sltd A
data ype pLvidi a All valus O m Lwtruch
m
LRprMAin (i vauiaite anciin_etc)
may iake its Valius.

ata ypts anL uaLdwithin lype ALAtem


, N h
DIARAVMOU ays dfining 4mpltmemling
Amd nsing dhum HA Lnt pe Ayslcmenus
olegae4 peAajay
ALmget all
mclii hpugHammmg_languags_epliti
nolton_A Aata kyps
ky
diunind anguags ma Aaduftitthuuga
iminelog4-
DATA 1YPES

CHARACIER
NTEOER
ARRPY
STRINU

VARCHAR BoOATA

Egu 1
Date
Pag:3

nnom Dota upes ane

JmtLger
Channciii
Daimg
ELpaiing oint Numb
Ahhay
VanclaM
Deettam

1.SNTEC1ER lint):
ndegu a_huhete numlu hat an how a
&La be a
MAciuon nes. tam_ hame_ ducimal placs is
Lemmomiy_Aeud MpHOgHAMmung lapeetally
LO Valus.Addiudm aubstacden
Amd mutiplicatuon wo_Antigns taoLLltso
onL Anteg Bd_Am4L0 ZwD_mumbss Lmttgird
m a HLuldte am Mtigix HA idmal
he Hiulting dcimal m Hewndcd el
Ahuncatd AobeLeduc_am mtigt.
2CHERACIER_(hah):

HYhLA teay mlun,ettir, Lpac


hat cam be
opmtet
occupiis
Each eanaciti
Each
muia_na_ompuutu
2
yt paci.
ClASSMALe

Date
Page: L4

3STRING:
0mpoLd
uOed Te HpAMnt ext
ha 4pacs
a alt e characu that con
amd_mumleys limg aae meloMd n_
h olata Os
4ALeAatun. mawuks teidimdity
vasLALMe_ nam nA
atsuing-
mLumlA
aMA_MA_a

FAOA1ING PoiN1NUMBERS:
&t 3 u nLumlu that Omtains decmals , Lumbiu
Hhat cOntaim acdÒn a onadnta as
HoatingH p o n t umbers.

5 ARRAY:
r a y ontains a gaoup elemumib ahch can
be he SAmL data typA ihe am imagn
pAaimg Q md te
ongamu_dala
SeOhg nlaked
AU valuies

6 VARCHAR :

AA Lhe mam_Lmpius As varualie_chaiaclas


has
ut vUAe_ngeh_each
mmoky_AtHOnA-
h
chasastu 0Upiis o0m AaCe plus
lngth
LnjeLmatien lpte
Date
Page

data eTlztis wtbi


Kiy Pent Ms dhanactu
lA a c h a
iALA lngth, Like phone mbU

d a t a emtui with vaialie ngeh,-

o0LEAN:
CALatng due alle
statimemt Jo Omp valiuis llo wi'ng
being
AND
OR
XOR
NO1
OD 1tAN S7A1EMINTS

Beoton CpnnoilOn
ptal0s
Result

x AND TUe 4beh z amy


CU ue

Fale
th ithu ev
X ANO Fol
bOth a
hehe 4 ,
xOR y
xOR Fal belh andy aihaie

XDR 1ne Only amd y ue

XOR Fare

NO1 x 7 ne

NoA Falbe
clASS

Keys
Keys m ABMS an atuibule p e lt

uhich tedenty a O
altubulu helbs ueu
allooye
lllo y
epta) M a Helaion_ (table Jhey
therelaiin kelnkinlure tables
pind a HOL
Ms hlp yeue Unuiquuily ldinlily
thble hey alo helpful fWm
tate
hidingumque HEOA O HAUU L o m t h e
atabase hey s alshelpful fO dirg urgue
HCDhd_0H LOm lhe tate.
HAU

Loample:
Empioye 1D FUstName dast NOme

14 Andhew Johnsonn
Tom
33 Aler Hale.

9n the above nample, mptoye 2D ks a


p'tmary
Rey b t a u a t umiäuly Ldniuhis_an
anemplee
HLCOAd n the lble O olhey empleyce
hame MSame empLoyee_1D.
KEYS
SFONA RY Key
PRIMARY kEy
KOy
SUPER KEY CANO10A TE

FDRE1nN KEy

F 3 1ypu o Koy

EMPLOY Et

wmplege-19 Pevinaay ly
mployen Name
mploye Adohs
Panpo Numbu
Mynae. Nmhe
SSN

- PMWi KE
tASSMAte
Date
Page:

ypes Of Key:
1:Pumany Lys
9 Secomalay Kiys
3 SupeH Kuy
4.Comdidat ku
5Felgn Aiy

1: RiMARY KEY:

thu wkot kuy htuth i ustel to idlesnay


iotaCL Adentutumiquely
miits cam miainmuluple keys_s e cC
PERSONtable e Key heh i 10u
Auitakle tomho lsts
buuome LLmaiy_ kiy
R aype 4key n nich Zhiae isa ucLp s4
Lelumns LAlumns_ _Lelumn n a teite linok
UnLquly Adlenijy 0eny Haus
i Lhat talte.

Example
nn abte IÐ Lon bplinaly kiy
he_empkoyee
iunigue 4OH each _empdeyten1he
emptoyee Lable, u l tam en_Alick Licem-Numl:
papot Mumbe s
a n c papot
mary key slee
Student 10 idund Fwell uwlentName edonk gc

Cnal
096 122149 Momwy A47qwail
055 1226ss MHali 93 olcgma
064 1226S8
S4Ay . On

Fgu 5- S FLONOARY KEy

EMAOYEL
wmployu - Io Supe R Key
employe -Namu
mploijce- Acbses
Pampt Numbu
moe NUmbu
SSN

4ig - suPER-KEy
CASSMAte
Deto

Fe ach eniey Aelicleon ih pimaiy key


loasecl om kequihemet _amd dveiopes key

SeEoNOARy KEY:

ALcondauy-
llcdrd
Key Ashe hty lhat
te be lhepilumAsy
has net been
kly houeel, it
wnaiolud oa lamaidauu Key h he
palmany

him a lomdilal kiy Net ARlectecl the


Lalle Seconday key lndidate
imak RLy
Ry Cum alllbuili lt Qltiihute thak
can onudlh as Puimay ky.

Exampt:
in the higuu 5 atudentIÐ , sluclint -enie0
amd atuonda mail L the Lomdidao keys hiy
a naidledtamdidate keys mie thiy COm
tan
Amiquly idtemti the otudint niceidselict amy
pme the cmdidatt_kty as h e pumay kiy
Rut o he uo_ hys wOuld br RCOn dany keysp
lels gay40u elutud rtudint -1o a pumay key.
huehtiu atudenk-_emuell md studint -êmail
uill b ACenday ky(andidatu
Ry) puNany
EMPLOVEE

mployee -19

Employe - Name

Emptoye Addros

Papo- Numu

w Nm CANOIDA1E KEy
SSN

CANDIPA 1E KEY.
3 SuPER KEY:
Auupe y set o am_ attu'de uhith an
ugly dlmiky a tuple duplis ky
AUNpLMLt 0mdidate kly
nOmple um the ho empeeyeg tale
O EMPAOYYy£E-IA EMPOYE
E-NDME).
he NaVme he uo mployec_cam he
pekhe
SLme lut_thik EmPLYEL- I9,camt be he
AMme HimL, his
SAAL
Omlainadion tam be th Rly
he hplh kts uwould be EmPAOYEE - JD
pe key i bLially a gnoup
mullipte heys_hshich ileauiis klusingle
im a
dabe

Camdiclat Kuy
A amdidale ky is am_atALleuth_ ALt A
an atbuute wuhith cam uniautly
a uple
idmit

h Hmauning attniluue_PMcLpÉ {DA uimasyy


kty
kty AHL _coHsidloned as a_omdidate ky
R e
tandidat Ray as a emg 4 t h pumcs
Rly Lomdidale hey s a dupA kuy wMh ne
hepea keod Athike

Eampe n hua 1 ths EMPAD YÉE Aube


4

EM PAOYEE
E PAP1MENI
Employe 1 upamnt - 19

tmployee NOme 9epaxt went Name

PoMpod NUmat

SSN

epeMmunt Iax

FOR E1N kEy


Rist
l t s t alited to hi puimay kig Mumbu
he attuiloute ukSSN
papg -
as
Amd utese numbu elc ae_consCia
camdidal koy
5 FORE1GIN KEY:
FOLgm_heys ase hu celum e he alte uhih
AsUstddo peint io th puimasy ky e anslhi
alte

9natompany woks mployet A0Aks_un a ipecU


dpait mint,
and mployce and dpatmnt a
tuD_diseAUnt ntitiu _we_m di hhe
mOMMAtudn_4 dh lpcudment um 7he employee
Labte h a nhy_An n thi wo taltes
lhabugh the umay_key Ont table.
e ld h puimahy_kly ethi DEPARTME N
dake Depasdmend 10 o s A no Cutlhibute en
tht nployel labde.
NOw n mploya_1alke , dpast memt -ld
he
a 4Mug_ key_amd Ah heAalkes_oane helaed

DLiGn_
kuy u bassally a _télmn hat_cruales
A hilalionsn behwn the zuo aes #
pup elgn_ ky 8 maintaUn_data
untigsiy n d a low naugalion b/o dyheenk
R
untih
1) Inauut

)
Egue-9- insut

(2) Sho wt

r l +C

3
Ult

ut
ky {o pa4

hiwns owowm hotut kys.

Eigau1
ASSMAte
Dato
Page

MS ExCEA
MS cel a Lem MEmly e d i a t s pute
Aohihn
aPpli ta lion b_ a spscad ahect phcgram
S LLSCdLe Sane amalyu u m O M L a l
and
m a Mtil
data Zs eaay le amalyin data
the pL4yest8Nals u
8pucadshett_lmotQl
Qmcl
thus sPACadsheet tect
Lmivesallangtoge hal speak_m almCt
he

How to opem MS_c l ?

Clck_m Atant
Then al prognammy
Cick on s t
Einally chee hu W bLul ptin
3eptuna MS ael._

1 nast
0_Lom mols_a neuE Uwntsheut vinenceland
d i l u h t same at amy point m tme1o
R mply nad to
pe hs "PIos on Key uhich % ulabu af
(A|: A10)
: SUM

A
C

204
6

340
um Nwmb
32
Spb1P1D 2922

A
Nukya

207
302 Flha
02

221
Date
Page:

hu ca_also vnoerr a Miw uMhout hmpy


hiy tFi1.
1ume Saning Sthon cut Key
ALi i e lmi yeu
Ox Cel_od ON u
dHouAitally by masiiiMA
SthoE Ut
Cui. ju 10 ky n
KL
Ktu tm Yeul (an
MS tcel pLadAnelt AshAlh l l so yu

3 um Numbeus

you hane a Seual umb any umu'tul


clola,
clalla them yeu tan qauitkly 9et heum e
ihLAR YumieAs wih mpt shertut keys

AmumLou hoe
home numltes m 0 clles amd ustt
maqune hour Long is qem
g he Lelat hin MLAA

impleyLetal
prlet
Leta e hl umbu md phin_het uut
Key AL1+ do qet Lelo sum

FiDming Oata:

ELining daia he excel pnu u u hi mo


ipokant fealuit y M bteel he_m Alg
amy dala pni undnhe itA serion

5 HOme:

LompA LOLA OLóns uike 0mt nze n t slgl


Ont elo bachgtound LGAO align mirls
40matnng 0ptonsand lyls, mses boins md
dilltn cells and editiing plions
Pog ioyui:
dhemed OHLitmlatoims amd page Aetch epticn2 alu
Qwilalwe _nde the pagi lagud pthbn
mula:
AUncelade_u th a_latg ameunt y_data
Com De cLateo m M Pal , undis thui
Add LAM las to-
Oumd g qu'tho JOliulcin_

oial umbeu
yu nsant to nsert senialUmLeA Zhat_au
incsimentedl loy Hen hl_can_als thi by
by
my_ e e he opluon kntn the
FIL Hanclle
the ulls Nen uAuing EXCEL
drag t i lheculls rhese you
Date
Page:

Omt te maltLLtal nUmld

NELO ick auto -ril' 0ptoin and_cheN "AU Suiy


Qe theSeial umbt ina meMtid hyy
hen Ne gel he nlalH that
13 md 14.

Rowte amd VuOm


Leeq Aadung am be lome 4os an pcel eheetE
ikipeLl cheuh) Ah thi huiw_Uqy
Qund Aiacl CaM_ add waminh_ m hs_
pat
nint ulsm nhu'ch jnehant hi pstadhtek
Jeb displospd tam be _ediit h
0 1m m d Dut omd home
plicns
w wula lde wmdu 7h 4Mangimeny
categ0i4

You might also like