473,418 Members | 2,029 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,418 software developers and data experts.

How to combine three tables using a Join?

hi all..
i have 3 tables called itemMaster,ItemWh,whWiseItem(table names i took just for example). here i want to retrieve data from all the 3 tables.

table details
itemMaster having details of Item means Code,Description,UOM etc.
ItemWh-items fro perticular store.
whWiseItem-also transactions for perticular store with item code

what i want is, i want to take items details from itemMaster and items for perticular store from both ItemWh and whWiseItem.

all the tables having ItemCode.

i know how to combine two tables using JOIN. but how can i combine 3 tables.

Expand|Select|Wrap|Line Numbers
  1. SELECT whWiseItem.ItemId,itemMaster.ItemDescription,
  2. itemMaster.UnitPrice,
  3.  FROM whWiseItem
  4.  inner join itemMaster on whWiseItem.ItemID=itemMaster.ItemId 
  5. where WhseId='001'
i want to take items in ItemWh which are not in whWiseItem table. please help me to do this im really confuse.

thank you all
Jun 15 '10 #1
2 1839
ThatThatGuy
449 Expert 256MB
@buterfly0707
May be i can help if you post your entire table structure
Jun 15 '10 #2
eneyardi
180 100+
where you put this code? In a form then on current? on load?
Feb 25 '11 #3

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

Similar topics

0
by: Daniel Rossi | last post by:
Hi there i am trying to work out the most efficient way to list say multipl= e categories of entries, the database is quite large about 200 meg.=20 I would like to know if using join tables is...
3
by: Steve Bishop | last post by:
I am use to working with only single tables with my command object. Now I have 2 tables that need a 1 to 1 relationship. Is it possible to inner join 2 tables in my SQL statement before thowing the...
4
by: Mark | last post by:
hi. i have two tables. table one ("users") contains two columns, "user_id", and "user_name" table two ("spam") contains three columns "msg_id","user_id", and "msg" basically, i want to...
2
by: zwasdl | last post by:
I'm using access to connect to Oracle via ODBC. I can also connect to Oracle via sql*plus. Can I write a query to join tables from different schema? If so, how? Thanks a million! Wei
2
by: =?Utf-8?B?VGVycnk=?= | last post by:
Is it possible to join tables from different databases? If so, what is the format of the select statement? Both databases are on the same server. TIA, -- Terry
8
by: krishnasarma | last post by:
Hi , let table a belongs to db1.mdb and table b belongs to db2.mdb . how can i join these two tables from VB...? can any one give me examples.... thanx in advance
21
patjones
by: patjones | last post by:
Hi all: My newest project involves creating a small help desk database for our customer service division to use. What will happen is that an employee will call up, explain his/her issue, and...
3
by: nhnemo | last post by:
I want to create a view and join two tables together on an identity field it’s a one to many relationship. Basically I have to do a right outer joint but the problem is I only want the record with...
5
Bob Ross
by: Bob Ross | last post by:
Is there a way to to create a single table from multiple tables in a dataset? I currently have a dataset with multiple tables and and relations connecting those tables. Table1 has many records to...
0
by: fantabk | last post by:
Hello, I have 2 tables that I need to join and update, the query look like bellow: UPDATE M1L INNER JOIN M1 ON (M1L.A1 = M1.A2) SET M1L.A3 = . WHERE xxx; In M1, we have multiple records...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.