
JOIN
>JOIN
SALES-DETAIL.STOCK#
TO
STOCK-DETAIL.STOCK#
<--------(SALES
DETAIL)-------->
<---------(STOCK-DETAIL)--------->
--------------------------------------------------------- --------------
ACCT-#
STOCK-#
QUAN
STOCK-#
DESCR
ON-HAND
--------------------------------------------------------- --------------
222
60
25
60
BOLT
1200
--------------------------------------------------------- --------------
If
y
ou
w
an
t
to
k
eep
all
of
the
en
tries
in
the
SALES-DET
AIL
data
set,
use
the
@
parameter.
Placing
the
@
sign
on
the
SALES-DET
AIL
side
of
the
TO
ensures
that
all
en
tries
for
the
SALES-DET
AIL
data
set
will
b e
included
in
the
resulting
comp ound
data
set
ev
en
if
there
is
no
corresp onding
v
alue
for
STOCK#
in
the
STOCK-DET
AIL
data
set.
F
or
example,
the
JOIN
b elow
pro duces
the
follo wing
comp ound
data
set.
>JOIN
SALES-DETAIL.STOCK#
@
TO
STOCK-DETAIL.STOCK#
<-------(SALES
DETAIL)-------><---------(STOCK-DETAIL)-------->
--------------------------------------------------------- ---------
ACCT-#
STOCK-#
QUAN
STOCK-#
DESCR
ON-HAND
--------------------------------------------------------- ---------
666
90
350
*
****
*
222
60
25
60
BOLT
1200
--------------------------------------------------------- ---------
The
comp ound
en
try
STOCK#
=
90
is
included,
but
there
is
no
STOCK#
=
90
in
the
STOCK-DET
AIL
set.
The
corresp onding
missing
en
try
from
STOCK-DET
AIL
is
represen
ted
with
asterisks.
Missing
en
tries
can
b e
retrieved
using
the
MUL
TIFIND
or
SUBSET
command
with
the
$MISSING
parameter.
Placing
the
@
sign
on
the
other
side
of
the
TO
preserv
es
all
en
tries
in
the
data
set
STOCK-DET
AIL,
and
marks
missing
en
tries
from
the
SALES-DET
AIL
with
asterisks.
The
next
JOIN
command
pro duces
the
follo
wing
comp ound
data
set.
>JOIN
SALES-DETAIL.STOCK#
TO
@
STOCK-DETAIL.STOCK#
<---------(SALES-DETAIL)------->
<--------(STOCK-DETAIL)------>
--------------------------------------------------------- ---------
ACCT-#
STOCK-#
QUAN
STOCK-#
DESCR
ON-HAND
--------------------------------------------------------- ---------
*
*
*
110
NUT
970
222
60
25
60
BOLT
1200
--------------------------------------------------------- ---------
Note:
When
forming
comp ound
en
tries
for
three
or
more
data
sets,
once
an
en
try
from
a
data
set
is
considered
missing,
no
further
joins
can
b e
made
with
the
missing
en
try
,
and
missing
en
tries
will
b e
propagated.
When
joining
data
sets
with
the
@
parameter,
the
following
restrictions
apply:
The
@
parameter
is
not
allo w
ed
on
b oth
sides
of
the
TO.
The
@
parameter
is
not
allo w
ed
on
a
cycle
of
data
sets.
A
cycle
o ccurs
when
the
data
item
equiv
alences,
in
eect,
form
a
circle.
The
follo wing
are
examples
of
illegal
data
cycles:
>JOIN
SETA.ITEM1
@
TO
SETB.ITEM1,&
>>
SETB.ITEM2
@
TO
SETA.ITEM3
QUERY/V
COMMANDS
3-61
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: ......