473,395 Members | 1,460 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,395 software developers and data experts.

Access Query help!!

I have 2 fields in 2 seperate tables with text strings as the data.
The two fields do not have the same number of entries. I need to
compare the larger of the 2 fields to the smaller field and look for
entries that are not equal. The larger field has duplicate entries. I
have tried a StrCompare query and I get results but its based on
comparisons of the smaller field. I know this is a little confusing if
you are just reading it but any help would be appreciated. Thanks in
advance.
Nov 13 '05 #1
2 1223
It would be less confusing if you included the SQL that is failing you, and
the actual names of the tables and fields involved. With only a "high level
description" of the problem, it seems unlikely that anyone will be able to
offer useful suggestions.

Larry Linson
Microsoft Access MVP

"jwmckin" <jw*****@yahoo.com> wrote in message
news:73**************************@posting.google.c om...
I have 2 fields in 2 seperate tables with text strings as the data.
The two fields do not have the same number of entries. I need to
compare the larger of the 2 fields to the smaller field and look for
entries that are not equal. The larger field has duplicate entries. I
have tried a StrCompare query and I get results but its based on
comparisons of the smaller field. I know this is a little confusing if
you are just reading it but any help would be appreciated. Thanks in
advance.

Nov 13 '05 #2
jw*****@yahoo.com (jwmckin) wrote in message news:<73**************************@posting.google. com>...
I have 2 fields in 2 seperate tables with text strings as the data.
The two fields do not have the same number of entries. I need to
compare the larger of the 2 fields to the smaller field and look for
entries that are not equal. The larger field has duplicate entries. I
have tried a StrCompare query and I get results but its based on
comparisons of the smaller field. I know this is a little confusing if
you are just reading it but any help would be appreciated. Thanks in
advance.

How about some sample/example data for clarification?

Sounds like you want an outer join...

SELECT table1.field1
FROM table1 LEFT JOIN table2 ON table1.field1=table2.field1
WHERE table2.field1 IS NULL;
Nov 13 '05 #3

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

Similar topics

2
by: SkunkDave | last post by:
I have a table that has numerical ID. I want a query that will get the 20 highest IDs. So in other words the query would return the last 20 results entered. What would even be better is if...
3
by: Omavlana | last post by:
Hi, How to get the value as 0 insted of NULL if there is no data found in the database for a particular column in the following Access query. select col1, col2 from tab1; If there are null...
4
by: ritchielong | last post by:
I have a access query made up of 2 tables & . from the table circuits i am using fields & from sitenames i am using i need my query to create 2 indexed columns based on the and then on the...
1
by: Loc108 | last post by:
I have two tables: Assignment Table AsignmentID, AssignmentName, CourseID Submit Table SubmitID, StudentID,AssignmentID, Point For a particular student in a particular class, I want it to...
1
by: Jordan M. | last post by:
Hi, Hoping someone can help me find a solution to the following problem I have. I have a query that currently pulls the following information from Table A Project Name Milestone...
3
by: heckstein | last post by:
I have created a query in MS Access 2003 that is pulling training records for our company that includes training hour calculation. One field I am pulling is the instructor name. Many courses have...
5
by: somacore | last post by:
For my application I need to be able to compare items in a database and output how they're all related. For example: Ticket #1 Programs: AA39 FR08 AA05 Ticket #2 Programs: AA39 FR08
24
by: goalv | last post by:
Hi friends I am bit new to access , I want to make query for data which has not happened after repeated attempts...can any one help me I have following tables DATE STORE ID DATE...
5
by: titli | last post by:
I want to run a update query accApp.OpenCurrentDatabase sRawDatabaseName accApp.DoCmd.TransferText acImportDelim, "DataImportSpec", "tblRaw", sLocalDataFile, False accApp.DoCmd.RunSQL "Update...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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: 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
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...

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.