A
Andy Roberts
Hi all
This one is driving me crazy - (especially as I'm sure its simple!)
I am creating a DB which will work like Northwind. The problem I have is
that my products table is causing me some issues. Unlike Northwind my
products have serial numbers
So I have many products the same but with different serial numbers eg
Product1 0001
Product1 0002
Product1 0003
Product2 0099
Product2 0098 etc
I have a products table which lists Product 1, Product 2 etc and then a
serial number table with all my serial numbers in (Is this correct?) When I
assign a product to an order then I want to see the product name and the
product serail number (ie the combination of the two tables). It gets a bit
complicated as I want to make the serial number field in the serial number
table unique - However I have products which dont have a serial number (eg
cables) - They are listed as one entry with a stock count.
BUT I want to also see these in a list when I assign a product to an order.
If you look at Northwind then I would need to have duplicated data in the
products table (ie Prodcut 1 would appear many times and would just have a
different serial number for each record - this is obviously data duplication
and I dont want that.
Also I want to not see a product/serial number combination if already
assigned to an order - how is this achieved. At the moment there are no
forms as I am trying to get the table data correct.
I apologise if this is explained badly!
Thanks
Andy Roberts
Not sure if I'm explaining this correctly!
This one is driving me crazy - (especially as I'm sure its simple!)
I am creating a DB which will work like Northwind. The problem I have is
that my products table is causing me some issues. Unlike Northwind my
products have serial numbers
So I have many products the same but with different serial numbers eg
Product1 0001
Product1 0002
Product1 0003
Product2 0099
Product2 0098 etc
I have a products table which lists Product 1, Product 2 etc and then a
serial number table with all my serial numbers in (Is this correct?) When I
assign a product to an order then I want to see the product name and the
product serail number (ie the combination of the two tables). It gets a bit
complicated as I want to make the serial number field in the serial number
table unique - However I have products which dont have a serial number (eg
cables) - They are listed as one entry with a stock count.
BUT I want to also see these in a list when I assign a product to an order.
If you look at Northwind then I would need to have duplicated data in the
products table (ie Prodcut 1 would appear many times and would just have a
different serial number for each record - this is obviously data duplication
and I dont want that.
Also I want to not see a product/serial number combination if already
assigned to an order - how is this achieved. At the moment there are no
forms as I am trying to get the table data correct.
I apologise if this is explained badly!
Thanks
Andy Roberts
Not sure if I'm explaining this correctly!