473,396 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Display data in one form from 2 different tables

31
Hi,
I would like to ask, is it possible if i would like to display data in one form from two different table in database? Thank you. =)
Nov 27 '12 #1

✓ answered by Rabbit

Yes it is. You just need to write your query as a join query or a union query. How you write your query depends on how those two tables are related, you were unclear in that aspect.

7 2655
Rabbit
12,516 Expert Mod 8TB
Yes it is. You just need to write your query as a join query or a union query. How you write your query depends on how those two tables are related, you were unclear in that aspect.
Nov 27 '12 #2
huda89
31
OK, thank you Rabbit. I will try search for it :)
Nov 27 '12 #3
Hi,

yes, please study joins in detail.
http://www.w3schools.com/sql/sql_join.asp
You will understand the whole concept, you can join any number of tables together
Dec 20 '12 #4
huda89
31
Hi solutionwand,
Thank you for your reply =)
I have managed to solve that problem.
Dec 20 '12 #5
Yes look up joins inner or outer.
Dec 20 '12 #6
huda89
31
Thank you gumpagoo =)
Dec 24 '12 #7
You can Write
Select Table1.a , Table2.b
From Table1 Inner join Table2
on Table1.Fieldn = Table2.Fieldn


in CommandText
Dec 25 '12 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Paolo | last post by:
I know I should not be doing this, but I find it very useful. I have a database in Access which stores data for a small company. Sometimes we need to add similar information to different tables....
17
by: Wilfried | last post by:
Hi, I have 5 tables: main data1
4
by: Jon Bosker | last post by:
Hi My data is held in XML. I have 2 tables one with some time entry data and the other with some project related data - here is the much simplified version: TimeEntries (table) - StartTime...
0
by: Gabriel León | last post by:
Hi, Im developing a web site. i have a couple of tables in my sql server 2000 and i want them to be displayed by the same gridview by changing the objectdatasource or tableadapter or whatever. ...
0
by: Jerms | last post by:
Hello all, I've been using this site quite a bit since starting my project and have found it very helpful. I have run into a roadblock though that I cant seem to scrounge up a solution to. I...
6
by: BinaryGirl23 | last post by:
Hi Everyone : ) I hope that this question is actually something easy in disguise. Re: Access 2003 I have a report that displays information about which of our employees worked at a given job over...
18
by: waterfall | last post by:
How to get data from database in text box on selecting a value from combobox in C# web forms? Im using two tables employee and worker table.i succeeded in populating combobox with data from SQL...
1
by: vasanthan | last post by:
i have two tables .. service master with ID,servicename.....it contains 5 records.. system master with ID,systemnane--it contains 3 records.. i want to displays records as.... sysId ...
9
zimes
by: zimes | last post by:
I am working with Microsoft Access 2003 from the Office XP pro suite. I have created several tables that have to do with Asset tracking along with purchasing. I have a table called Purchasing,...
3
by: kour | last post by:
i have got six tables and i have to loop the data from these tables into different table or excel sheet.
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.