473,805 Members | 2,027 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with Access query to search multiple tables

1 New Member
I have created a database that has a main table with a description of different products. I have 5 other data bases that are linked sheets that have returns for the 5 different prduct groups. I'd like to have a query run and pull in all the products with their respective return. Is there a way to have it search for the same field on multiple sheets for example if you are looking for Product Sam, then it will check Return Sheet 1 2 or 3 to pull it in. I basically need it to look through the multiple tables and pull in the return respective to the product. This way I can have a master list of all products and all returns. I'm a newbie so let me know if I left anything out. This is the SQL:

SELECT AssetDescriptio ns.Name, AssetDescriptio ns.SubAssetClas s, AssetDescriptio ns.SubStrategy, AssetDescriptio ns.Benchmark, AssetDescriptio ns.VehicleType, AssetDescriptio ns.ManagerFee, AssetDescriptio ns.IndividualMi nimum, AssetDescriptio ns.Institutiona lMinimum, ManagerReturns.[3Y Ann ROR] AS [ManagerReturns_ 3Y Ann ROR], ManagerReturns.[3Y Std Dev] AS [ManagerReturns_ 3Y Std Dev], ManagerReturns.[3Y Shrp Rto] AS [ManagerReturns_ 3Y Shrp Rto], ManagerReturns.[3Y Beta] AS [ManagerReturns_ 3Y Beta], MutualFundRetur ns.[3Y Ann ROR] AS [MutualFundRetur ns_3Y Ann ROR], HedgeFundReturn s.[3Y Ann ROR] AS [HedgeFundReturn s_3Y Ann ROR], HedgeFundReturn s.[3Y Std Dev] AS [HedgeFundReturn s_3Y Std Dev], ETFReturns.[3Y Ann ROR] AS [ETFReturns_3Y Ann ROR], ETFReturns.[3Y Std Dev] AS [ETFReturns_3Y Std Dev], ETFReturns.[3Y Shrp Rto] AS [ETFReturns_3Y Shrp Rto], ETFReturns.[3Y Beta] AS [ETFReturns_3Y Beta]
FROM ((IndexDes LEFT JOIN IndexReturns ON IndexDes.CANDID ATE_NAME = IndexReturns.CA NDIDATE_NAME) RIGHT JOIN (((AssetDescrip tions LEFT JOIN HedgeFundReturn s ON AssetDescriptio ns.CANDIDATE_NA ME = HedgeFundReturn s.CANDIDATE_NAM E) LEFT JOIN ManagerReturns ON AssetDescriptio ns.CANDIDATE_NA ME = ManagerReturns. CANDIDATE_NAME) LEFT JOIN MutualFundRetur ns ON AssetDescriptio ns.CANDIDATE_NA ME = MutualFundRetur ns.CANDIDATE_NA ME) ON IndexDes.Name = AssetDescriptio ns.Benchmark) LEFT JOIN ETFReturns ON AssetDescriptio ns.CANDIDATE_NA ME = ETFReturns.CAND IDATE_NAME;

This pulls in all my data in different columns. I was wondering if there was a way to pull in respective data into one column since they all have the same column name. So all the data on the AssetDescriptio ns page shows up and then under the 3Y Ann ROR will have the return in one column if the product is from MutualFundRetur ns or ETFReturns.
Aug 6 '07 #1
0 1524

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

Similar topics

5
9008
by: LRW | last post by:
Well, I have another question that's hard to ask, so I may end up over explaining the question. I have about 40 tables, all with a similar column structure. I want to be able to search through every table for a keyword. Is there a way to do that using, an array or next or something. So like, all the table, say tbl_1, tbl_2, tbl_3 etc have let's say 3 columns. id, name, note for example. And I want to seach all 40 tables in the name...
0
1218
by: JIM WHITAKER | last post by:
Are there any good PHP scripts or pre written programs that deal with a complex database? Let me explain: I'm in truck dispatch, and we've moved all tables to mysql and access them on a network via ms access. We will open another office in another city, and will want a "web" database. Now here's what I'm after: Currently one form has various dropdown boxes to pick customer, shipper, consignee, and carrier information. YES, I even have...
1
2774
by: Melissa Kay Beeline | last post by:
OK, here's the sitch : we have an access control system at work that registers ever entry/exit of every employee. I recently made some queries in Access so the ppl in HR could make reports (who came in late, how many ppl were undertimed, etc etc) Now they are not satisfied (of course) and they want a list of ABSENT employees. I have the following tables : PERSONNEL CARD
4
2433
by: Tarun Mistry | last post by:
Hi all, I have posted this in both the c# and asp.net groups as it applies to both (apologies if it breaks some group rules). I am making a web app in asp.net using c#. This is the first fully OO application I will be making, also my first .NET application, so im looking for any help and guidance. Ok, my problems are todo with object and database abstraction, what should i do.
10
2113
by: Robert | last post by:
I am an attorney in a non-profit organization and a self-taught programmer. I'm trying to create a client db that will allow me to search for potential conflicts of interest based either on Social Security # or on Last Name. I've created two different tables with the following fields in each table: ClientInfo Client# (primary key) First Name Middle Name Last Name
17
2036
by: OdAwG | last post by:
Just some questions regarding tables. I am new Access Database and need a little help. I have the following data listed below 01. I have a table called tbl_Customer with the following information listed below 02. In that table I have three columns that have numeric data in it (City, State, Marital_Status) 03. I need to convert the numeric data in table tbl_customer (City, State, Marital_Status) to alpha numeric data 04. using the...
7
2302
by: 663scott | last post by:
Hi I am pretty new to ACCESS. I have created some small databases previously. I need to run a simple query searching for a USERNAME which will gather information from five to ten tables containing seperate bits of information and combine them into a report. The primary key on all of the tables is the username. AS AN EXAMPLE: TABLE 1 USERNAME DATE JOINED
0
7603
MMcCarthy
by: MMcCarthy | last post by:
The more data you include in your tables the more you will need to have indexes to search and sort that data. However, there is a balance between having enough indexes and too many. Too many indexes will slow down the speed of updates on your records. Access presets a number of Indexes for you. If you look in Tools ... Options under the Tables/Queries tab you will see that under "Auto Index on Import/Create" there is a list as follows: ...
1
4172
by: jcf378 | last post by:
Hi all-- Does anyone have any insight as to how I might create a search form that allows a user to select criteria based on any related table in the whole database. The search form I have now only allows me to filter based on variables in a single table. I would like to have a search form where I can select multiple variables (from various linked tables) to filter by, and return results based on this multi-table filter. Allen Browne...
0
10356
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10361
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7644
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6874
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5676
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3839
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.