bunglefoot
Programmer
Hi, I'm new to SQL (experienced in other types of programming, but no DB stuff) and have the following problem.I have a table coming in from a portable device and a table on the pc with one additional field that contains a numeric value. I want to do the following:
If a record is on the device that is not on the PC, the record is copied to the table on the PC and has the new field initialized to one.
If a record is on the device AND on the PC, the new field is incremented.
If a record is on the PC but not on the device, the record is deleted OR incremented and deleted, i have to look into that.
Before the record is deleted in the third step though, a report with all fields on the PC side database is printed out, sorted by one of the other fields.
Any and all help is appreciated, thanks people!
If a record is on the device that is not on the PC, the record is copied to the table on the PC and has the new field initialized to one.
If a record is on the device AND on the PC, the new field is incremented.
If a record is on the PC but not on the device, the record is deleted OR incremented and deleted, i have to look into that.
Before the record is deleted in the third step though, a report with all fields on the PC side database is printed out, sorted by one of the other fields.
Any and all help is appreciated, thanks people!