Append multiple records from a single record

G

Guest

I have a table "Items" of orders for items such as gift certificates. I
transfer the gift certificate orders to another table "GC" which becomes the
log of gift certificate numbers and the unused balance of the certificate.
My problem is sometimes a customer orders two or more gift certificates and
I must manually duplicate that order in the "GC" table as many times as
needed so I can assign the correct gift certificate number to each
certificate and track the balance of each certificate.
Is there some way I can programatically do this?
 
D

dbahooker

DavidES said:
I have a table "Items" of orders for items such as gift certificates. I
transfer the gift certificate orders to another table "GC" which becomes the
log of gift certificate numbers and the unused balance of the certificate.
My problem is sometimes a customer orders two or more gift certificates and
I must manually duplicate that order in the "GC" table as many times as
needed so I can assign the correct gift certificate number to each
certificate and track the balance of each certificate.
Is there some way I can programatically do this?


yeah a UNION statement..

-Aaron
 
G

Guest

I don't understand how a union statement would append two or more new records
to "GC" based upon one record in "Items"... Can you explain?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top