Hi again,
I've been doing a bit of research around this, and rather than re-starting old threads or dragging mine off topic, I thought I should start a new one. My situation is keeping track of insurance payment details emailed in .csv format. My database is set out like this:
ADVISOR: Advisor ID, Name etc
CUSTOMER: Cust ID, Name etc
PROVIDER: Provider ID, Name etc
PAYMENT: Payment ID, Amount, Policy number etc
POLICY: Policy number, Type, Customer ID, Advisor ID, Provider ID
So, having imported the .csv file (which has multiple irrelevant rows/columns/subtotals etc) into a temporary table, how can I parse the temp table, and append it across multiple tables? A row is a relevant payment if it is after row 6 and has a value in the first field. The struggling point for me is that I would need to check if, for instance, the customer making the payment is already in the database
I've been doing a bit of research around this, and rather than re-starting old threads or dragging mine off topic, I thought I should start a new one. My situation is keeping track of insurance payment details emailed in .csv format. My database is set out like this:
ADVISOR: Advisor ID, Name etc
CUSTOMER: Cust ID, Name etc
PROVIDER: Provider ID, Name etc
PAYMENT: Payment ID, Amount, Policy number etc
POLICY: Policy number, Type, Customer ID, Advisor ID, Provider ID
So, having imported the .csv file (which has multiple irrelevant rows/columns/subtotals etc) into a temporary table, how can I parse the temp table, and append it across multiple tables? A row is a relevant payment if it is after row 6 and has a value in the first field. The struggling point for me is that I would need to check if, for instance, the customer making the payment is already in the database