Problem with many to many relationship

G

gudiya

I have a database with product table(Product_ID as
pk,Product_Name),location table(Location_ID as PK,Location_quantity)
,junction table(Product_ID as fk,location_ID as fk and Relation_ID as
pk),Transaction table(Transaction_ID as pk and linked to product table
with fk,Product_Quantity)

I have already defined many to many relationship.But how must i display
it on form for editing,adding.How should I design the query to know the
which product is stored in which location and check to see that sum of
location_quantity for each product should be equal to Product_Quantity
in transaction table for that product.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top