Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

primary key

Former Member
0 Likes
598

hi experts,

while joining two tables on ON COND.

in that COND the fields should be primary keys or any fields other than primary key we can mention .

please clear me

5 REPLIES 5
Read only

Former Member
0 Likes
576

hi,

join should always be on a key field.

Please refer to this link for more info,

http://www.w3schools.com/sql/sql_join.asp

Regards,

Vinodh

Read only

Former Member
0 Likes
576

Hi,

If your problem is solved, please assign points and close the thread.

Regards,

Vinodh

Read only

Former Member
0 Likes
576

hi,

Join is always done for the key fields only.

Read only

Former Member
0 Likes
576

It can be a common feilds also but you cant assure the data integrity so we go for primary key.

BUT YOU CAN USE INNER JOIN ON COMMON FEILD ALSO.

regards,

Prabhu

Read only

Former Member
0 Likes
576

hi

u join two tables using any common fields..

but if it is a key field then retrievel will be efficient,..

reward if useful