L
lunde
I have a table orders where I want to select a carrier based on the
delivery_country and pack_weight. To do the latter I have defined a new
table freight_rules with this content:
country weight carrier class
Germany 500 carr1 mail
Germany 2000 carr2 pack
Germany 10000 carr3 courier
So what I'm after is to lookup/join where orders.delivery_country =
freight_rules.country and orders.pack_weight <= weight. The later gives
me problems, for how can I make for example a pack_weight of 350 grams
pick "carr1" and a pack_weight of 1500 grams pick "carr2" ?
Thanks
Mogens
delivery_country and pack_weight. To do the latter I have defined a new
table freight_rules with this content:
country weight carrier class
Germany 500 carr1 mail
Germany 2000 carr2 pack
Germany 10000 carr3 courier
So what I'm after is to lookup/join where orders.delivery_country =
freight_rules.country and orders.pack_weight <= weight. The later gives
me problems, for how can I make for example a pack_weight of 350 grams
pick "carr1" and a pack_weight of 1500 grams pick "carr2" ?
Thanks
Mogens