You are on page 1of 21

TPRACTI

I CAL

Ai
m1
Wr
it
eQuer
iesf
ort
heQuest
ionsBel
ow:

Tabl
e:MARKSHEET

Fi
eldName Dat
aTy
pe Si
ze
St
ud_
No I
nteger 2
Name Tex
t 15
Rol
l
No I
nteger 3
Per Deci
mal 3,
2
Gr
ade Tex
t 3

1.
Cr eateat ableMARKSHEETwi ththegi
v en
speci fi
cation.
2.
Inser t4recor dsi nMARKSHEETusi ngSQLQuer y.
3.
Updat etheGr adebyE1t oE2.
4.
Displ ayallrecor dsofthemar ksheett
abl e,wri
teSQL
command.
5.
Wr iteSQLcommandt odi
splayname, rollno,
grades
from t hemar ksheettabl
e.
6.
Displ aythemaxi mum andmi nimum per .
7.
Displ ayther ollno,st
udentnameandper cent
age
whosenamest artswi thAusi ngSQLcommand.
8.Displ
ayther ol
lno, studentnameandper centage
whosenamesecondl ett
erisi usingSQLcommand.
9.Displ
ayal lt
her ecordsf rom themar ksheett able
whosenameendswi th‘N’usingSQLcommand.
10.Displ
ayt herollno,nameandper cent agewhose
percentagear emor ethan70.
11.Displ
ayt herecor dswhosecur edt hegr adeA1and
A2.
12.Displ
ayal lt
her ecor dinascendi ngor derofnames
usingSQLv i
ew.
13.Displ
ayt herollno,name, andgr adeswhose
percentagear einbet ween70t o100.
14.Displ
ayt herollno,name, perwi t
hani ncrementof5
perofeachsubj ect .
15.Displ
ayal lt
hest udent srecor dwho.( Perlessthan33)
16.Displ
ayal lt
her ecor dsindescendi ngor derof
percentage.
17.Deletetherecor dsf rom tabl
ewhoi sfailedinanyof
thesubject.(Youcanuseanymode) .

Sol
uti
on:
➢ CREATETABLE‘
MARKSHEET
1.
’(st
udentno.I
nt(2),Namevarchar(
15)
,Rol
lno.I
nt(
3),
perdeci
mal(3,
2),Gradevar
char(3));
2.I
NSERTINTOMARKSHEETVALUES(
1,“
Anupam”
,23,
85,
‘A1’
);
I
NSERTI
NTOMARKSHEETVALUES(
2,At
ish,
26,
88,

A1’
);
I
NSERTI
NTOMARKSHEETVALUES(
3,Ani
ket
,16,
93,

A1);
I
NSERTI
NTOMARKSHEETVALUES(
4,Soumy
a,43,
80,
'
A1’
);
3.UPDATEMARKSHEETset(
Grade)
=(E2)
;
4.SELECT*FROM MARKSHEET(
studentno.
,Name,
Rol
l
no.,
percent
age,
Grade)
;
5.
6.SELECT*FROM MARKSHEET(
studentno.
,Name,
Rol
l
no.,
percent
ageWHERENAMELIKE‘A%’);
7.SELECT*FROM MARKSHEET(
studentno.
,Name,Rol
l
no.,
percent
ageWHERENAMESECONDLETTER‘ I
%’)
8.SELECT*FROM MARKSHEET(
studentno.
,Name,
Rol
l
no.,
percent
ageWHERELASTNAME=‘ N%’ )
;
9.SELECT*FROM MARKSHEET(
studentno.
,Name,
Rol
l
no.,
percent
ageWHEREPER>70);
10.SELECT*FROM MARKSHEET
11.
12.SELECT*FROM MARKSHEETORDERBYNAME[
asc]
;
13.SELECT*FROM MARKSHEETWHEREPERCENTAGE
BETWEEN70AND100;
14.
15.
16.
17.

