primary and foreign keys

A

amod

hi,

i am confused between these keys. say i create two tables. Now, i
would like to know - which table i need to create primery key and in
which table foreign key, how do i relate them when i write a query.

While creating foreign key do we have to mention that this key has
primery key in some perticular table.

i have not understood the concept. pl explain

amod
 

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