473,654 Members | 3,096 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Comparing values in two tables and show result

Hello! Here is my issue:

I have a list of child care providers, their contact information, and stats
in a table called tblproviders. I have clients request in another table.
I want to match up clients with providers that meet their criteria and to
bring up a list with the providers information on it. How would I go about
doing this. In laymans terms preferably! :-)

(not actual, just an idea)

tblProviders

fldName
fldCity Look-up/dropdown
fldPets Y/N
fldAccreditatio n Look-up/dropdown

tblClients

fldClientName
fldClientCity
fldClientPets
fldClientAccred itation

I want the name of all providers where city, pets, and accreditation fields
match the clients.

Please help, and please e-mail me! My address is

marileehaney[AT]hotmail[dot]com

Thanks

--
Message posted via http://www.accessmonster.com
Nov 13 '05 #1
2 1469
I forgot to add, I don't want an entire list of who matches who, I want to
be able to push a button and run this report for 1 client at a time.
Thanks!

--
Message posted via http://www.accessmonster.com
Nov 13 '05 #2
On Fri, 18 Mar 2005 15:41:36 GMT, "Marilee Haney via
AccessMonster.c om" <fo***@AccessMo nster.com> wrote:

A perfect match-up is found with an inner-join query. So if
P.City=C.City and P.Pets=C.Pets and P.CA=C.CA
then you have a perfect match.

If you want only 1 client, then that just adds one more element to
your WHERE clause:
.... where ClientID=x

-Tom.

Hello! Here is my issue:

I have a list of child care providers, their contact information, and stats
in a table called tblproviders. I have clients request in another table.
I want to match up clients with providers that meet their criteria and to
bring up a list with the providers information on it. How would I go about
doing this. In laymans terms preferably! :-)

(not actual, just an idea)

tblProviders

fldName
fldCity Look-up/dropdown
fldPets Y/N
fldAccreditati on Look-up/dropdown

tblClients

fldClientNam e
fldClientCit y
fldClientPet s
fldClientAccre ditation

I want the name of all providers where city, pets, and accreditation fields
match the clients.

Please help, and please e-mail me! My address is

marileehaney[AT]hotmail[dot]com

Thanks


Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3042
by: lkrubner | last post by:
I have a webserver through Rackspace. I create a domain. I create an FTP user. I upload some files. I create a database called testOfSetupScript and then I create a database user named setup. I write some PHP code which should, I think, be able to to auto create the tables. The SQL looks like this:
2
1561
by: Ian N | last post by:
Hi, i was wondering if anyone would be able to help me with a problem i'm having, I currently have two tables, in a database, one is Called products, and one is called groupproducts, their are multiple groups which can be added to or removed from. I want to creat a screen which lists all of the products and then places a tick in a tick box if that products in the specified group. >From this i'd submit it to another page which update...
3
3095
by: twdo | last post by:
Let me see if I can explain my situation clearly. I have a table with the columns: answer_id, question_id, member_id, answer - answer_id is the primary key for the table. - question_id relates to another table with questions for a user. The table holds the question and the possible choices in a varchar field separated by a delimiter.
0
1227
by: Jeff Marcum | last post by:
I have two tables that I want to compare and show me the unmatched records. I want to use all fields on both table in the comparison. Here is an example of the fields that are on both tables. Person_id Person_name Phone_no Person_id and person_name have values in all records. Phone_no is null on some records.
4
4153
by: osmethod | last post by:
Hello, I have read many articles about comparing tables, like - loops, delete queries, appending to temp table with index etc Problem: 2 tables T1 & T2. Data is suppposed to be the same in both tables but i need to check that this is so. (Maybe a user deleted a row in one table only or changed a value in a field!). The tables have no unique index.
8
1769
by: charles.amith | last post by:
I have 2 tables: LOCATION and ELEVATION In location, I would like to find the record with the max value for field: DATE1 In elevation, I would like to find the record with the max value for field: DATE2 I would like to join the 2 tables using the common field: PID , and also query a field called NOTE from the "LOCATION" table.
2
3091
by: Wayne | last post by:
We have a query which compares each field in two tables (let's say Table1 and Table2) and identifies any records that have been modified. For example, one of these columns looks like: Field: Priority Table: Table2 Sort: Show: Criteria: <>.
4
1815
by: J | last post by:
I am editing a pre-existing view. This view is already bringing data from 40+ tables so I am to modify it without screwing with anything else that is already in there. I need to (left) join it with a new table that lists deposits and the dates they are due. What I need is to print, for each record in the view, the due date for the next deposit due and the total of all payments that they will have made by the next due date.
5
1852
by: Franck | last post by:
how come unchanged always true even if data changed This code come from my saving button: ============================================ DataSet ds1 = new DataSet(); DataSet ds2 = new DataSet(); DataSet ds3 = new DataSet(); //Static Dataset which contain values when my form load
5
4509
by: saneman | last post by:
I have a function: int F(double a) { if (a = =1.0) { return 22; } return 44; }
0
8376
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8290
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8489
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
6161
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
5622
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
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1596
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.