Ai
m2
Wr
it
eQuer
iesf
ort
heQuest
ionsBel
ow
Tabl
e:Book
Book_ Book_
Na Author
_N Publ
is Pr
i Quant
i
Ty
pe
I
d me ame her ce t
y
C0001 FastCook Lat
aKapo EPB 35 Cook 5
or 5 ery
F0001 TheTear
s Wil
li
am Fi
rst 65 Fi
cti
o 20
Hopki
ns Pub 0 n
T0001 MyFir
st Br
ain& EPB 35 Text 10
C++ Br
ooke 0
T0002 C++Brai
n A.W. TDH 35 Text 15
works Rossai
ne 0
F0002 Thunder
bo Anna Fi
rst 75 Fi
cti
o 50
l
ts Rober
ts Pub 0 n

1.
Creat
eTabl
eBOOK.
2.
Inser
tsomer
ecor
dsi
nBookt
abl
e.
3.
To display the names and pr i
ce of books i
n
ascendingorderofthei
rpr
ices.
4.
Displ
ayt hepriceofbookwhi chhaspri
cebetween
300to500.
5.
Toincreasethepriceofal
lbooksofEPBpubl i
sher
s
by50.
6.
Todi spl
ayt heBook_Id,Book_Nameandquanti
ty
wherenumberofbooki sgr
eatert
han5.
7.
TodisplaytheBooknameandPr i
ceofBooksf
oral
l
bookshav i
ng‘C++’i
nthebookname.
8.
Delet
eal l
theCookerybooksfrom bookt
abl
e.
9.
Todi
spl
ayt
hebookdet
ail
swhosepr
icei
s
maxi
mum.
10.
Todi
spl
aybookdet
ail
sofpul
i
sherEPB.
Sol
uti
on:

1. CREATETABLEBOOK( BOOKIDVARCHAR(6)
,
BOOKNAMEVARCHAR( 12),AUTHORNAME
VARCHAR(10)
,PUBLI
SHERVARCHAR(7),
PRICE
I
NT(4)
,TYPEVARCHAR(7)
,QUANTITYI
NT(3)
);
2.I
NSERTINTOBOOKVALUES(
C0001,
FASTCOOK,
LATAKAPOOR,EPB,
355,
COOKERY,
5);
3.SELECT*FROM BOOKWHERENAME,
PRI
CEORDER
BYPRICEASC;
4.SELECT*FROM BOOKWHEREPRI
CEBETWEEN300
TO500;
5.UPDATEBOOKPRICE=PRI
CE+50WHERE
PUBLISHER=“
EPB”
;
6.SELECT*FROM BOOK(BOOKI
D,BOOKNAME,
WHEREQUANTI TY>5);
7.SELECT*FROM BOOKWHEREBOOKNAME,
BOOK
PRI
CE=“
C++”
;
8.DELETEFROM BOOKWHERETYPE=COOKERY;
9.
SELECT*FROM BOOKWHEREPRI
CEI
S“MAX”
;
10.
SELECT*FROM BOOK(
BOOKNAME,AUTHORNAME,
PRI
CEFROM BOOKSWHEREPUBLISHER=“
EPB”
);
AI
M3
Demonst
rati
ononhowt ocr
eat
ebl
ogsusi
nga
bl
ogappl
icat
ionof
fl
ine.
Obj
ect
ive-St
epsf
orcr
eat
ingbl
ogs.
Task-I
denti
fybl
ogappl
i
cat
ionandgi
vegener
alst
epst
o
cr
eateblog
Sol
uti
on:
Ifwedonothaveanact i
veint
ernetconnecti
on,wecan
creat
eblogsusi
ngabl ogapplicati
onandpubl i
shthe
blogwheneveri
nternetconnecti
vit
yisavail
able.Ther
e
aresever
alfr
eeoffl
ineblogeditorsavai
labl
ethatcanbe
downloadedandinstal
ledonthelocalcomput ersuchas:
•Qumana
•Wi
ndowsLi
veWr
it
er
•Bl
ogdesk

