473,489 Members | 2,492 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Records does not match query

6 New Member
Good day everyone!

Need help about this one.

I need to select the records in table A that do not exist in table B.

Feel free to clarify things if my question is vague.

Thanks in advance!

Regards,
Jul 26 '07 #1
5 1621
dafodil
392 Contributor
Good day everyone!

Need help about this one.

I need to select the records in table A that do not exist in table B.

Feel free to clarify things if my question is vague.

Thanks in advance!

Regards,
Please give a detailed explanation and the sample of datas you want to retrieve.
Jul 26 '07 #2
icebox27
6 New Member
Considering the following data.

Table A

apple
banana
cat
peach

Table B
apple
banana
peach
dog

I wanted to display the record "cat", since it cannot be found in Table B.

Thanks!
Jul 26 '07 #3
comlink21
1 New Member
Please give a detailed explanation and the sample of datas you want to retrieve.
SELECT * FROM A WHERE NOT IN (SELECT * FROM B )
Jul 26 '07 #4
icebox27
6 New Member
exactly the answer I was looking for!

Thanks a lot!
Jul 26 '07 #5
dafodil
392 Contributor
SELECT * FROM A WHERE NOT IN (SELECT * FROM B )
Good post comlink21
.
You can also use this:

SELECT * FROM A WHERE NOT EXISTS (SELECT * FROM B)
Jul 26 '07 #6

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

Similar topics

1
1855
by: miltonmoura | last post by:
Hi, I am using Merge Replication for synchronizing a bunch of laptops running MSDE with a central SQL Server 2000 production server. This database is used by an application that needs to know...
6
4055
by: Matt K. | last post by:
Hi there, I have a form in an Access project that contains a subform which displays the results of a query of the style "select * from where = #a certain date#". In the main part of the form...
3
2898
by: Larry Rekow | last post by:
As part of a macro, I'm trying to automate appending a table with new records. let's say the table 2 has some new records in it, but also has a lot of identical records to table 1. I would...
1
2974
by: snOOp | last post by:
I am trying to combine the data from two similar tables into one query, but I need for all of the records from both tables to show up and I want the ones that have matching 'emplid' to be combined...
7
1495
by: Ray | last post by:
I have a input form linked to a table and found the total no of records on the bottom bar is different from that of table. Can someone advise an effective way to find out the different records...
10
6704
by: Robert | last post by:
How do you get an accurate count of the number of records returned from a query when using linked tables. I have an access 2003 database as a front end to another access 2003 database that...
7
1981
by: Ron | last post by:
Hi All, Using Access2000, winXP. Table 1 = tblClients displayed on frmClients via qryClients. 2nd table = tblInvoices shown on frmInvoices via qryInvoices. 2nd table = tblDetails shown on...
4
2317
by: Connie | last post by:
I have a query that takes blobs that have been created within the last day out of sql server and places them on a disk drive. The query is a stored proc which runs in a DTS job. The job shows...
0
1155
by: KrazyKoder | last post by:
Hello, I have MS Access form that basically allows the user to configure an update statement to a single table via the gui. A requirement is to show the count of records that will be updated...
3
2444
eclypz
by: eclypz | last post by:
Hi, i have read some posts of inner join and outer join, but no one could help me to solve my problem :( I have 2 tables 1) tblRecords (having, article; User;date in; date out; service) 2)...
0
7181
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...
1
6847
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
5445
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,...
1
4875
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...
0
4565
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...
0
3078
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...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
618
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
272
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...

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.