Original Post
This probably isnt the right place to ask this question, but here goes.
In my SQL server i have 2 table:
table1 has 2 columns, id (identity), and firstname (varchar).
table2 has 2 columns, id (identity), and lastname (varchar).
What i want to do is to insert firstname and lastname, into table1 and table2 in a single SQL call. The catch is that i would like the 2 id columns to be equal as well. Equal so that i can match all firstnames in table1 with 1 lastname in table2.
Can all this be done in a single sql call?
The database im working with is a lot more complicated than above, but i think it explains my problem.
Ive never really used SQL much, so any help would be very appreciated.
Thanx alot