Qumanai
saf
reebl
ogappl
i
cat
iont
hati
ssi
mpl
eand
easyt
ouse.
Weneedt odownl
oadandInst
all
Qumana.Qumanacan
bedownloadedf
rom www.qumana.
com.Oncei
nst
all
ed,
youcanusetheprogr
am t
omanageblogs.
Launchi
ngQumana
 Tol
aunchQumana,
Cli
ckSt
art>Pr
ogr
ams>
Qumana>Qumana.
 WecanalsoDoubl
e-cli
ckont
heQumanai
conon
thedeskt
opifav
ail
able.
 Weneedanexi
sti
ngbl
ogaccountt
ousewi
th
Qumana.
Wewi l
llear
ntousey
ourexi
sti
ngWor
dPr
ess
accountwit
hQumana.
 Ent
eredmyWor
dPr
essbl
ogaddr
essandCl
i
ckNex
t.
Aloginwindowappear s.Weneedt opr ovi
dedetai
ls
ofourWor dPressaccount.However,ifwewi sht
o
useitforotherbl
ogser v
ices,
weneedt oenter
appropri
atedetai
ls.Gi
vet heWordPressblog
addressintheWebaddr essfiel
d.Enterthe
Usernameandpasswor doftheWor dPressaccount.
 Cl
i
ckNext>Fi
nish.Awi
ndowsi
mil
art
otheone
bel
owappear
s.

