I want to enter 100 transactions into a sql server DB that have the same address and phone number but a different name.
Thanks
Ok lots of negative reaction from the happy people so
I want to insert 100 transaction all the same name & address but different PO box. so my insert would look something like this .
Insert into PEOPLE (PO_BOX, NAME , ADDRESS)
VALUES ('100501', 'MICHAEL COLLINS', 'MBEAL NA BLATH')
How can I do this while keeping the same name and address but incrementing the po box from 100501 to 100600 . The po box is not the primary key as there is already an index key.
THanks
If your names are stored in another table then you can do the following:
See SQL Fiddle with Demo
Based on your edit, you will do the following:
See SQL fiddle with Demo