This is a standard many-to-many relationship (many packages to many items)
CREATE TABLE products (
product_id integer PRIMARY KEY,
product_name text,
price numeric);
CREATE TABLE packages (
package_id integer PRIMARY KEY,
package_name text,
price numeric);
CREATE TABLE package_items (
package_item_id integer PRIMARY KEY,
package_id integer,
product_id integer,
qty integer );
Donnie
2009-11-25 23:55:23