Lab Assignment 4

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Page No:.

AsSTGNME NT-
avatl e Calculaed
4The Commission that an emplouee
salaty
Ca n
The meportt
by multpluin the Commceîon Y
CommicetonD
l ee he
heuemend t o e t c h the
am
Contatn
Subetatn
ameunt the empLoyeec
uhote trst name tecor ds
ts nul. 4hen
Co m i t s s t o n n
d m o u n t

Cal cula ted Commi cste


avi' Ahe the
Omitt ed Please nam ee
need be amt
1C mmission
Column headern as
Full- nam
' Last_name
Ema4name || CommteSion

uen Selec alar


Comm1setor-pct Commiscion P not
ammission
-pet,
hee
amt
Fmom emp ke avt
null F tet

OHMIss lotl AMT


OutputF FULLNAHE
ConNsstoN-PeT

5
15
Davi d Bene-tein|
680
Dovid ee 1
Secood

e-tumed tn
o plouee detale
to qet er

.) The P
Lants
The eornt euld only
n dart
santfc ul art
Fonm Fotmnat

iho ane
ellble
Contatn no m" about emploqee sheuld be shou
mtsc ten Als the 'detarle
ton Co m me sheuld be
uhote
tnql e column
ehald be
eedetaile ". The data
ei a Employ odata.
Orr qantc
s t e n diog onde o hlme
dieplayd tn an

Cample tow antnens


Lac himed on
Kanen
The emploee saart 13500
ata
O5Jan
Emplouee l finetname l1' I lr-
Su
u ee
n ry-Celect
htmed o n 11 hime
- date |1 at a alart
l
Ulas
"
orqanisatiOnEmployee Detatle
ham e
ae

I1 1 Salany htnedele
emplodeeS ortd e
om
Page No : . . .sa

Output
Oqanisation employee De-lails
The hirad on 17June-3
e
mploye e even kToq a
Sala u oF 84000
asht ed on
Th employ enniem
halen

14-Sep - 8 7 a t a 3alaY
-
O O0 econds
Tettned n
detals
(2 Nte aquermy to
ul4h
qet althe

manaqen havfng id s
ho ane o t onkiiq
100
1, ie2 . o M I , loo 120 LR1. Th quemy
etondt where
ut thoce
sheuldalso e Hlterr
ST_' Aso the dept-i1d
rd
the job - eqn
Should not b e betiaeen

Queny - Select F aet-na


ame nagen-1d , job-id,
luheme ma noqem-16.
ploye es
de pantment ld tomem

,ioz 1 , loo, 20, 1 2 a n d


hot
hot n (Aoo, lo3 , 4o2 ,
not
ob- 1d not like ST-Y,' and de pamtment - td
betueen o and oo

Output
FiRST-NAtE MANAGGFR_ID Jos ID DE P -

ID

Ky T22 SH- CLE RK So

Douglas 1ay SH CLER K s0


Pat R RE P
Hetnmann
PR REP
ToLug euned O0 Seconde

he e Last name
each empAS
the numbe r e monhcbetueen lodol
and Cul culate utac hined .
Label fhe
nd h e date o employeee
Norn ked Ondem by ecul
Months
Cal umns employ ed . Found he
Honthne
he numbern o
humben a mondhs upto 4he elosast- uhole Numbe
Page No: ..

e Select last Moun monthe .betu een


Ho
Ccumentdate ,
hine date)) Month-uuoMked

ployees Ortderr by Heund Honth-betuueen


Cunnem4-date hte-dete)
Outbut
LA ST-NAME M o T t - WoRKED
Ande
Martkle

Lee
o e tuned o00 cecona
a13
name
lact
5 Fnd the 3d charartert o t h
nd
e
t h a 3* uce

m he employees table rtomhebe let


lef
F na4 Column knomne
Column
the
o pad
Pad
honoelen

to ato-tal utdth
o ehartettens
above
he
Stnqle Te on Subsi
20,

uer Select p a d lact-narme


chamacden oe Emplo
3, A) "4hl
Lta-neme,

OuH bu imd chroetert


nnnnnonnnnnnnnonnKinq

c C c c c c c e c e C k o c h h

