Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more: , +
Table A (column1(primary key),column2 ,column3) and Table B(column1(primary key),column2(foreign key(column1 with Table A)),column3(foreign key (column1 with Table A))

friend how to call the Table A column1 value from Table B column2,column3 display Gridview?



please help me!!!
<pre lang="text">
Posted
Updated 13-Feb-14 22:27pm
v2

1 solution

Try:
SQL
SELECT column1 FROM [Table A]


"This is ok fine friend but i am sorry friend how to call the Table A column1 value from Table B column2,column3 display Gridview? please help me friend!!!"

Not exactly sure what you want, but...
SQL
SELECT b.column3, a.column2 FROM [Table B] b
JOIN [Table A] a 
   ON b.column2=a.column1

Might be what you want - if not, then try giving an example instead of random example names! :laugh:
 
Share this answer
 
v2
Comments
jeevakumar.T 14-Feb-14 4:26am    
This is ok fine friend but i am sorry friend how to call the Table A column1 value from Table B column2,column3 display Gridview? please help me friend!!!
OriginalGriff 14-Feb-14 4:41am    
Answer updated
jeevakumar.T 14-Feb-14 4:48am    
Thank you!!!
OriginalGriff 14-Feb-14 4:52am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900