I need some direction on how to set this SQL up.
I have a temporary table for a report. The table has three columns and for example two records, there will actually a lot more. I want to insert a new record with a calculated difference between the amount the two records for a specific customer. A customer would never have more than two records. Example of what I am trying to do.
Customer Type Amount
CustA TypeA 100.00
CustA TypeB 25.00
CustA TypeD 75.00 /* New record added by insert
Rookie still learning,
vmon
I have a temporary table for a report. The table has three columns and for example two records, there will actually a lot more. I want to insert a new record with a calculated difference between the amount the two records for a specific customer. A customer would never have more than two records. Example of what I am trying to do.
Customer Type Amount
CustA TypeA 100.00
CustA TypeB 25.00
CustA TypeD 75.00 /* New record added by insert
Rookie still learning,
vmon