De hann
turned n 0-o0 Seconds
*10 owS n the Commissior
n nh e ace
declanes
T h Compan new Comnmi seie) C how

employeec he
he e p 4. 1 e
Col Co ramlcsion)
o t mula
Catuleted uctna
4 Ltc4 he Full namd
to 4hepowert
old
CommicCionn

new
CommisCtonn o n all empl.
old Ce mmtcthen
Salany a
C o m m scte 0 fhe Comm1sCto

who ane eltqtble en Salamy and


o he
bu he phtodu
Cal cula ed
Petee n taq.
Ce n m i c c \ a n
Page No :. ..

ueny Cele c+ Firct-narme |1 | Lot-hame ac Ful


name ommietan pet Com9ittion -Pet ¥ Salanu aS

O m s t i on - amt Floom power (com miscion.

1 I * Salarty New Commicsten Pc "1em eroployes


whette Cemilc\on not null

Out sut
NE
FULL-NANE ConHss1oN-PeT ComMICc [oA1 AHT CotmcctoN- PCT|

John Ruscell 5600

kamen Parmnens 4o50 3516


Cnemald Cambmault
3600 3191

O 0o e Co ndS
35 Mewe e-turmed n

name Lalatyo
1 Wa& toFnd Fne name,Lac
qetnq C o m m iscTong
uhe ame no-t
employ Lac-l-hame , Calany, Calan
name

uemy-Sele cd Prct. employees .uheme Conmmiccion-

om i en PCt e m
P C nul
Output = emNISe TO-PeT|
FieST-NAHE LAST-NAME SALAR7
teven Knq a000

Nee0a kechhar ao00

Lex
Dehaan I7000
e t u n ed n O 00 econds

4he acl name, Ftntt


2) Nntte thoim omplede
nome

home ,
to4a lenq th
eath ployee 1n depan4ment
dectqnatten Calanip o em

he ttecorn d ac Pen thoin


Ho and So Son

le ng4h narv e
Page No.
Select nom Lotd - naroe Len 1th
FIt - hame || loct name), qeb--id, alortytom

erpls er wherte depend ment-1fn CHo, 5o)


Outbut LENOTH

F1eST_NAHE LAST NaME CFrect NaHE 1) LaST_N AME JoB SALAY

Ma4hew Wetee 12 ST HAN 00

Adam ST-NAN 2290

Payan
Kaling ST-HAN 7100
Cecend S
L6 ow netumed In O 00
dame

the employees able Eind


he Fna
Frem he he
L e r t Ked
in
uho hove
oF A
the em ployee lrek e Calc tulate
4he!
han
ort . PN
morne
OHaniSation
date
mploymeent rteg o d a '
dunattcn attuallq
cke v e attuall
h r h ohove
the numben o
hepoA Tesu
n aceendinq d e
Lotked ortt the
und umment -dre
n ame
F
-

eled
uert eks Wonk ed
Wotked then mom
teqethen
We - bhine
ine-
_date/a) ttate
hhin
e Cu m e n t - e t e n t - d a t e
unene aund -
plo ye e nd ( (u
em

8oo ord ert b by


date
htmedate)/s7)ase.
NORKED
Oukput:- IRCT-NAME
WE E s

Sundq

82
Sundan

Steven

ted n 0.oo Seconds


Page No: ... ***se
60. Wn4e o dis play hatemply act nam e
utth 4he st letten ca pitali2 ed dll them
lettems
ettens tn aulertede and helenqth he
24ortle
ees u h o se
hame onAt e

olunn n
tth J, A and H ven each
by he
PPHOpHtate abel ort- h ecul
as-t name
emplo
es

, n1Cap lact - name)


uerty -Select Frs- || Los4
-hame

CFIms4_name
Lact Name",
Nam e
Lenq-th ke
me F t -hame
emplouees u
ter ke D o F
Dame

h -1mA nam e ac
Last
AK e my. ondert b
LAsT NAHE LNOTH FIRST NaHE I||
E i R e T - N o n E
LAST Nane)

A in Son
Mozh
Amit
Banda
Bull o
Alex

Oo0 Seconde
t e t u M e d n
tauJC

GH-22.2

You might also like