Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Help... I am a novice and have been tasked to create a dB. I have created SQL Sewrver Tables and a web project. I need help diplaying information from two tables into 1 web form without haveing to use paging. There is only 1 row in 1 table and many rows in the 2nd table. I have created a form and it is working but I have to page to see all the data from the 2nd table.
Posted
Updated 10-Oct-12 19:51pm
v2
Comments
Al Moje 10-Oct-12 22:46pm    
Could you post your code snippet you had been made?
[no name] 10-Oct-12 22:50pm    
Okay.... so what specific question related to a specific programming problem do you have? Connect to the database, query the information and display it. What is the problem?
Sergey Alexandrovich Kryukov 10-Oct-12 22:51pm    
Sewer is where the dirty stuff goes, Server is something which server, but what's "Sewrver"? "diplaying"? "haveing"? "datga"? Your English is not that bad to be an excuse. Having such a basic thing as spellchecker is a matter of mere politeness, and it would be free.
--SA
Dinesh Ambaliya 11-Oct-12 1:37am    
Use join clause in your query to join both table and then display that table in your page

1 solution

You can use inner join in your sql query to select records from both tables.
Try something like following statement :

SQL
select table1.*,table2.*
from table1
inner join table2 on table1.Column1 = table2.Column1
where table1.Column1 = SomeValue
 
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