what is the difference between primary key and forigen key? how to do from two tables please explain?
Discussion posts and replies are publicly visible
Let me google this for you: www.geeksforgeeks.org/.../
how it will do in DB?
have you gone through above link? it has been explained with an example.