I
fpost
sareal
readyavail
abl
einourblog,
Qumanawi
l
l
downl
oadanddispl
aytheexi
sti
ngblogsaswel
l.
ToCr
eat
eaPost
,
•Cl
i
ckNewPost
.
•Awi
ndowsi
mil
art
otheonebel
owwi
l
lbedi
spl
ayed.
Entertheti
tl
efort
heposti
ntheTi
tl
efi
eldandthepost
contentint
heareagi
venbel
owthepageti
tl
e.
•Cli
ckPubli
shPost.Oncey oucli
ckPubli
shPost ,
the
postwil
lgetautomati
call
yupdatedtoourWor dPress
bl
og.Tov i
ewt hepubl
ishedcontent,
opentheweb
browserandtypeourblogaddress.Youcanincl
ude
photosorpi
cturesi
ny ourbl
ogt omakeitatt
racti
ve.
Toi
nser
tapi
ctur
e,
•Cli
ckont hei
magei
conont
her
ight
-handsi
deoft
he
appl
icat
ion.
Onceyoucli
ckt
hei
magei
con,
thef
oll
owi
ngwi
ndowwi
l
l
bedi
splay
ed.
•Cli
ckBrowset
olocat
ethei
maget
haty
ouwantt
o
publ
i
shinthebl
og.
•Oncey oucli
ck“Br
owse”
,theOSbr
owsewi
ndow
appear
s,enabl
ingyout
olocat
ethei
maget
obeloaded.
Wheny
ouhav
echosent
hei
magecl
i
ckUpl
oad&I
nser
t.
•ClickPubl
ishPost.Tov i
ewt hepubli
shedcontent
alongwiththepict
ure,openthewebbr owserandtypein
yourblogaddress.Nowt r
yusi ngot
herblogappli
cati
ons
suchasWi ndowsLi v
eWr it
er,Blogdesk,et
c.usi
ng
diff
erentbl
ogaccounts.
Ai
m4
I
LLUSTRATEBESTPRACTI
CESFORSECURI
TY
OVERINTERNET.
Sol
uti
on:
Use st
1. rong Passwor d: A combi nat
ion of
alphanumer icandspecialcharact
erscoul
dbeused
forcreatingapasswor dt hati
snotsoeasytocrack
orguessedbyot herusers.
Gener alguidel
inesforstrongpassword
a)Keept hel engthoft hepasswor datl east12-14
char acter sifpermitt
ed.
b)Av oid keepi ng passwor ds based on r epeti
ti
on
wor ds,di cti
onarywor ds,usernames,petnames
etc.
c)Includenumber sandsy mbolsi npasswor ds.
d)UseCapi talandlowercaseletters.
e)Av oidusi ngsamepasswor df ormul ti
plesitesor
pur poses.
f)Av oid usi ng somet hing t hat t he publ ic or
wor kmat esknowy oustronglyli
keordi sli
kes.
2.
Backupy ourdat a:Alwayskeepcopi esofdat ainCD,
pendr iveset c,so itcouldbehel pfulinsi tuati
on
whent her eisal ossofdata.
3.
UseEncr ypt i
onsof tware:Useencr yptedsof t
war e
avail
abl ewi thi
nt heoper ati
ngsof twar et opr otect
dataf rom unaut hor
izedusers.
4.
Keepuser nameandpasswor dpr i
v ate:Nev ersav e
passwor dsoruser namesoncomput erst hatar e
usedi nshar edenv i
ronment sli
kenetcaf é.
5.Regi st ering wi th websi te: Read pr ivacy pol icy
whenev ery our egisterwi thawebsi te,thepol i
cywi l
l
i
ncl ude i nfor mat i
on abouthow t he websi t
e use
per sonal dat a.
6.Do notshar e per sonali nf ormat i
on:Becaut ious
whenf i
ll
ingoutf or msoni nternet .Becausey our
per sonali nf ormat ionoremai l
scoul dbeusedby
unaut horized user st o send f ake orunwant ed
emai l
s.So,f ir
str esear chandv erif
yi fi t’
sat rust ed
websi te or not bef ore pr ov iding per sonal
i
nf or mat iont oanywebsi te.
7.Secur et ransact i
ons:I ti
sal way sr ecommendedt o
useonl ysecur ewebsi t
esf oronl i
neshoppi ngor
transact i
ons,because t hese websi t
es st orey our
credi tcar doronl inebanki ngper sonali nformat i
on.
Ver ifyi ft he websi t
e uses secur et r
ansact ion,
usual lyi ti si ndicat edt hroughadi gitalcer t
ificat e
repr esent edasagol denl ocki nt hewebbr owser ’
s
addr essbar .
8.Use Ant ivirus and ant i
spy ware sof twar e:These
sof twar espr otecty ourcomput erf rom anychanges
bymal war es/threat s.Keept hesesof twar esupt o
dat e.
9.Do not i mmedi atelyr espond t o mai lsf rom
unknownuser s:Somemai ls,thatpr omi sey ouj obs
orannouncel otteryr esults,maycont ain v i
rusor
script s ort heycan t ryt o gat hery ourper sonal
i
nf or mat ion.Nev eropen t he at tachment sf rom
unknownper sons.
10. I nst allf ir
ewal l
s:Fi rewal ls keep y oursy stem
and net wor ksecur e.Theycoul d be sof tware or
hardware.So, I
nstall
andconfi
gureyourfi
rewall
.
11. Regul arlyupdatey ouroperat
ing syst
em and
softwareappl i
cati
ons.
12. Wheny ouv isi
twebsit
es,cookiesarecreated
ony oursy stem thatmaycontainyourpersonalor
l
ogondet ai l
s.Clearbrowsercooki
esf r
equentl
yso
thaty ourlogon det ai
l
s coul
d notbe t r
acked by
unauthori
zeduser s.
Ai
m5
I
ll
ustrat
euseofv
ari
ousopt
ionsunderComput
er
Accessi
bil
it
y
Sol
uti
on
Comput erAccessibi
li
ty:-I
treferstotheuser
fri
endl
inessofacomput ersy stem f
orall
,regardl
essof
thei
rdisabi
li
ty.I
tenablesaper sonwithadi sabi
li
tyor
i
mpai r
mentt ouseacomput er.Iti
salsoknownas
Assist
iveTechnology.
Ther
earenumeroustypesofimpair
mentt
hati
mpact
comput
erusage.Theseincl
udes:
-
1)Cognitivei mpai rment s and l earni
ng disabili
ti
es,
such as dy slexia,aut ism,and at tenti
on defici
t-
hyperactivit
ydi sorder(ADHD) .
2)Visualimpai rment ,suchasl ow- vi
sion,completeor
parti
alblindness, andcol orbli
ndness.
3)Hear i
ngimpai rmenti ncludingdeafness.
4)Mot orordext erityi mpai r
ment ,suchaspar alysi
s,
cerebralpal sy ,orcar palt unnelsy ndrome and
repeti
tiv
est raininjury.
Theseaccessi bi
li
tyopt ionsar eusedt ocust omizethe
wayy ourkey board, display,ormousef uncti
on.

