Android Question any Example with Parent / Child using SQLLite

Bhrt60

Member
Licensed User
Need to create a Invoice system

I'm looking for a example with Parent - Child relationship

So need to have 4 Tables

Customer Details
Invoice Header
Invoice Items
Stock Details

Each Invoice Header has multiple lines or Invoice-items which are related to the invoice Header (1:Many Relationship)

Customer is used as a Lookup only - fields from Customer details populated into Invoice Header ie. Account, Company, Address etc. (NO Normalisation)

Same with the Stock Record. This is used for Invoice items to lookup Stock details and populate the data ie. Stock Code, Description, Price, Tax Code etc. - into Invoice Items (again no normalisation)
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top