The 'Item' table will contain a list of distinct items along with their associated data.
The 'history' table will contain a list of how often those items were purchased and the 'ItemId' column will contain the record number of the parent item in the 'Item' table.
I've split the tables but can't get the ItemId record right. Working with more than one table like this is not something I normally do. Anyone know how to frame an SQLite query to do this?
Code: Select all
Original table New item table History table
item item ItemId
category category
brand brand
manufacturer manufacturer
boughtfrom boughtfrom
boughton boughton
quantity quantity
units units
weight weight
aisle aisle
price price
discount discount
total total
note note
picture picture
barcode barcode
deleted deleted
record record record
**UPDATE** Solved by email from the Nabble SQLite support forum.