Var
iousAccessi
bil
it
yOpt
ions
1)
Sti
ckyKeys:I tisanaccessibi
l
ityf
eatur
etohel p
computeruserswit
hphysicaldi
sabi
l
iti
es.I
tallows
theusertopressandrel
easeamodi fi
erkey,such
asCt rl,Alt,Shi ftet c.andhav ei tr emai nact iveunt il
anyot herkeyi spr essed.
2)Filt
erKey s:I ti sanaccessi bi l
ityf eat uret hatt el l
s
the key boar dt oi gnor er epeat ed key st r
okes,
maki ngt ypingeasi erforpeopl ewi thhandt remor s.
3)Toggl eKey s:I tisanaccessi bil
ityf eat urewhi chi s
desi gnedf orpeopl ewhohav ev isioni mpai rmentor
cogni t i
vedi sabi lit
ies.Whent oggl ekey sar et urned
on,t he comput eremi tsa hi gh sound when t he
l
ocki ngkey s,suchasCapsLock,Num Lock,Scr oll
Lockar eswi tchedonandal ow soundwhent hey
areswi tchedof f
.
4)Sound Sent ry:-I ti sdesi gned f ort heuser swi th
audi toryi mpai rment s.I tgener ateswar nings,such
asbl inkingt i
tl
ebaroraf lashi ngbor der,whenev er
thecomput ergener atesasound.
5)ShowSounds: -Itinst ructsappl icat ionst hatconv ey
i
nf ormat i
onbysound,t oal sopr ov idei nformat i
on
visual ly,
thr ought ex tcapt ionsori nfor mat i
vei cons.
6)High Cont r ast:-I ti s an accessi bili
tyf eat uret o
assistpeopl ewi thv isioni mpai rment .Itcanchange
thesi zeandcol oroff ont sandt hebackgr oundf or
easeofv iewi ng.
7)Cur sorOpt ions: -Iti sanaccessi bil
ityf eaturet hat
assist speopl ewi thv isioni mpai rmentbychangi ng
thebl i
nkr ateandwi dthoft hecur sor .
8)Mouse Key s:-I ti s an accessi bi l
ityf eatur et hat
assist speopl ewhohav edi fficult yusi ngamouse.
Thisopt ionusest hekey boar dasapoi nti
ngdev ice
i
nst eadofamouse.
Seri
alkey s:-Itisanaccessi bil
it
yf eat ur et hatassi sts
peoplet
hathav edi
ffi
cult
yinusi
ngakeyboardora
mouseorbot h.Theycanusespeci
aldevi
cessuchas
Sip,
PuffandBr eat
hSwitchestopr
ovi
deinputt
othe
computerthr
oughser i
alport
s.
Ai
m6
Writ
ethestepst
ocreatei
nst
antmessagi
ng
accountf
orGoogleTal
k.
Sol
uti
on
GoogleTal
ki saninst
antmessagi
ngserv
icet
hat
pr
ovidesbothtextandvoi
cecommunicati
ondev
eloped
byGoogleInc.
Befor
ey oust ar
tusingGoogleTalk,
aGmai laccounti
s
r
equir
ed.FirstdownloadGoogleTalkappli
cati
onf r
om
www.google.com/talkTolaunchGoogleTalk,
ClickSt
art
>Programs>Googl eTal
k>GoogleTalk.
Youneedt
ohav
eal
i
stofcont
act
sthatar
eav
ail
abl
efor
chat
.
I
fy oudon’thaveanycontact
s,y
oucanaddtheirGmai
l
accounttoy ourcont
actl
i
stbysendi
nganinvi
te.

