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

ddtjhdfyngchmgnmghfgmukftkmty

Database Programming with PL/SQL 4-5: Iterative Control: Nested Loops Practice
Activities
Vocabulary
shbfgh7iyayatae
No new vocser seabulary for this lesson
y seryse
Try It bxfgh/ Solve It
fgergtgrrtyretre
1. dfg dxf gWrite a PL/SQL block to produce a list of available vehicle license
plate numbers. These numbers must be in the following format: NN-MMM, where NN is
between 60 and 65, and MMM is between 100 and 110. Use nested FOR loops. The outer
loop should choose numbers between 60 and 65. The inner loop should choose numbers
between 100 and 110, and concatenate the two numbers together.
tyretyerytertyrtyreytre
2. Modify your block from question 1 to calculate the sum of the two numbers on
each iteration of the inner loop (for example, 62-107 sums to 169), and exit from
the OUTER loop if the sum of the two numbers is greater than 172. Use loop labels.
Test your modified code.
sgbfgnfgngh srtndfnbfdhjmhndngdn
ftyjtyxvcxvbsyugrerwaieofgoerghfh,hj
rttyeryertyreytry45yrthfgnjghnhgjmjhmjh,hj
hntify the vocabulary word for each definition below:
fgrstgrtgdfsghsrth
sergesrdfgt Statementxfghfxgb used to remove existing rows in a table.
ertyrety rhdt65345 efrwefxgbqrfwerwerfrthrtgbrtgertgStatement used to INSERT
and/or UPDATE a target table, based on matching values in a source table.
sdfsfs Statement used to mofxgbdify existing rows in a table.
rtrty When you fjdfhjdfgy inserting or deleting rows).
regsedrgdtrgthfdhghdfhesrth
1. dhgEvajdfgluatehjd the folhmghmjmghlowing SQL statement.
rtvtrsshthserdrtrtdhrdthgjgjhghsdgadfsdxdasgaertersfdg
DELETE sdvrFROM stuftyuufidents;
esrvawefghdfhdfdfgertrhghthd
This SQL statgement will:
A. Not ddue to wrong syntax
B. Delete the first row from STUDENTS
C. Deledfte all rows from STUDENTS
D. None ofdfgdf the abovertyrtyrtt
dthdrhtrtdhrthfghffdhthrteryrfghf
fghdfnfnxdfgdfghnfghhmfghmfghft
nghnghggmfghfghfdgbdfnfghm
tdyjtfjftjytjghfhtyjfghmfghm
ghmghmgmhhrjryjeyhgmghjgyjsrtsgfj
fgdtdrththnghnarhyehr
tyjtfyjftjjhnghnjfjghjdtjfkugkjgrdfdgdf
2. Evaluate the following ghfghfhSQL statement.
fnghnghnghnghngfhn
INSERT INTO STUDENTS (id, last_name, first_name) VALUES (29,'Perez','Jessica');

bfgbdrghrtrgn
yj
tfthfg
jtfgh
jh
fhjtrtwervhuviurcter
drjtt7t
jr7tityjyyui
imymiirutryu6d

You might also like