openedge - Progress 4GL queries -


i new language , having problems understand queries.

for example:

there 2 database tables: warehouse, product. each warehouse can have multiple products , products can stored in different warehouses.

query:    each warehouse,        each product:    display warehouse.name, product.prodcode. end. 

the display

warehousename   productcode awarehouse       ska-301 

so result, these columns display total independent result, eg. ska-301 product may not in awarehouse. or display product in awarehouse? if product , warehouse don't have related fields?

please me. thank you.

in code have shown each product every iteration of warehouse.

to products specific particular warehouse need add criteria 2nd clause of join. assuming have product.warehousename field suit purpose....

for each warehouse no-lock,   each product no-lock product.warehousename = warehouse.name:    display     warehouse.name     product.prodcode   .  end. 

(if there no index on product.warehousename very inefficient.)


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -