Click here to Skip to main content
15,907,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello sir
i m using vb.net 2005 and sql server 2000 , i want to fetch record of particular id from multiple table at run time i.e, if report form get load then a dialog appear and ask for which id u want to create report if i put the value id=45 then it show complete records of id no 45.
Posted
Updated 30-Jan-12 0:19am
v2

1 solution

as you haven't told anything about the tables, how your executing the query etc. you need to look up Joins in the SQL that you are using

i.e.

SQL
SELECT a.*
FROM table1 a INNER JOIN Table2 b
ON a.ID = b.ID INNER JOIN Table3 c
ON a.ID = c.ID
WHERE a.id = 1234


Sql 2000 Join fundementals[^]
 
Share this answer
 

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