
CREA
TE
Examples
> CREATE
FINDNAME,
FIND
LAST-NAME
IS
"","",""
END
> FIND
FINDNAME
WHAT
IS
THE
VALUE
OF
-
LAST-NAME
>> MURTZ
WHAT
IS
THE
VALUE
OF
-
LAST-NAME
>> FRANZONI
WHAT
IS
THE
VALUE
OF
-
LAST-NAME
>> X
USING
SERIAL
READ
2
ENTRIES
QUALIFIED
The
previous
example
illustrates
the
result
of
creating
a
pro cedure
with
n
ull
v
alues.
When
the
pro cedure
is
executed,
QUER
Y
prompts
for
three
LAST-NAME
v
alues.
A
v
alue
m
ust
b e
supplied
for
eac
h
n
ull
v
alue.
Ho
w
ev
er,
y
ou
can
use
a
kno
wn
in
v
alid
resp onse
if
y
ou
do
not
w
an
t
a
third
name.
Refer
to
the
FIND
command
for
more
information
on
using
n
ull
v
alues.
> CREATE
CHECK,FIND
CREDIT-RATING
ILT
5
END
> FIND
CHECK
USING
SERIAL
READ
2
ENTRIES
QUALIFIED
> CREATE
NAMES,
>> REPORT
>> D,LAST-NAME,20
>> //
> REPORT
NAMES
>> PAUSE;
>> END
MCFALL
CELERY
The
previous
example
sho
ws
t
w
o
pro cedures.
The
second
pro cedure,
NAMES,
op erates
on
the
results
of
the
rst
pro cedure,
CHECK.
The
pro cedure
named
CHECK
is
useful
eac
h
time
y
ou
w
an
t
to
nd
the
names
of
customers
with
low
credit
ratings.
The
NAMES
rep ort
pro cedure
can
also
b e
used
rep eatedly
to
list
names
from
the
retrieved
en
tries.
As
sho
wn
in
the
second
pro cedure,
it
can
b e
useful
to
leav
e
the
END
k
eyw
ord
out
of
a
REPOR
T
pro cedure.
When
the
pro cedure
is
executed,
QUER
Y
prompts
for
the
missing
END.
Y
ou
can
then
en
ter
additional
rep ort
statements,
suc
h
as
sort
or
output
con
trol
statements,
to
v
ary
the
rep ort
output.
QUERY/V
COMMANDS
3-13
Summary of Contents for QUERY
Page 10: ......
Page 17: ...Figure 1 1 ORDERS Data Base Structure Figure 1 2 Sample Entry Values INTRODUCING QUERY V 1 7 ...
Page 20: ...Figure 1 3 IMAGE QUERY Environments 1 10 INTRODUCING QUERY V ...
Page 36: ......
Page 165: ...REPORT G1 GROUP TITLE 11 END QUERY V COMMANDS 3 129 ...
Page 199: ...XEQ TF TOTAL DUE 9 SPACE B2 SKIP A TF R0 70 E2 S PURCH DATE END QUERY V COMMANDS 3 163 ...
Page 200: ......
Page 244: ......
Page 278: ......
Page 279: ...G ASCII CHARACTER SET This appendix is not available in this edition ASCII CHARACTER SET G 1 ...
Page 280: ......