Si
gni
ngI
nint
oyourGoogl
eTal
kAccount
TouseGoogl eTal
k,y
ouneedt
osi
gni
nwi
thy
our
accountdet
ail
s.
Aftersi
gningi
nintoy
ourGoogl
eTalkaccount,y
ou
shouldseeawindowsimi
l
artotheonedispl
ayedbel
ow.
Nowt
heGoogl
eTal
kappl
i
cat
ioni
sreadyf
oruse.
AI
M7
EXPLAI
NNETWORKTYPEANDTOPOLOGI
ES.
SOLUTI
ON:THENETWORKCANBESMALLI NSIZEOR
HUGEINSIZE.SMALLNETWORKSLINKSFEW
COMPUTERSTOGETHERWHEREASHUGENETWORK
CANLINKTHOUSANDSOFCOMPUTERSTOGETHER. SO
THENETWORKTYPESARECLASSI FI
EDINTO
FOLLOWINGTYPESBASEDTHEIRSIZE,
GEOGRAPHICALDISTANCEANDCOMPLEXITY.

1.PAN–Per sonalAreaNetwor k
2.LAN–Local AreaNetwor k
3.MAN–Met ropol
it
anAr eaNetwor k
4.WAN–Wi deAreaNet work
Topologi esarethetypesofnet workl ayout.Itpr
ovides
theinterconnectiontothenetwor k
using 
cabl es 
and networkdevices.Thesef actor
sar e
consideredwhi lechoosingtheappr opriatetopologyfor
thenet work.
1.Cost–  Asmanyoft hecompani esareal ways
thinkingaboutcost -cut t
ingandcost -
ef fectiveness.
Sot henet wor kadmi nistratorhast ot ryt omi nimize
thecostofnet wor kdev icesandcabl esi nstallati
ons
andmai ntenance.
2.
Flexibil
ity 
–Manyt imest heof fi
celay outand
structuremaybemodi fi
ed.Soasnet wor klay out
canbeal sof lexibl
eanychangephy sical office
structurechanges.Thenet workadmi nist r
ator
shoul daddorr emov eorr econfi
guret henet wor k
layouteasi l
y .
3.
Rel i
abili
ty –Anet wor kf ail
urehappensqui teof ten
inthenet wor k.Ther ear et wof ormsofnet wor k
fail
ure.
1.Individual nodef ai l
ur e–Anodeconnect edt othe
net workwhi chismal functioning.Itshoul dbe
isolatedt oav oi
df urtherpr oblemsunt ilthe
net workf ailureget sr epai r
ed.
2.Ent ir
eNet wor k–Somet imesent irenet wor kmay
failduet ouncer tainr esul t
s.Thisl eadst ot he
det ecti
onoft hef aul tandget srepai red.Topol ogy
of f
erst hel ocati
onandsomesol utionsbasedon
thenet wor kl ayoutt ogeti trepair.

Therearemanynetworktopologiesintheexist
ence.I
n
yoursyl
l
abusthefol
lowingtopologiesgiven,
sowewi ll
covert
hem i
nthisart
icl
e.
1.
Star
2.
BusorLinear
3.
Ringorci
rcul
ar
4.
Tree
5.
Mesh
6.
Full
yConnected
Wewil
lseeeachofthem i
ndet
ail
onebyone.

You might also like