- Messages
- 3,534
- Reaction score
- 196
- Points
- 63
Need to make a query for:
database with 3 tabels
#1 `shipTo` has key "shipID" and column "address"
#2 `cust` has key "custID" and fk "shipTo.shipID"
#3 `parts` has key "partID" and fk "cust.custID"
list shipto.address
where [any]cust.shipID = shipTo.shipID WITH [any]parts.custID = cust.custID
or say it this way
if any group of `cust` have `parts` throw shipTo.address for that group
output S/B <= number of `shipTo` rows
Thanks
database with 3 tabels
#1 `shipTo` has key "shipID" and column "address"
#2 `cust` has key "custID" and fk "shipTo.shipID"
#3 `parts` has key "partID" and fk "cust.custID"
list shipto.address
where [any]cust.shipID = shipTo.shipID WITH [any]parts.custID = cust.custID
or say it this way
if any group of `cust` have `parts` throw shipTo.address for that group
output S/B <= number of `shipTo` rows
Thanks
Last edited: