473,395 Members | 2,689 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.

Finding unmatched queries within 2 forms' linking column

I have 2 tables connected to each other through an "ID" column. The first table uses the ID column as the primary key so there is a value for it in every record. The second table also has an ID column, but I suspect it has records where the ID column has no value. I'd like to find out how many of the records in the 2nd table has values in the ID column. The only common link between the 2 tables is the ID column. I've tried using the unmatched query wizard, but it requires a 2nd common link between the 2 tables. Any help is appreciated!
Aug 4 '10 #1
1 1221
Oralloy
988 Expert 512MB
To find the count of empty IDs, try:

Expand|Select|Wrap|Line Numbers
  1. SELECT COUNT(*) FROM table2 WHERE id is NULL;
And to find the count of populated IDs, try:

Expand|Select|Wrap|Line Numbers
  1. SELECT COUNT(*) FROM table2 WHERE id is not NULL;
Aug 4 '10 #2

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

Similar topics

14
by: Abby Lee | last post by:
1st sorry about leangth...couldn't really cut anymore. I want the output to be Organization 320000 Fund 100004 Program 777777 Account1 7234.55 Account2 -347.99 Account3 ...
3
by: Koen | last post by:
Hi all, I have created a nice working database for keeping track of helpdesk calls, corrective actions etc. To determine a certain status (for example what calls are ready for test, after all...
2
by: Jonathan LaRosa | last post by:
Hi all - I'm wondering if anyone has (or knows of) a tool that will allow me to search through VB code, tables, queries, reports, forms, and other objects, for references to all other types of...
0
by: sqlboy2000 | last post by:
All, I have a simple datagrid with one column being a template column that contains a dropdown control. I'd like to be able capture when the index of the dropdown changes and access the value that...
6
by: Tor Inge Rislaa | last post by:
Finding name of all forms I want to create a procedure that can loop trough all objects of type form in an application and print the name property to the debug window. TIRislaa
6
by: Rob Williamson | last post by:
Does anyone know whether there is a way to create folders inside the right payne when you click on Tables or Queries or Forms or Reports in the the Objects side. I have alot of queries and forms...
5
by: isetea | last post by:
Hi, is there any VBA code I can try to get all tables, queries and forms of my database selected and displayed in a list box of a form? And also the list box must be always held the current...
2
by: MyEmailList | last post by:
We have an Access data base with severl tables, queries and forms. We want to put it on the web. Is there a tool that will convert the Access queries and forms to ASP? Sorta like "splitting"...
3
rcollins
by: rcollins | last post by:
I have two tables that I am working on here, tblClientContact and tblClientFunding. I made a query from tblClientFunding that pulls out only the current funding available. I need to match this up...
21
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters...
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
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
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
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,...
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...

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.