Table 2 contains your list of products:id action --------------- 1 ls 2 cd 3 file 4 zonk
And finally Table 3 is a cross reference of the two, called product_actions:id product ----------------- 1 /usr/bin 2 /home 3 /usr/tmp
so something like:p_id a_id ------------- 2 3 1 3 2 4
Would produce:SELECT actions.action, products.product FROM actions, products, product_actions WHERE actions.id = product_actions.a_id AND product.id = product_actions.p_id
At least that's what I think that extremely had in mind. Your results will vary, and from what I hear you saying, it sounds to me like you are working with a very un- normalized database.file /home file /usr/bin zonk /home #don't try this one at home kids!
Hope this helps,
Jeff
In reply to (jeffa) RE: RE: RE: reversing a hash -- printing it
by jeffa
in thread reversing a hash -- printing it
by jptxs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |