Say I have a user table with the fields: Name, Email, Telephone, IDCareer
In this table IDCareer is the foreign key.
I have another table called Career with the fields: IDCareer, CareerName
My plan it to have a ComboBox on my form and pulls a list of available careers directly from my DB. My problem is this is my first time using SQL to insert things in two tables at once (is this even what I should be doing?)
For instance, to insert into the first table, I'd go:
*Insert into User values ('Sergio','[email protected]','345', and here I'm lost
What should I put into the end so it saves properly?
Edit: Thanks a lot for all your answers. As always SO is a great learning tool. :D